View source: R/mathprogNLP-nlminb2.R
nlminb2 | R Documentation |
Solve constrained nonlinear minimization problem with nonlinear constraints using a penalty and barrier approach.
nlminb2(start, objective, eqFun = NULL, leqFun = NULL,
lower = -Inf, upper = Inf, gradient = NULL, hessian = NULL,
control = list(), env = .GlobalEnv)
start |
a numeric vector, initial values for the parameters to be optimized. |
objective |
function to be minimized. Must return a scalar value (possibly
NA/Inf). The first argument to objective is the vector of
parameters to be optimized, whose initial values are supplied
through |
eqFun |
a list of functions describing equal constraints. |
leqFun |
a list of functions describing less equal constraints. |
lower, upper |
two vectors of lower and upper bounds, replicated to be as long
as |
gradient |
an optional function that takes the same arguments as |
hessian |
an optional function that takes the same arguments as |
control |
a list of control parameters. See below for details. |
env |
the environment in which objective, constraint, control functions are evaluated. |
A list with following elements:
par |
a numeric vector, the best set of parameters found. |
objective |
a numeric value, the value of |
convergence |
an integer code, 0 indicates successful convergence. |
message |
a character string giving any additional information returned by the optimizer, or NULL. For details, see PORT documentation. |
iterations |
am integer value, the number of iterations performed. |
evaluations |
an integer value, the number of objective function and gradient function evaluations. |
For the R port of nlminb
Douglas Bates and Deepayan Sarkar,
for the R/Rmetrics port of nlminb2
Diethelm Wuertz,
for the PORT library netlib.bell-labs.com.
Paul A. Jensen & Jonathan F. Bard, Operations Research Models and Methods, 2001 Appendix A, Algorithms for Constrained Optimization, https://www.me.utexas.edu/~jensen/ORMM/supplements/index.html.
PORT Library, https://netlib.org/port/.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.