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

NArgMin

NArgMin[f, x]
gives a position xmin at which f is numerically minimized.
NArgMin[f, {x, y, ...}]
gives a position {xmin, ymin, ...} at which f is numerically minimized.
NArgMin[{f, cons}, {x, y, ...}]
gives a position at which f is numerically minimized subject to the constraints cons.
  • NArgMin returns a list of the form {xmin, ymin, ...}.
  • NArgMin[..., {x, y, ...}] is effectively equivalent to {x, y, ...}/.Last[NMinimize[..., {x, y, ...}, ...].
  • cons can contain equations, inequalities or logical combinations of these.
  • NArgMin always attempts to find a global minimum of f subject to the constraints given.
  • By default, all variables are assumed to be real.
  • xElementIntegers can be used to specify that a variable can take on only integer values.
  • If f and cons are linear, NArgMin can always find global minima, over both real and integer values.
  • Otherwise, NArgMin may sometimes find only a local minimum.
Find a minimizer point for a univariate function:
Find a minimizer point for a multivariate function:
Find a minimizer point for a function subject to constraints:
Find a minimizer point for a univariate function:
In[1]:=
Click for copyable input
Out[1]=
 
Find a minimizer point for a multivariate function:
In[1]:=
Click for copyable input
Out[1]=
 
Find a minimizer point for a function subject to constraints:
In[1]:=
Click for copyable input
Out[1]=
Find the lengths of sides of a unit area rectangle with minimal perimeter:
Find the lengths of sides of a unit area triangle with minimal perimeter:
NMinimize gives both the value of the minimum and the minimizer point:
NArgMin gives the minimizer point:
NMinValue gives the minimum:
The objective function may be unbounded:
There may be no points satisfying the constraints:
New in 7