E-CE0301 — Unknown constraint name
Error Type |
|
|---|---|
Phase |
compiling the problem into an OMMX instance |
Python exception |
|
Message
Unknown constraint name `{...}`: no matching constraint was found in the compiled model
Cause
The compiler was asked for a constraint name that is not registered. The most common trigger is Compiler.get_constraint_id_by_name called with a misspelled name, or with a name that does not belong to the compiled problem.
Fix
Check the name passed to Compiler.get_constraint_id_by_name against the constraint declarations of the problem. If this error occurred during Compiler.eval_problem itself, without any explicit lookup, it is a bug in JijModeling — please report it at the JijModeling community on Discord together with the full error output.