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

NMinValue

NMinValue
gives the minimum value of f with respect to x.
NMinValue
gives the minimum value of f with respect to x, y, ....
NMinValue
gives the minimum value of f subject to the constraints cons.
  • cons can contain equations, inequalities or logical combinations of these.
  • NMinValue always attempts to find a global minimum of f subject to the constraints given.
  • By default, all variables are assumed to be real.
  • xIntegers can be used to specify that a variable can take on only integer values.
  • If f and cons are linear, NMinValue can always find global minima, over both real and integer values.
  • Otherwise, NMinValue may sometimes find only a local minimum.
  • If NMinValue determines that the constraints cannot be satisfied, it returns Infinity.
Find the minimum value of a univariate function:
Find the minimum value of a multivariate function:
Find the minimum value of a function subject to constraints:
Find the minimum value of a univariate function:
In[1]:=
Click for copyable input
Out[1]=
 
Find the minimum value of a multivariate function:
In[1]:=
Click for copyable input
Out[1]=
 
Find the minimum value of a function subject to constraints:
In[1]:=
Click for copyable input
Out[1]=
Find the minimal perimeter among rectangles with a unit area:
Find the minimal perimeter among triangles with a unit area:
NMinimize gives both the value of the minimum and the minimizer point:
NMinValue gives the minimum:
NArgMin gives the minimizer point:
NMinValue can solve linear programming problems:
LinearProgramming can be used to solve the same problem given in matrix notation:
New in 7