cronian.system_balance
Functions
Set an electric power balance constraints for the whole system (market). |
Module Contents
- cronian.system_balance.set_system_electric_power_balance_constraint(model: pyomo.environ.AbstractModel) pyomo.environ.AbstractModel
Set an electric power balance constraints for the whole system (market).
- Parameters:
model – Pyomo AbstractModel to which the constraint is added.
include_base_load – if True, base load from passive consumers is included in the optimization model.
- Returns:
Pyomo AbstractModel with electric power balance constraint added.
Requires model attributes:
timebase_loadgensgen_powerbuilt_prosumers<prosumer_id>_electric_powerEXHSO_electric_power
Creates model attributes:
system_electric_power_balance_constraint(Constraint[time]): setsbase_loadequal to sum of generators’ power, EXHSO electric power and prosumer electric power. Note: this means prosumer electric supply should be positive, and demand should be negative.