Extract objective function value series from optimisation results.

optimtrace(object, ...)

Arguments

object

fitted model object. Currently only hydromad objects are supported.

...

further arguments which may be supported for particular optimisation algorithms. These are:

list("raw")

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.

list("objective")

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.

Value

a zoo series where the time index represents number of function evaluations.

Author

Felix Andrews felix@nfrac.org

Examples


## see examples in fitByOptim, fitBySCE, fitByDE, fitByDream