is an option that specifies the maximum number of iterations that should be tried in various built-in functions and algorithms.
- MaxIterations->Infinity specifies that there should be no limit.
Examplesopen allclose all
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 :
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:
Wolfram Research (1988), MaxIterations, Wolfram Language function, https://reference.wolfram.com/language/ref/MaxIterations.html.
Wolfram Language. 1988. "MaxIterations." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/MaxIterations.html.
Wolfram Language. (1988). MaxIterations. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/MaxIterations.html