Category Archives: abstract

apache commons math3: how to write minimization function with three abstracts in Java [on hold]

I am solving an optimization problem in which I need to minimize three goals. Since three functions have abstract functions in it, I am wondering which class should I use to create the goal.

Suppose I have a goal to minimize f = abs(t - a) + abs(t - b) + abs(t - c). a, b, and c are constants and I am looking for t which minimize f. How should I write this function in Java?