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.PyomoRuleStorageBaseclass(**kwargs)#
Base class defining PYomo rules for generic commodity storage components.
- _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).