This is documentation for Mathematica 5, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.2)

Documentation / Mathematica / Built-in Functions / Numerical Computation / Optimization /


FilledSmallSquare NMinimize[f, x, y, ... ] minimizes f numerically with respect to x, y, ... .

FilledSmallSquare NMinimize[f, cons, x, y, ... ] minimizes f numerically subject to the constraints cons.

FilledSmallSquare NMinimize returns a list of the form , x -> , y -> , ... .

FilledSmallSquare cons can contain equations, inequalities or logical combinations of these.

FilledSmallSquare NMinimize always attempts to find a global minimum of f subject to the constraints given.

FilledSmallSquare Unless f and cons are both linear, NMinimize may sometimes find only a local minimum.

FilledSmallSquare By default, all variables are assumed to be real.

FilledSmallSquare x Integers can be used to specify that a variable can take on only integer values.

FilledSmallSquare If NMinimize determines that the constraints cannot be satisfied, it returns Infinity, x -> Indeterminate, ... .

FilledSmallSquare The following options can be given:

FilledSmallSquare The default settings for AccuracyGoal and PrecisionGoal are WorkingPrecision/2.

FilledSmallSquare The settings for AccuracyGoal and PrecisionGoal specify the number of digits to seek in both the value of the position of the maximum, and the value of the function at the minimum.

FilledSmallSquare NMinimize continues until either of the goals specified by AccuracyGoal or PrecisionGoal is achieved.

FilledSmallSquare Possible settings for the Method option include "NelderMead", "DifferentialEvolution", "SimulatedAnnealing" and "RandomSearch".

FilledSmallSquare See Section 1.6.5 and Section 3.9.8.

FilledSmallSquare Implementation Notes: see Section A.9.4.

FilledSmallSquare See also: NMaximize, Minimize, FindMinimum, FindFit.

FilledSmallSquare New in Version 5.0.

Advanced Documentation

Further Examples