energia.components.operations#
energia.operation init file
Classes
|
Process converts one Resource to another Resource at some Location |
|
Storage is a container for three main elements: 1. |
|
Exports Resource through Link basically, moves Resources between Locations |
- class Process(*args, label: str = '', citations: str = '', **kwargs)[source]#
Bases:
OperationProcess converts one Resource to another Resource at some Location
- Parameters:
label (str, optional) – An optional label for the component. Defaults to None.
citations (str | list[str] | dict[str, str | list[str]], optional) – An optional citation or description for the component. Defaults to None.
- Variables:
model (Model) – The model to which the component belongs.
name (str) – Set when the component is assigned as a Model attribute.
constraints (list[str]) – List of constraints associated with the component.
domains (list[Domain]) – List of domains associated with the component.
aspects (dict[Aspect, list[Domain]]) – Aspects associated with the component with domains.
conversion (Conversion, optional) – Operational conversion associated with the operation. Defaults to None.
_conv (bool) – True if the operational conversion has been set. Defaults to False.
fab (Conversion, optional) – Material conversion associated with the operation. Defaults to None.
_fab_balanced (bool) – True if the material conversion has been balanced. Defaults to False.
locations (list[Location]) – Locations at which the process is balanced. Defaults to [].
charges (Storage, optional) – If the Process is Storage charging. Defaults to None.
discharges (Storage, optional) – If the Process is Storage discharging. Defaults to None.
- property production#
Alias for primary_conversion
- property I#
gana index set (I)
- property cons: list[C]#
Constraints
- property program: Prg#
Mathematical program
- show(descriptive=False, category: str = '')#
Pretty print the component
- class Storage(*args, label: str = '', citations: str = '', **kwargs)[source]#
Bases:
_ComponentStorage is a container for three main elements: 1. A Stored resource 2. A charge Process that puts the resource into storage 3. A discharge Process that withdraws the resource from storage
- Parameters:
basis (Unit, optional) – Unit basis of the component. Defaults to None.
label (str, optional) – An optional label for the component. Defaults to None.
citations (str | list[str] | dict[str, str | list[str]], optional) – An optional citation or description for the component. Defaults to None.
store (Resource, optional) – The resource to be stored. Defaults to None.
- Variables:
model (Model) – The model to which the component belongs.
name (str) – Set when the component is assigned as a Model attribute.
constraints (list[str]) – List of constraints associated with the component.
domains (list[Domain]) – List of domains associated with the component.
aspects (dict[Aspect, list[Domain]]) – Aspects associated with the component with domains.
stored (Stored, optional) – The resource being stored. Defaults to None.
conversion (Conversion, optional) – Operational conversion associated with the storage. Defaults to None.
_conv (bool) – True if the operational conversion has been set. Defaults to False.
charge (Process) – The charge process associated with the storage.
discharge (Process) – The discharge process associated with the storage.
locations (list[Location]) – List of locations where the storage is located. Defaults to [].
- property space_times: list[tuple[Location, Periods]][source]#
List of location, time tuples where storage is located
- property cons: list[C]#
Constraints
- write_construction(space_times: list[tuple[Location, Periods]])[source]#
write fabrication constraints for the operation
- property I#
gana index set (I)
- property program: Prg#
Mathematical program
- show(descriptive=False, category: str = '')#
Pretty print the component
- class Transport(*args, label: str = '', citations: str = '', **kwargs)[source]#
Bases:
OperationExports Resource through Link basically, moves Resources between Locations
- Parameters:
basis (Unit, optional) – Unit basis of the component. Defaults to None.
label (str, optional) – An optional label for the component. Defaults to None.
citations (str | list[str] | dict[str, str | list[str]], optional) – An optional citation or description for the component. Defaults to None.
- Variables:
model (Model) – The model to which the component belongs.
name (str) – Set when the component is assigned as a Model attribute.
constraints (list[str]) – List of constraints associated with the component.
domains (list[Domain]) – List of domains associated with the component.
aspects (dict[Aspect, list[Domain]]) – Aspects associated with the component with domains.
conversion (Conversion, optional) – Operational conversion associated with the operation. Defaults to None.
_conv (bool) – True if the operational conversion has been set. Defaults to False.
fab (Conversion, optional) – Material conversion associated with the operation. Defaults to None.
_fab_balanced (bool) – True if the material conversion has been balanced. Defaults to False.
linkages (list[Linkage]) – List of Linkages where the transport is located. Defaults to [].
- property transportation#
Alias for primary_conversion
- property I#
gana index set (I)
- property cons: list[C]#
Constraints
- property program: Prg#
Mathematical program
- show(descriptive=False, category: str = '')#
Pretty print the component
Modules