energia.components.operations.operation#
A General Operation
Functions
|
A decorator indicating abstract methods. |
|
Logs execution time and optionally shows a full computation using function arguments and result. |
Classes
|
Operation Construction Conversion |
|
Processes convert one Commodity to another Commodity Conversion provides the conversion of resources |
|
A General Operation |
|
- class Operation(*args, label: str = '', citations: str = '', **kwargs)[source]#
Bases:
_ComponentA General Operation
- 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 – Operational conversion associated with the operation. Defaults to None.
:vartype conversion : Conversion, optional :ivar fab: Material conversion associated with the operation. Defaults to None. :vartype fab: Conversion, optional :ivar _fab_balanced: True if the material conversion has been balanced. Defaults to False. :vartype _fab_balanced: bool
- write_primary_conversion(space_times: list[tuple[Location | Linkage, Periods]])[source]#
write conversion constraints for the operation
- write_construction(space_times: list[tuple[Location | Linkage, Periods]])[source]#
write fabrication constraints for the operation
- 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