energia.components.temporal.periods#
Time Periods
Functions
|
How many periods make this period |
|
Same as a is b. |
Classes
|
alias of |
|
A number of temporal Periods. |
|
A discretization of Time. |
|
Input Value |
|
Exceptions
|
Raised when two periods are not linked in the period tree. |
- 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