PRODUCTS
Products Overview
Mathematica
Mathematica Student Edition
Mathematica Home Edition
Wolfram
CDF Player
(free download)
Computable Document Format (CDF)
web
Mathematica
grid
Mathematica
Wolfram
Workbench
Wolfram
SystemModeler
Wolfram
Finance Platform
Mathematica
Add-Ons
Wolfram|Alpha Products
SOLUTIONS
Solutions Overview
Engineering
Aerospace Engineering & Defense
Chemical Engineering
Control Systems
Electrical Engineering
Image Processing
Industrial Engineering
Materials Science
Mechanical Engineering
Operations Research
Optics
Petroleum Engineering
Biotechnology & Medicine
Bioinformatics
Medical Imaging
Finance, Statistics & Business Analysis
Actuarial Sciences
Data Analysis & Mining
Econometrics
Economics
Financial Engineering & Mathematics
Financial Risk Management
Statistics
Software Engineering & Content Delivery
Authoring & Publishing
Interface Development
Software Engineering
Web Development
Science
Astronomy
Biological Sciences
Chemistry
Environmental Sciences
Geosciences
Social & Behavioral Sciences
Design, Arts & Entertainment
Game Design, Special Effects & Generative Art
Education
STEM Education Initiative
Higher Education
Community & Technical College Education
Primary & Secondary Education
Students
Technology
Computable Document Format (CDF)
High-Performance & Parallel Computing (HPC)
See Also: Technology Guide
PURCHASE
Online Store
Other Ways to Buy
Volume & Site Licensing
Contact Sales
Software
Service
Upgrades
Training
Books
Merchandise
SUPPORT
Support Overview
Mathematica
Documentation
Knowledge Base
Learning Center
Technical Services
Community & Forums
Training
Does My Site Have a License?
Wolfram User Portal
COMPANY
About Wolfram Research
News
Events
Wolfram Blog
Partnerships
Employment Opportunities
History of
Mathematica
Stephen Wolfram's Home Page
Contact Us
OUR SITES
All Sites
Wolfram|Alpha
Demonstrations Project
MathWorld
Integrator
Wolfram Functions Site
Mathematica Journal
Wolfram Media
Wolfram
Tones
Wolfram Science
Stephen Wolfram
SEARCH MATHEMATICA 8 DOCUMENTATION
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE
DOCUMENTATION CENTER
FOR THE LATEST INFORMATION.
Mathematica
>
Mathematics and Algorithms
>
Optimization
>
Built-in
Mathematica
Symbol
Symbolic Mathematics: Basic Operations
Inequalities
Minimization and Maximization
Constrained Optimization
Unconstrained Optimization
Tutorials »
|
NMaxValue
NMaximize
NArgMin
ArgMax
FindArgMax
LinearProgramming
See Also »
|
Optimization
Summary of New Features in 7.0
New in 7.0: Alphabetical Listing
New in 7.0: Mathematics & Algorithms
More About »
NArgMax
NArgMax
[
f
,
x
]
gives a position
x
max
at which
f
is numerically maximized.
NArgMax
[
f
, {
x
,
y
,
...
}]
gives a position
{
x
max
,
y
max
,
...
}
at which
f
is numerically maximized.
NArgMax
[{
f
,
cons
}, {
x
,
y
,
...
}]
gives a position at which
f
is numerically maximized subject to the constraints
cons
.
MORE INFORMATION
NArgMax
returns a list of the form
{
x
min
,
y
min
,
...
}
.
NArgMax
[
...
, {
x
,
y
,
...
}]
is effectively equivalent to
{
x
,
y
,
...
}/.
Last
[
NMaximize
[
...
, {
x
,
y
,
...
},
...
]
.
cons
can contain equations, inequalities or logical combinations of these.
NArgMax
always attempts to find a global maximum of
f
subject to the constraints given.
By default, all variables are assumed to be real.
x
Integers
can be used to specify that a variable can take on only integer values.
If
f
and
cons
are linear,
NArgMax
can always find global maxima, over both real and integer values.
Otherwise,
NArgMax
may sometimes find only a local maximum.
If
NArgMax
determines that the constraints cannot be satisfied, it returns
{
Indeterminate
,
...
}
.
NArgMax
takes the same options as
NMaximize
.
EXAMPLES
CLOSE ALL
Basic Examples
(3)
Find a maximizer point for a univariate function:
Find a maximizer point for a multivariate function:
Find a maximizer point for a function subject to constraints:
Find a maximizer point for a univariate function:
In[1]:=
Out[1]=
Find a maximizer point for a multivariate function:
In[1]:=
Out[1]=
Find a maximizer point for a function subject to constraints:
In[1]:=
Out[1]=
Applications
(1)
Find the lengths of sides of a unit perimeter rectangle with the maximal area:
Properties & Relations
(1)
NMaximize
gives both the value of the maximum and the maximizer point:
NArgMax
gives the maximizer point:
NMaxValue
gives the maximum:
Possible Issues
(2)
The objective function may be unbounded:
There may be no points satisfying the constraints:
SEE ALSO
NMaxValue
NMaximize
NArgMin
ArgMax
FindArgMax
LinearProgramming
TUTORIALS
Symbolic Mathematics: Basic Operations
Inequalities
Minimization and Maximization
Constrained Optimization
Unconstrained Optimization
MORE ABOUT
Optimization
Summary of New Features in 7.0
New in 7.0: Alphabetical Listing
New in 7.0: Mathematics & Algorithms
New in 7