DimensionDefinition
class¶
Represents the definition of a dimension in an optimization model.
It provides a way to define the characteristics of a dimension, such as its name, display name, minimum and maximum values allowed.
Source code in pyorlib/structures/definitions/dimension_definition.py
Attributes¶
display_name
class-attribute
instance-attribute
¶
The name of the dimension as it should be displayed to the user.
min
class-attribute
instance-attribute
¶
The minimum value allowed for the dimension.
max
class-attribute
instance-attribute
¶
The maximum value allowed for the dimension.
Functions¶
__init__
¶
__init__(name: str, display_name: str | None = None, min: float | int | None = 1, max: float | int | None = None) -> None