Nonlinear programming with nonlinear constraints.
This function was contributed by Diethelm Wuertz.
nlminb2( start, objective, eqFun = NULL, leqFun = NULL, lower = -Inf, upper = Inf, gradient = NULL, hessian = NULL, control = list() )
start |
numeric vector of start values. |
objective |
the function to be minimized f(x). |
eqFun |
functions specifying equal constraints of the form
h_i(x) = 0. Default: |
leqFun |
functions specifying less equal constraints of the
form g_i(x) <= 0. Default: |
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 f(x). Default: |
hessian |
hessian of f(x). Default: |
control |
a list of control parameters. See
|
list()
Diethelm Wuertz
## 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 ) }
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.