echo.models.agnostic.bounded module
- class echo.models.agnostic.bounded.BoundedLoad(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, export_constraint: FlowConstraint = FlowConstraint.NoConstraint, flow_type: OptimisationType = OptimisationType.Variable, import_constraint: FlowConstraint = FlowConstraint.NoConstraint, *, upper_bound: ndarray | float, lower_bound: ndarray | float)
Bases:
BoundedPortA port where the load has to be within a max and min value which is specified at each timestep.
- add_port_to_model(model: EchoConcreteModel, profile: DataFrame) None
Creates pyomo vars, params, and constraints for the port.
- import_constraint: FlowConstraint
- lower_bound: ndarray | float
- upper_bound: ndarray | float
- class echo.models.agnostic.bounded.BoundedPort(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, import_constraint: FlowConstraint = FlowConstraint.NoConstraint, export_constraint: FlowConstraint = FlowConstraint.NoConstraint, flow_type: OptimisationType = OptimisationType.Variable, *, upper_bound: ndarray | float, lower_bound: ndarray | float)
Bases:
FlexPortA flex port with an upper and lower bound
- add_port_to_model(model: EchoConcreteModel, profile: DataFrame) None
Creates pyomo vars, params, and constraints for the port.
- lower_bound: ndarray | float
- upper_bound: ndarray | float