Skip to content

SampleIncorrectLengthError

Bases: SolutionTranslationError

Raised when a sample length is different from the number of model variables.

When an external solution format is translated to an AqSolution, the number of variable assignments in the solution's sample has to exactly match the number of variables in the model environment that is passed to the translator.

__str__

__str__() -> str