microgrid.simulate.simulator module¶
-
class
microgrid.simulate.simulator.
Simulator
(grid, controller, database)[source]¶ -
__init__
(grid, controller, database)[source]¶ Parameters: - grid – A description of the grid as a Grid object
- controller – tool that decides, based on a forecast, a grid state and a model, which decisions to apply to the system now, until the next reoptimization
- database – (true) evolution of the exogeneous quantities over the simulation period
-
run
(start_date, end_date, decision_horizon=1, optim_horizon=12)[source]¶ Run the simulation.
Parameters: - start_date – start period of the simulation
- end_date – end period of the simulation
- decision_horizon – resolution of the simulation, in hours
- optim_horizon – parameter passed to the controller in case the latter computes decisions over an optimization horizon longer than 1 period.
Returns:
-