Mathematica 9 is now available
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.
Mathematica > Mathematics and Algorithms > Optimization >

NMinValue

NMinValue[f, x]
gives the minimum value of f with respect to x.
NMinValue[f, {x, y, ...}]
gives the minimum value of f with respect to x, y, ....
NMinValue[{f, cons}, {x, y, ...}]
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.
  • xElementIntegers 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
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team