E-CE0201 — Unknown decision variable name

Error Type

Compile Error

Phase

compiling the problem into an OMMX instance

Python exception

jijmodeling.ModelingError

Message

Unknown decision variable name `{...}`.

No decision variable with this name is registered in the compiler.

Cause

The compiler was asked for a decision variable name that is not registered. The most common trigger is Compiler.get_decision_variable_by_name called with a misspelled name, or with a name that is not declared as a decision variable of the compiled problem.

Fix

Check the name passed to Compiler.get_decision_variable_by_name against the variable 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.