is an option that specifies the maximum number of iterations that should be tried in various built-in functions and algorithms.



open allclose all

Basic Examples  (2)

Limit the number of iterations attempted in numerical minimization:

Scope  (2)

MaxIterations can be infinite:

Limit or increase the number of steps taken with MaxIterations:

The default number of iterations for FindRoot is 100:

Eventually the algorithm stalls out since this mollifier function has all derivatives 0 at :

Applications  (1)

Use a limited number of iterations to select candidates for a global minimum:

Find the minimum to 10 digits using arbitrary-precision arithmetic:

This can be done automatically with NMinimize:

Introduced in 1988