echo.models.base.path module

class echo.models.base.path.Path(vertices: list, edge_ports: list[tuple[Port, Port]] = NOTHING, units: Units = Units.KW, regularise: bool = False, objective: NumericExpression | float = 0, contingency_neg: str | None = None, contingency_pos: str | None = None, path_tariff: str | None = None, slack: str | None = None, uid: str = NOTHING, path_name: str = NOTHING, flow_value: str = NOTHING)

Bases: object

A path is a sequence of distinct vertices (nodes).

add_objective(model: EchoConcreteModel) → None
add_path_to_model(model: EchoConcreteModel) → None
add_vertices(vertex_list: list) → None
contingency_neg: str | None
contingency_pos: str | None
edge_ports: list[tuple[Port, Port]]
flow_value: str
objective: NumericExpression | float
path_name: str
path_tariff: str | None
regularise: bool
slack: str | None
uid: str
units: Units
vertices: list