nlmax | R Documentation |
nlmin
and nlmax
are thin wrappers around nlm
, a non-linear minimizer.
nlmax
avoids the necessity of modifying the function to construct a minimization problem
from a problem that is naturally a maximization problem.
The summary
method for the resulting objects provides output that is easier
for humnans to read.
nlmax(f, ...)
nlmin(f, ...)
## S3 method for class 'nlmax'
summary(object, nsmall = 4, ...)
## S3 method for class 'nlmin'
summary(object, nsmall = 4, ...)
f |
a function to optimize |
... |
additional arguments passed to |
object |
an object returned from |
nsmall |
a numeric passed through to |
summary( nlmax( function(x) 5 - 3*x - 5*x^2, p=0 ) )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.