energia.modeling.variables.loss#
Loss Variable
Functions
|
Add dunder methods based on the fields defined in the class. |
Classes
|
A particular facet of the system under consideration. |
|
Loss Entails the degradation of a state In the case of Capacity, it is the loss of capacity In the case of Inventory, it is the loss of inventory Unlike Dismantle, loss is not a decision |
- class Loss(primary_type: Type[_Component] | tuple[Type[_Component], ...], nn: bool = True, ispos: bool = True, neg: str = '', latex: str = '', bound: str = '', label: str = '', use_multiplier: bool = False)[source]#
Bases:
AspectLoss Entails the degradation of a state In the case of Capacity, it is the loss of capacity In the case of Inventory, it is the loss of inventory Unlike Dismantle, loss is not a decision
- property I: Idx#
gana index set (I)
- property V: Var#
Variable
- alias(*names: str)#
Create aliases for the decision
- Parameters:
names (str) – Names of the aliases
- bound: str = ''#
- property box#
Box of domain indices
- property cons: list[C]#
Constraints
- crumple_domains()#
- property dispositions: dict[Self, dict[Commodity | Process | Storage | Transport, dict[Periods | Location | Linkage, dict[Location | Periods | Linkage, bool]]]]#
Dispositions dict
- property isneg: bool#
Does this remove from the domain?
- ispos: bool = True#
- label: str = ''#
- latex: str = ''#
- neg: str = ''#
- nn: bool = True#
- output(n_sol: int = 0, aslist: bool = False, asdict: bool = False, compare: bool = False) list[float] | dict[tuple[Idx, ...], float] | None#
Solution
- Parameters:
n_sol (int, optional) – Solution number. Defaults to 0.
compare (bool, optional) – Compares the solution with the previous one. Defaults to False.
optional) (aslist (bool,) – Returns values taken as dict. Defaults to False.
optional) – Returns values taken as list. Defaults to False.
- Returns:
List of values taken by the decision.
- Return type:
list[float] | None
- property program: Prg#
Mathematical Program
- show(descriptive=False)#
Pretty print the component
- property sign: float#
Gives the multiplier in balances
- property sizes#
dict of domain sizes
- use_multiplier: bool = False#
- primary_type: Type[_Component] | tuple[Type[_Component], ...]#