|
SOLUTIONS
|
BUILT-IN MATHEMATICA SYMBOL
NMinimize
NMinimize[f, x]
minimizes f numerically with respect to x.
NMinimize[f, {x, y, ...}]
minimizes f numerically with respect to x, y, ....
NMinimize[{f, cons}, {x, y, ...}]
minimizes f numerically subject to the constraints cons.
Details and OptionsDetails and Options
- NMinimize returns a list of the form
. - cons can contain equations, inequalities, or logical combinations of these.
- NMinimize always attempts to find a global minimum of f subject to the constraints given.
- By default, all variables are assumed to be real.
- x
Integers can be used to specify that a variable can take on only integer values. - If f and cons are linear, NMinimize can always find global minima, over both real and integer values.
- Otherwise, NMinimize may sometimes find only a local minimum.
- If NMinimize determines that the constraints cannot be satisfied, it returns {Infinity, {x->Indeterminate, ...}}.
- The following options can be given:
-
AccuracyGoal Automatic number of digits of final accuracy sought EvaluationMonitor None expression to evaluate whenever f is evaluated MaxIterations 100 maximum number of iterations to use Method Automatic method to use PrecisionGoal Automatic number of digits of final precision sought StepMonitor None expression to evaluate whenever a step is taken WorkingPrecision MachinePrecision the precision used in internal computations - The default settings for AccuracyGoal and PrecisionGoal are WorkingPrecision/2.
- The settings for AccuracyGoal and PrecisionGoal specify the number of digits to seek in both the value of the position of the minimum, and the value of the function at the minimum.
- NMinimize continues until either of the goals specified by AccuracyGoal or PrecisionGoal is achieved.
- Possible settings for the Method option include
,
,
, and
.
New in 5 | Last modified in 6
Mathematica 9 is now available!
New to Mathematica?
Find your learning path »
Have a question?
Ask support »
