Solver now gives objective value of function 2