nlminb2 {ROI} | R Documentation |
Nonlinear programming with nonlinear constraints.
Description
This function was contributed by Diethelm Wuertz.
Usage
nlminb2(
start,
objective,
eqFun = NULL,
leqFun = NULL,
lower = -Inf,
upper = Inf,
gradient = NULL,
hessian = NULL,
control = list()
)
Arguments
start |
numeric vector of start values. |
objective |
the function to be minimized |
eqFun |
functions specifying equal constraints of the form
|
leqFun |
functions specifying less equal constraints of the
form |
lower |
a numeric representing lower variable
bounds. Repeated as needed. Default: |
upper |
a numeric representing upper variable
bounds. Repeated as needed. Default: |
gradient |
gradient of |
hessian |
hessian of |
control |
a list of control parameters. See
|
Value
list()
Author(s)
Diethelm Wuertz
Examples
## Equal constraint function
eval_g0_eq <- function( x, params = c(1,1,-1)) {
return( params[1]*x^2 + params[2]*x + params[3] )
}
eval_f0 <- function( x, ... ) {
return( 1 )
}
[Package ROI version 1.0-1 Index]