Usage
rdonlp2(par, fn,
par.upper=rep(+Inf, length(par)), par.lower=rep(-Inf, length(par)),
A = NULL,
lin.upper = rep(+Inf, length(par)), lin.lower = rep(-Inf, length(par)),
nlin = list(),
nlin.upper = rep(+Inf, length(nlin)), nlin.lower = rep(-Inf, length(nlin)),
control = rdonlp2Control(), control.fun = function(lst){return(TRUE)},
env = .GlobalEnv, name = NULL)
Arguments
fn
the objective function to be minimized. Currently, fn
must take only one argument, and the parameter vector(par
)
will be passed to fn
during the optimization. The first
element of return value
par
parameter vector(vector object).
par.upper, par.lower
upper and lower bounds for parameter vector,
respectively. Their length must equal to
length(par)
. If some elements are unbounded, specify
+Inf
or -Inf
explicitly.
A
the matrix object that represents linear constraints. Its
columns must be equal to length(par)
, and its rows
must be equal to the number of linear constraints.
lin.upper, lin.lower
upper and lower bounds for linear constraints,
respectively. Their length must equal to the number of linear
constraints. If some elements are unbounded, specify +Inf
or -Inf
explicitly.
nlin
list object whose elements are functions that represents
nonlinear constraints. Rule for argument and return value is the
same as fn
, i.e., these functions take only one
arugument(par
), and return a vecto
nlin.upper, nlin.lower
upper and lower bounds for nonlinear constraints,
respectively. Their length must equal to length(nlin)
. If
some elements are unbounded, specify +Inf
or -Inf
explicitly.
control
"control parameters" that defines the behavior of
Rdonlp2. See rdonlp2Control
for details. control.fun
rdonlp2()
reports a group of optimization
parameters in every iteration(see below for details). This (read-only)
information can be available within control.fun()
, in which user
can decide whether the opti
env
the environment in which objective, constraint, control
functions are evaluated.
name
an character object that specify file name(without
extension, max 40 characters) of output file. If not NULL
,
DONLP2 creates 2 files(name
.pro and name
.mes) in
current working directory which c