Other structures¶
Value from a poset¶
ValueFromPoset
dataclass
¶
Bases: Generic[T]
A value in a particular poset (a "typed" value).
Depending on the poset, we have different types:
- For FinitePoset the values are strings.
- For Numbers the values are instances of Decimal.
- For PosetProduct the values are tuples of values.
Attributes:
| Name | Type | Description |
|---|---|---|
value |
str | Decimal | tuple
|
The value \(x \in \posA\) |
poset |
Poset[T]
|
The poset \(\posA\) |
Source code in src/act4e_mcdp/primitivedps.py
Structures used in solution¶
UpperSet
dataclass
¶
Bases: Generic[T]
Describes a finitely-supported upper set of elements of type T.
Attributes:
| Name | Type | Description |
|---|---|---|
minimals |
list[T]
|
A list of elements of type T, which are the minimal elements of the set. |
Source code in src/act4e_mcdp/posets.py
from_points(P, points)
classmethod
¶
Returns the lower set generated by the points.
product(sets)
classmethod
¶
Computes the product of upper sets
Source code in src/act4e_mcdp/posets.py
LowerSet
dataclass
¶
Bases: Generic[T]
Describes a finitely-supported lower set of elements of type T.
Attributes:
| Name | Type | Description |
|---|---|---|
maximals |
list[T]
|
A list of elements of type T, which are the minimal elements of the set. |
Source code in src/act4e_mcdp/posets.py
from_points(P, points)
classmethod
¶
Returns the lower set generated by the points.
Interval
dataclass
¶
Bases: Generic[T]
Describes an optimistic-pessimistic interval for a quantity of type T.
The two values can be the same if there is no uncertainty.
Attributes:
| Name | Type | Description |
|---|---|---|
pessimistic |
T
|
The pessimistic value |
optimistic |
T
|
The optimistic value |