Mathematica > Mathematics and Algorithms > Optimization >

MinValue

MinValue[f, x]
gives the minimum value of f with respect to x.
MinValue[f, {x, y, ...}]
gives the minimum value of f with respect to x, y, ....
MinValue[{f, cons}, {x, y, ...}]
gives the minimum value of f subject to the constraints cons.
MinValue[{f, cons}, {x, y, ...}, dom]
gives the minimum value of f over the domain dom, typically Reals or Integers.
  • MinValue gives the infimum of values of f. It may not be attained for any values of x, y, ....
  • cons can contain equations, inequalities or logical combinations of these.
  • If f and cons are linear or polynomial, MinValue will always find a global minimum.
  • MinValue will return exact results if given exact input.
  • If MinValue is given an expression containing approximate numbers, it automatically calls NMinValue.
  • If no domain is specified, all variables are assumed to be real.
  • xElementIntegers can be used to specify that a particular variable can take on only integer values.
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 minimum value as a function of parameters:
In[1]:=
Click for copyable input
Out[1]=
New in 7
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team