echo.models.agnostic.tellegen.multi_commodity module
- class echo.models.agnostic.tellegen.multi_commodity.MultiCommodityTellegenNode(uid: str = NOTHING, node_name: str = NOTHING, ports: dict[str, Port] = NOTHING, objective: NumericExpression | float = 0)
Bases:
NodeA node with ports that have multiple commodities. A tellegen constraint is applied per commodity.
- apply_node_constraints(model: EchoConcreteModel) None
Apply Tellegen constraint for same commodity ports.