NMinimize
Usage
• 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.
Notes
• NMinimize returns a list of the form { , {x -> , y -> , ... }}. • 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. • Unless f and cons are both linear, NMinimize may sometimes find only a local minimum. • 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 NMinimize determines that the constraints cannot be satisfied, it returns {Infinity, {x -> Indeterminate, ... }}. • The following options can be given: • 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. • Possible settings for the Method option include "NelderMead", "DifferentialEvolution", "SimulatedAnnealing" and "RandomSearch". • Advanced Documentation. • New in Version 5.
|