echo.objectives.power module

class echo.objectives.power.FinalChargeObjective(weight: float = 1, uid: str = NOTHING, name: str = NOTHING, *, component: Storage, rate: float)

Bases: Objective

A cost on the final state of charge of a storage asset being below full.

apply_constraints(model: EchoConcreteModel) → None
component: Storage
objective_expr(model: EchoConcreteModel) → float
rate: float
class echo.objectives.power.NotFullyChargedPenalty(weight: float = 1, uid: str = NOTHING, name: str = NOTHING, rate: float | None = None, rate_array: list = NOTHING, *, component: Storage)

Bases: Objective

A penalty objective for penalising a storage asset for not being fulling charged.

apply_constraints(model: EchoConcreteModel) → None
component: Storage
objective_expr(model: EchoConcreteModel) → None
rate: float | None
rate_array: list
class echo.objectives.power.PeakNegativePower(weight: float = 1, uid: str = NOTHING, name: str = NOTHING, *, component: Port)

Bases: Objective

The PeakNegativePower objective minimises the peak negative (exported) power at the specified port.

apply_constraints(model: EchoConcreteModel) → None
component: Port
create_vars(model: EchoConcreteModel) → None
property max_neg: str
objective_expr(model: EchoConcreteModel) → float
class echo.objectives.power.PeakPositivePower(weight: float = 1, uid: str = NOTHING, name: str = NOTHING, *, component: Port)

Bases: Objective

The PeakPositivePower objective minimises the peak positive (imported) power at the specified port.

apply_constraints(model: EchoConcreteModel) → None
component: Port
create_vars(model: EchoConcreteModel) → None
property max_pos: str
objective_expr(model: EchoConcreteModel) → float
class echo.objectives.power.QuadraticPower(weight: float = 1, uid: str = NOTHING, name: str = NOTHING, *, component: Port)

Bases: Objective

The QuadraticPower objective minimises flow^2 at a specified port.

apply_constraints(model: EchoConcreteModel) → None
component: Port
objective_expr(model: EchoConcreteModel) → float