energia.modeling.variables.states#
State Variable
Functions
|
Add dunder methods based on the fields defined in the class. |
Classes
|
A particular facet of the system under consideration. |
|
Consequence of an action |
|
Endogenous Stream of Resource, also a state variable |
|
Exogenous Stream of Resource, also a state variable |
|
Indicator Stream of Resource, also a state variable |
|
Inventory State Variable Can only have Stored as primary |
|
Set Point State Variable Operational set point (utilization) |
|
Capacity State Variable Operational capacity |
|
State Variable Operational capacity or set point (utilization) |
|
Stream of Resource, also a state variable |
- class State(primary_type: Type[_Component] | tuple[Type[_Component], ...], nn: bool = True, ispos: bool = True, neg: str = '', latex: str = '', bound: State | None = None, label: str = '', use_multiplier: bool = False, add: Control | None = None, sub: Control | None = None)[source]#
Bases:
AspectState Variable Operational capacity or set point (utilization)
- 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
- 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], ...]#
- class Inventory(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, add: EndoStream | None = None, sub: EndoStream | None = None)[source]#
Bases:
AspectInventory State Variable Can only have Stored as primary
- add: EndoStream | None = None#
- sub: EndoStream | None = None#
- 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], ...]#
- class Size(primary_type: Type[_Component] | tuple[Type[_Component], ...], nn: bool = True, ispos: bool = True, neg: str = '', latex: str = '', bound: State | None = None, label: str = '', use_multiplier: bool = False, add: Control | None = None, sub: Control | None = None)[source]#
Bases:
StateCapacity State Variable Operational capacity
- 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
- 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], ...]#
- class SetPoint(primary_type: Type[_Component] | tuple[Type[_Component], ...], nn: bool = True, ispos: bool = True, neg: str = '', latex: str = '', bound: State | None = None, label: str = '', use_multiplier: bool = False, add: Control | None = None, sub: Control | None = None)[source]#
Bases:
StateSet Point State Variable Operational set point (utilization)
- 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
- 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], ...]#
- class Consequence(primary_type: Type[_Component] | tuple[Type[_Component], ...], nn: bool = True, ispos: bool = True, neg: str = '', latex: str = '', bound: State | None = None, label: str = '', use_multiplier: bool = False, add: Control | None = None, sub: Control | None = None)[source]#
Bases:
StateConsequence of an action
- 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
- 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], ...]#
- class Stream(primary_type: Type[_Component] | tuple[Type[_Component], ...], nn: bool = True, ispos: bool = True, neg: str = '', latex: str = '', bound: State | None = None, label: str = '', use_multiplier: bool = False, add: Control | None = None, sub: Control | None = None)[source]#
Bases:
StateStream of Resource, also a state variable
- 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
- 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], ...]#
- class EndoStream(primary_type: Type[_Component] | tuple[Type[_Component], ...], nn: bool = True, ispos: bool = True, neg: str = '', latex: str = '', bound: State | None = None, label: str = '', use_multiplier: bool = False, add: Control | None = None, sub: Control | None = None)[source]#
Bases:
StreamEndogenous Stream of Resource, also a state variable
- 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
- 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], ...]#
- class ExoStream(primary_type: Type[_Component] | tuple[Type[_Component], ...], nn: bool = True, ispos: bool = True, neg: str = '', latex: str = '', bound: State | None = None, label: str = '', use_multiplier: bool = False, add: Control | None = None, sub: Control | None = None)[source]#
Bases:
StreamExogenous Stream of Resource, also a state variable
- 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
- 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], ...]#
- class IndStream(primary_type: Type[_Component] | tuple[Type[_Component], ...], nn: bool = True, ispos: bool = True, neg: str = '', latex: str = '', bound: State | None = None, label: str = '', use_multiplier: bool = False, add: Control | None = None, sub: Control | None = None)[source]#
Bases:
StreamIndicator Stream of Resource, also a state variable
- 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
- 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], ...]#