Main Content

Tolerance Details

Optimization Toolbox™ solvers use tolerances to decide when to stop iterating and to measure solution quality. See Tolerances and Stopping Criteria.

For the four most important tolerances, this section describes which tolerances are relative, meaning scale in some sense with problem size or values, and which are absolute, meaning do not scale with the problem. In the following table,

  • R means Relative.

  • A means Absolute.

  • . means inapplicable.

  • A* means Absolute when the tolerances are checked; however, preprocessing can scale the entries to some extent, so the tolerances can be considered relative.

  • A*, R means the constraints are first checked as Absolute. If this check passes, the solver returns a positive exit flag. If this check fails then the constraints are checked as Relative. If this check passes, the solver returns a positive exit flag with "poor feasibility". If this check fails, the solver returns a negative exit flag.

Tolerances by Solver and Algorithm

SolverAlgorithmOptimality ToleranceFunction ToleranceStep ToleranceConstraint Tolerance
fminsearch .AA.
fminbnd .AR.
fseminf AAAA
fgoalattain AAAA
fminimax AAAA
linprog'dual-simplex'A*..A*, R
intlinprog A*..A*, R
'trust-region-reflective', boundsARA.
'trust-region-reflective', linear equalities....
coneprog R  R
lsqnonneg ..R.
fzero ..R.

Related Topics