MaxIterations

MaxIterations

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

Details

Examples

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:

Wolfram Research (1988), MaxIterations, Wolfram Language function, https://reference.wolfram.com/language/ref/MaxIterations.html.

Text

Wolfram Research (1988), MaxIterations, Wolfram Language function, https://reference.wolfram.com/language/ref/MaxIterations.html.

CMS

Wolfram Language. 1988. "MaxIterations." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/MaxIterations.html.

APA

Wolfram Language. (1988). MaxIterations. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/MaxIterations.html

BibTeX

@misc{reference.wolfram_2024_maxiterations, author="Wolfram Research", title="{MaxIterations}", year="1988", howpublished="\url{https://reference.wolfram.com/language/ref/MaxIterations.html}", note=[Accessed: 05-December-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_maxiterations, organization={Wolfram Research}, title={MaxIterations}, year={1988}, url={https://reference.wolfram.com/language/ref/MaxIterations.html}, note=[Accessed: 05-December-2024 ]}