
Creation of a Supervisor for handling regulation in a model
Source:R/CreateSupervisor.R
CreateSupervisor.RdCreation 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:
DatesRlubridate::POSIXct: vector of date fromInputsModelInputsModel: a copy ofInputsModelprovided by CreateInputsModel.GRiwrmgriwrm: a copy ofgriwrmprovided by CreateGRiwrmControllerslist: 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.