R/optimtrace.R
optimtrace.Rd
Extract objective function value series from optimisation results.
optimtrace(object, ...)
fitted model object. Currently only hydromad
objects are supported.
further arguments which may be supported for particular optimisation algorithms. These are:
if
TRUE
, then raw function values are returned, which may consist of
multiple series in parallel, and may jump up and down. Otherwise (the
default), the best value so far at each time step is returned.
a function or formula to calculate from
object
to construct the objective function value series. It is
passed to objFunVal
. Currently this is only supported for
dream
results.
a zoo
series where the time index represents number of
function evaluations.
## see examples in fitByOptim, fitBySCE, fitByDE, fitByDream