cronian.store_factory

Functions to build a prosumer’s flexible demand (modeled as a store) constraint.

Functions

store_feasible_energy_level_rule_factory(...)

Creates the feasible energy level constraints of a store.

store_energy_level_consistency_rule_factory(...)

Creates the energy level consistency Pyomo constraint of a store.

Module Contents

cronian.store_factory.store_feasible_energy_level_rule_factory(prosumer_id: str, end_use_demand: str) pyomo.environ.Constraint

Creates the feasible energy level constraints of a store.

Args:

prosumer_id: The prosumer’s ID. flex_demand: Flexible demand name in prosumer dict. end_use_demand: Name of end_use demand (electricity_for_space_heating).

Returns:
A Pyomo constraint for the feasible energy level (e_min and e_max) of

the store.

cronian.store_factory.store_energy_level_consistency_rule_factory(prosumer_id: str, end_use_demand: str) pyomo.environ.Constraint

Creates the energy level consistency Pyomo constraint of a store.

Args:

prosumer_id: The prosumer’s ID. flex_demand: Flexible demand name in prosumer dict. end_use_demand: Name of end_use demand (electricity_for_space_heating).

Returns:

A Pyomo constraint for the energy level consistency of a store.