microgrid.simulate.gridaction module

class microgrid.simulate.gridaction.GridAction(grid_import, grid_export, production, consumption, state_of_charge, charge, discharge, peak, peak_increase)[source]
__init__(grid_import, grid_export, production, consumption, state_of_charge, charge, discharge, peak, peak_increase)[source]

Action taken by the controller. Actually, the action is only a subset of the parameters and other members represent auxiliary information that may be used for reporting purposes.

Each action is defined per device, then per period of the optimization horizon. Each member is defined as a list or as nested lists.

Parameters:
  • grid_import – Auxiliary variable.
  • grid_export – Auxiliary variable.
  • production – Auxiliary variable.
  • consumption – Auxiliary variable.
  • state_of_charge – Auxiliary variable.
  • charge – Action to charge storage devices.
  • discharge – Action to discharge storage devices.
  • peak – Auxiliary variable.
  • peak_increase – Auxiliary variable.
to_json()[source]