Skip to content

GurobiException exception

Bases: PyORlibException

An exception class for handling errors related to the Gurobi Optimization library.

The GurobiException class is a subclass of the CoreException class and is used to handle exceptions specific to the Gurobi library.

Source code in pyorlib/exceptions/gurobi_exception.py
class GurobiException(PyORlibException):
    """
    An exception class for handling errors related to the Gurobi Optimization library.

    The GurobiException class is a subclass of the CoreException class and is used to handle
    exceptions specific to the Gurobi library.
    """

    def __init__(self, message: str = "Gurobi exception"):
        super().__init__(message)

Attributes

errors instance-attribute

errors: str | List[str] = errors if errors else __name__

Functions

__init__

__init__(message: str = 'Gurobi exception')
Source code in pyorlib/exceptions/gurobi_exception.py
def __init__(self, message: str = "Gurobi exception"):
    super().__init__(message)