optim solver external function that computes the objective for CUTEr.
[f,g,ind] = optim_obj(x,ind)
A vector, the current value of the unknown
The ind
on input ind
indicates what the function must do, on output
ind
indicates if the expected
computation has been performed as expected (see
optim
for details).
A scalar, the current value of the objective function
A vector, the current value of the gradient function
This function computes the objective and/or its gradient at the point
x
for the current CUTEr problem according to
the optim
requirements.
It includes a cpu time limitation to cancel the resolution if the cpu time exceeds 3600s.