Skip to content

OptimizationType enum

Bases: IntEnum

An enumeration class representing the type of optimization to be performed.

This class extends the IntEnum class and provides two options for optimization types: MINIMIZE and MAXIMIZE.

Source code in pyorlib/enums/optimization_type.py
class OptimizationType(IntEnum):
    """
    An enumeration class representing the type of optimization to be performed.

    This class extends the `IntEnum` class and provides two options for
    optimization types: MINIMIZE and MAXIMIZE.
    """

    MINIMIZE = 1
    """ Represents a minimization problem. """

    MAXIMIZE = 2
    """ Represents a maximization problem. """

Attributes

MINIMIZE class-attribute instance-attribute

MINIMIZE = 1

Represents a minimization problem.

MAXIMIZE class-attribute instance-attribute

MAXIMIZE = 2

Represents a maximization problem.