| minObjFunAlt | R Documentation |
The primary optimization routine is BFGS from stats::optim.
If this fails for some reason we try an alternative which is implemented here.
It can use the derivative-free minimizaiton through bobyqa or the PORT-routine nlminb.
minObjFunAlt(
objFun,
start,
lower = -Inf,
upper = +Inf,
verbose = 0,
method = c("bobyqa", "nlminb")
)
objFun |
function to minimize |
start |
vector of start values for parameters |
lower |
numeric. lower bound for parameters (boxed constraint) |
upper |
numeric. upper bound for parameters (boxed constraint) |
verbose |
numeric. Verbosity level |
method |
Specifies which optimizer to use |
This is only a thin wrapper to the chosen alternative optimizer.
optimization object with some common entries like parOpt, valOpt convergence, methodOpt and counts. Or NULL in case of failure.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.