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 »
|
NMinValue
NMinimize
NArgMax
ArgMin
FindArgMin
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 »
NArgMin
NArgMin
[
f
,
x
]
gives a position
x
min
at which
f
is numerically minimized.
NArgMin
[
f
, {
x
,
y
,
...
}]
gives a position
{
x
min
,
y
min
,
...
}
at which
f
is numerically minimized.
NArgMin
[{
f
,
cons
}, {
x
,
y
,
...
}]
gives a position at which
f
is numerically minimized subject to the constraints
cons
.
MORE INFORMATION
NArgMin
returns a list of the form
{
x
min
,
y
min
,
...
}
.
NArgMin
[
...
, {
x
,
y
,
...
}]
is effectively equivalent to
{
x
,
y
,
...
}/.
Last
[
NMinimize
[
...
, {
x
,
y
,
...
},
...
]
.
cons
can contain equations, inequalities or logical combinations of these.
NArgMin
always attempts to find a global minimum 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,
NArgMin
can always find global minima, over both real and integer values.
Otherwise,
NArgMin
may sometimes find only a local minimum.
If
NArgMin
determines that the constraints cannot be satisfied, it returns
{
Indeterminate
,
...
}
.
NArgMin
takes the same options as
NMinimize
.
EXAMPLES
CLOSE ALL
Basic Examples
(3)
Find a minimizer point for a univariate function:
Find a minimizer point for a multivariate function:
Find a minimizer point for a function subject to constraints:
Find a minimizer point for a univariate function:
In[1]:=
Out[1]=
Find a minimizer point for a multivariate function:
In[1]:=
Out[1]=
Find a minimizer point for a function subject to constraints:
In[1]:=
Out[1]=
Applications
(2)
Find the lengths of sides of a unit area rectangle with minimal perimeter:
Find the lengths of sides of a unit area triangle with minimal perimeter:
Properties & Relations
(1)
NMinimize
gives both the value of the minimum and the minimizer point:
NArgMin
gives the minimizer point:
NMinValue
gives the minimum:
Possible Issues
(2)
The objective function may be unbounded:
There may be no points satisfying the constraints:
SEE ALSO
NMinValue
NMinimize
NArgMax
ArgMin
FindArgMin
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