R/calibrar-main.R
calibration_objFn.Rd
Create a new function, to be used as the objective function in the calibration, given a function to run the model within R, observed data and information about the comparison with data.
calibration_objFn(model, setup, observed, aggFn = NULL, aggregate = FALSE, ...)
Function to run the model and produce a list of outputs.
A data.frame with the information about the calibration,
normally created with the calibration_setup
function.
See details.
A list of the observed variables created with the
function calibration_data
A function to aggregate fn
to a scalar value if the
returned value is a vector. Some optimization algorithm can explote the
additional information provided by a vectorial output from fn
boolean, if TRUE, a scalar value is returned using the
aggFn
.
More arguments passed to the model
function.
A function, integrating the simulation of the model and the comparison with observed data.