| Contents | Index |
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, and fsolve return a vector function value.
Sometimes fval or Fval denotes function value.
![]() | Examining Results | Exit Flags and Exit Messages | ![]() |

Learn how to use optimization to solve systems of equations, fit models to data, or optimize system performance.
Get free kit| © 1984-2012- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |