ModelNotQuadraticError ¶
Bases: TranslationError
Raised when a model is expected to be quadratic but contains higher-order terms.
Some solvers or transformations require the model to have at most quadratic expressions. This error signals that unsupported terms were detected.