E-CE0019 — Failed to register constraint hints
Error Type |
|
|---|---|
Phase |
compiling the problem into an OMMX instance |
Python exception |
|
Message
Internal error: failed to register constraint hints on the OMMX instance: {...}.
This is a bug in JijModeling - please report it to the developers in community Discord (https://discord.gg/Km5dKF9JjG) with the full error output.
Cause
During Compiler.eval_problem(), JijModeling automatically detects constraint hints (such as one-hot or SOS1 structures) and registers them on the compiled OMMX instance so that solvers can exploit that structure. OMMX validates the hints on registration and rejects them if they reference decision variables or constraints that do not exist in the instance or have been removed.
JijModeling generates the hints from the same compiled problem, so a rejection means the hints and the instance went out of sync — an internal inconsistency that cannot be produced by normal use of the library.
Fix
This is a bug in JijModeling. Please report it at the JijModeling community on Discord together with the full error output and, if possible, the model that produced it.
As a temporary workaround, disable automatic constraint-hint detection by passing constraint_detection=False (or jijmodeling.ConstraintDetectionConfig.disable()) to Compiler.eval_problem(); the compiled instance is then produced without hints.