Skip to content

ModelSenseNotMinimizeError

Bases: TranslationError

Operation requires a model for minimization.

Raised when an operation requires a model with minimization sense, but has maximization sense.

Some model formats only work with minimization sense. In this case, consider setting the sense to minimize before the transformation, and multiplying the objective by -1 if necessary.

__str__

__str__() -> str