
Creation of a Supervisor for handling regulation in a model
Source:R/CreateSupervisor.R
CreateSupervisor.Rd
Creation of a Supervisor for handling regulation in a model
Arguments
- InputsModel
[object of type
GRiwrmInputsModel
] inputs of the model- TimeStep
integer number of time steps between each supervision
Value
A Supervisor
object which is an environment containing all the necessary variables to run a supervised simulation, such as:
DatesR
lubridate::POSIXct: vector of date fromInputsModel
InputsModel
: a copy ofInputsModel
provided by CreateInputsModel.GRiwrmgriwrm
: a copy ofgriwrm
provided by CreateGRiwrmControllers
list: list of the controllers used in the supervised simulation (See CreateController)some internal state variables updated during simulation (
ts.index
,ts.previous
,ts.date
,ts.index0
,controller.id
)
Details
See RunModel.Supervisor and vignettes for examples of use.