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 > NMaxValue >
Mathematica > Mathematics and Algorithms > Graphs & Networks > Graph Programming > Optimization > NMaxValue >
Mathematica > Visualization and Graphics > Graphs & Networks > Graph Programming > Optimization > NMaxValue >

NMaxValue

NMaxValue
gives the maximum value of f with respect to x.
NMaxValue
gives the maximum value of f with respect to x, y, ....
NMaxValue
gives the maximum value of f subject to the constraints cons.
  • cons can contain equations, inequalities or logical combinations of these.
  • NMaxValue always attempts to find a global maximum 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, NMaxValue can always find global maxima, over both real and integer values.
  • Otherwise, NMaxValue may sometimes find only a local maximum.
  • If NMaxValue determines that the constraints cannot be satisfied, it returns Infinity.
Find the maximum value of a univariate function:
Find the maximum value of a multivariate function:
Find the maximum value of a function subject to constraints:
Find the maximum value of a univariate function:
In[1]:=
Click for copyable input
Out[1]=
 
Find the maximum value of a multivariate function:
In[1]:=
Click for copyable input
Out[1]=
 
Find the maximum value of a function subject to constraints:
In[1]:=
Click for copyable input
Out[1]=
Find the maximal area among rectangles with a unit perimeter:
NMaximize gives both the value of the maximum and the maximizer point:
NMaxValue gives the maximum:
NArgMax gives the maximizer point:
NMaxValue 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
Format:   HTML  |  CDF