R/CreateSupervisor.R
CreateSupervisor.Rd
Creation of a Supervisor for handling regulation in a model
CreateSupervisor(InputsModel, TimeStep = 1L)
[object of type GRiwrmInputsModel
] inputs of the model
numeric number of time steps between each supervision
A Supervisor
object which is an environment containing all the necessary variables to run a supervised simulation, such as:
DatesR
POSIXct: vector of date from InputsModel
InputsModel
: a copy of InputsModel
provided by CreateInputsModel.GRiwrm
griwrm
: a copy of griwrm
provided by CreateGRiwrm
Controllers
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
)
See RunModel.Supervisor and vignettes for examples of use.