energia.components.temporal#
energia.temporal init file
Classes
|
A discretization of Time. |
|
A temporal scale for a model. |
- class Periods(size: int | float = 1, of: Self | None = None, n: int | None = None, label: str = '', citations: str = '')[source]#
Bases:
_XA discretization of Time.
- Parameters:
- Variables:
model (Model) – Model to which the Periods belongs.
time (Time) – Time to which the Periods belongs.
horizon (Periods) – Horizon of the Time.
I (I) – Index set of the Periods.
constraints (list[str]) – List of constraints associated with the Periods. Defaults to [].
domains (list[Domain]) – List of domains associated with the Periods. Defaults to [].
aspects (dict[Aspect, list[Domain]]) – Aspects associated with the Periods.
- property tree: dict[Self, dict]#
Tree representation of the Periods
- property cons: list[C]#
Constraints
- property horizon: Self#
Time Horizon
- property true_size: float#
True size of the Periods
- property program: Prg#
Mathematical program
- show(descriptive=False, category: str = '')#
Pretty print the component
- class TemporalScales(discretizations: list[int], names: list[str] | None = None)[source]#
Bases:
objectA temporal scale for a model.
- Parameters:
discretizations (list[int]) – List of discretizations for the temporal scale.
names (list[str], optional) – Names of the discretizations. Defaults to [t<i>] for each discretization.
Modules