echo.models.agnostic.storage module
- class echo.models.agnostic.storage.MobileStorage(uid: str = NOTHING, port_name: str = NOTHING, units: Units = Units.NA, initial_value: dict[tuple[int, int], float] | float = 0, initial_value_ref: str | None = None, initial_value_scaling: int | None = None, import_constraint_value: ConstraintValueType | None = None, export_constraint_value: ConstraintValueType | None = None, active_periods: dict[tuple[int, int], Any] | None = None, slack: bool = False, objective: en.numeric_expr.NumericExpression | float = 0, allow_dangling_port: bool = False, flows: Flows = Flows.Both, flow_type: OptimisationType = OptimisationType.Variable, import_constraint: FlowConstraint = FlowConstraint.Fixed, export_constraint: FlowConstraint = FlowConstraint.Fixed, depth_of_discharge_limit: float = 0, min_soc: float = 0, charging_efficiency: float = 1, discharging_efficiency: float = 1, fixed_storage_capacity: bool = True, storage_capacity_cost: float | None = None, regularise: bool = False, enable_trip_slack: bool = False, soc_conserv: float | list[float] | list[list[float]] | ndarray | None = None, soc_conserv_cost: float | None = None, available: ndarray | list | None = None, *, max_capacity: float, charging_power_limit: float, discharging_power_limit: float, initial_state_of_charge: float | None = None)
Bases:
StorageNew Storage + EV attributes
- add_objective(model: EchoConcreteModel) None
Populates the port attribute ‘objectives’ with any pyomo expressions that are needed :param model: pyomo concrete model
- add_port_to_model(model: EchoConcreteModel, profile: DataFrame) None
Creates pyomo vars, params, and constraints for the port.
- apply_conserv_soc_constraints(model: EchoConcreteModel) None
- apply_modified_soc_constraints(model: EchoConcreteModel) None
Get some variables to make constraints easier to write
- available: ndarray | list | None
- property cons_slack: str
- enable_trip_slack: bool
- soc_conserv: float | list[float] | list[list[float]] | ndarray | None
- soc_conserv_cost: float | None
- property trip_slack: str
- class echo.models.agnostic.storage.Storage(uid: str = NOTHING, port_name: str = NOTHING, units: Units = Units.NA, initial_value: dict[tuple[int, int], float] | float = 0, initial_value_ref: str | None = None, initial_value_scaling: int | None = None, import_constraint_value: ConstraintValueType | None = None, export_constraint_value: ConstraintValueType | None = None, active_periods: dict[tuple[int, int], Any] | None = None, slack: bool = False, objective: en.numeric_expr.NumericExpression | float = 0, allow_dangling_port: bool = False, flows: Flows = Flows.Both, flow_type: OptimisationType = OptimisationType.Variable, import_constraint: FlowConstraint = FlowConstraint.Fixed, export_constraint: FlowConstraint = FlowConstraint.Fixed, depth_of_discharge_limit: float = 0, min_soc: float = 0, charging_efficiency: float = 1, discharging_efficiency: float = 1, fixed_storage_capacity: bool = True, storage_capacity_cost: float | None = None, regularise: bool = False, *, max_capacity: float, charging_power_limit: float, discharging_power_limit: float, initial_state_of_charge: float | None = None)
Bases:
PortSame as old storage but without all the EV attributes
- add_objective(model: EchoConcreteModel) None
Populates the port attribute ‘objectives’ with any pyomo expressions that are needed :param model: pyomo concrete model
- add_port_to_model(model: EchoConcreteModel, profile: DataFrame) None
Creates pyomo vars, params, and constraints for the port.
- apply_soc_constraints(model: EchoConcreteModel) None
Extract some variables to make constraints easier to write
- charging_efficiency: float
- charging_power_limit: float
- create_storage_variables(model: EchoConcreteModel) None
- depth_of_discharge_limit: float
- discharging_efficiency: float
- discharging_power_limit: float
- export_constraint: FlowConstraint
- fixed_storage_capacity: bool
- flow_type: OptimisationType
- import_constraint: FlowConstraint
- initial_state_of_charge: float | None
- max_capacity: float
- min_soc: float
- property optimised_capacity: str
- regularise: bool
- property soc_constraint: str
- property soc_value: str
- storage_capacity_cost: float | None