Skip to contents

calib_model() runs the model and compares it against observations provided. It can run in parallel by using multiple cores availlable on your computer to run quicker.

Usage

calib_aeme(
  aeme,
  path = ".",
  param,
  model,
  model_controls = NULL,
  vars_sim = "HYD_temp",
  FUN_list = NULL,
  ctrl = NULL,
  weights = c(1),
  param_df = NULL
)

Arguments

aeme

aeme; object.

path

filepath; where input files are located relative to `config`.

param

dataframe; of parameters read in from a csv file. Requires the columns c("model", "file", "name", "value", "min", "max", "log")

model

string; for which model to calibrate. Only one model can be passed. Options are c("dy_cd", "glm_aed" and "gotm_wet").

model_controls

dataframe; of configuration loaded from "model_controls.csv".

vars_sim

vector; of variables names to be used in the calculation of model fit. Currently only supports using one variable.

FUN_list

list of functions; named according to the variables in the vars_sim. Funtions are of the form function(df) which will be used to calculate model fit. If NULL, uses mean absolute error (MAE).

ctrl

list; of controls for sensitivity analysis function created using the create_control function. See create_control for more details.

weights

vector; of weights for each variable in vars_sim. Default to c(1).

param_df

dataframe; of parameters to be used in the calibration. Requires the columns c("model", "file", "name", "value", "min", "max"). This is used to restart from a previous calibration.

Value

string of simulation id to be used to read the simulation output.