h2integrate.control.control_rules.storage.pyomo_storage_rule_baseclass#
Classes
|
Base class defining Pyomo rules for generic commodity storage components. |
|
- class h2integrate.control.control_rules.storage.pyomo_storage_rule_baseclass.PyomoStorageRuleBaseConfig(*, commodity, commodity_rate_units, max_capacity, min_soc_fraction=0.1, max_soc_fraction=0.9, charge_efficiency=0.938, discharge_efficiency=0.938)#
- Parameters:
commodity (str)
commodity_rate_units (str)
max_capacity (float)
min_soc_fraction (float)
max_soc_fraction (float)
charge_efficiency (float)
discharge_efficiency (float)
- max_capacity: float#
- min_soc_fraction: float#
- max_soc_fraction: float#
- charge_efficiency: float#
- discharge_efficiency: float#
- class h2integrate.control.control_rules.storage.pyomo_storage_rule_baseclass.PyomoRuleStorageBaseclass(**kwargs)#
Base class defining Pyomo rules for generic commodity storage components.
- _time_step_bounds = (3600, 3600)#
- setup()#
Declare inputs and outputs.
- Available attributes:
name pathname comm options
- _create_parameters(pyomo_model, t)#
Create storage-related parameters in the Pyomo model.
This method defines key storage parameters such as capacity limits, state-of-charge (SOC) bounds, efficiencies, and time duration for each time step.
- Parameters:
pyomo_model (pyo.ConcreteModel) – Pyomo model instance representing the storage system.
t – Time index or iterable representing time steps (unused in this method).
- _create_variables(pyomo_model, t)#
Create storage-related decision variables in the Pyomo model.
This method defines binary and continuous variables representing charging/discharging modes, energy flows, and state-of-charge.
- Parameters:
pyomo_model (pyo.ConcreteModel) – Pyomo model instance representing the storage system.
t – Time index or iterable representing time steps (unused in this method).
- _create_constraints(pyomo_model, t)#
Create operational and state-of-charge constraints for storage.
This method defines constraints that enforce: - Mutual exclusivity between charging and discharging. - Upper and lower bounds on charge/discharge flows. - The state-of-charge balance over time.
- Parameters:
pyomo_model (pyo.ConcreteModel) – Pyomo model instance representing the storage system.
t – Time index or iterable representing time steps (unused in this method).
- _create_ports(pyomo_model, t)#
Create Pyomo ports for connecting the storage component.
Ports are used to connect inflows and outflows of the storage system (e.g., charging and discharging commodities) to the overall Pyomo model.
- Parameters:
pyomo_model (pyo.ConcreteModel) – Pyomo model instance representing the storage system.
t – Time index or iterable representing time steps (unused in this method).