energia.components.spatial.linkage#
Linkage links Locations through Transits
Functions
|
Same as a is b. |
Classes
|
Set of index elements (X). |
|
Linkage between two Locations. |
|
- class Linkage(source: Location, sink: Location, dist: float | None = None, bi: bool = False, auto: bool = False, label: str = '', citations: str = '')[source]#
Bases:
_XLinkage between two Locations.
- Parameters:
name (str, optional) – Name of the Linkage. Defaults to None.
label (str, optional) – Label of the Linkage. Defaults to None.
source (Loc) – Source Location.
sink (Loc) – Sink Location.
dist (float | Unit) – Distance between the two Locations.
bi (bool, optional) – Is the Linkage bidirectional? Defaults to False.
auto (bool, optional) – Is the Linkage automatically generated? Defaults to False.
- Variables:
- property isnetwork: bool#
Is this the network of the model? Linkage can never be the network
- property cons: list[C]#
Constraints
- property program: Prg#
Mathematical program
- show(descriptive=False, category: str = '')#
Pretty print the component