Current Point and Function Value
The current point and function value are the first two outputs of all Optimization Toolbox™ solvers.
The current point is the final point in the solver iterations. It is the best point the solver found in its run.
If you call a solver without assigning a value to the output, the default output,
ans
, is the current point.
The function value is the value of the objective function at the current point.
The function value for least-squares solvers is the sum of squares, also known as the residual norm.
fgoalattain
,fminimax
, andfsolve
return a vector function value.Sometimes
fval
orFval
denotes function value.