microgrid.model.grid module

class microgrid.model.grid.Grid(data)[source]
__init__(data)[source]

A microgrid is represented by its devices which are either loads, generators or storage devices, and additional information such as prices. The period duration of the simulation is also stored at this level, although it is more part of the configuration of the simulation.

Parameters:data – A json type dictionary containing a description of the microgrid.
base_purchase_price
get_non_flexible_device_names()[source]
Returns:The list of names of all non-flexible loads and generators for which there must be an entry in the data history
peak_price
period_duration
price_margin
purchase_price(energy_prices)[source]
Parameters:energy_prices – A list of energy prices (i.e. a time series), in EUR/MWh
Returns:The actual purchase price taking into account all components, in EUR/kWh
sale_price(energy_prices)[source]
Parameters:energy_prices – A list of energy prices (i.e. a time series), in EUR/MWh
Returns:The actual sale price taking into account all components, in EUR/kWh