echo.objectives.base module

class echo.objectives.base.Objective(component: Port | Path | None = None, weight: float = 1, uid: str = NOTHING, name: str = NOTHING)

Bases: object

apply_constraints(model: EchoConcreteModel) → None
component: Port | Path | None
create_params(model: EchoConcreteModel, df: DataFrame | None) → None
create_vars(model: EchoConcreteModel) → None
get_objective_total(model: EchoConcreteModel) → float
name: str
objective_expr(model: EchoConcreteModel) → None
uid: str
verify_objective(model: EchoConcreteModel, df: DataFrame | None) → None
weight: float
class echo.objectives.base.ObjectiveSet(objective_list: list[Objective] = NOTHING)

Bases: object

Objective Set is an object containing a list of defined objectives that can be passed to the echo optimiser

add_objectives_to_model(model: EchoConcreteModel, df: DataFrame | None = None) → None
get_objective_total(model: EchoConcreteModel) → float
objective_list: list[Objective]
class echo.objectives.base.TotalExportFlow(weight: float = 1, uid: str = NOTHING, name: str = NOTHING, minimise: bool = True, *, component: Port)

Bases: Objective

Minimises export at a specified port across all time periods/expansions.

apply_constraints(model: EchoConcreteModel) → None
component: Port
minimise: bool
objective_expr(model: EchoConcreteModel) → float
class echo.objectives.base.TotalFlow(weight: float = 1, uid: str = NOTHING, name: str = NOTHING, minimise: bool = True, *, component: Port)

Bases: Objective

Minimises flow at a specified port across all time periods/expansions.

component: Port
minimise: bool
objective_expr(model: EchoConcreteModel) → float
class echo.objectives.base.TotalImportFlow(weight: float = 1, uid: str = NOTHING, name: str = NOTHING, minimise: bool = True, *, component: Port)

Bases: Objective

Minimises import at a specified port across all time periods/expansions.

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