JijModeling Error Code Index
This page lists all error codes emitted by JijModeling. You can see the description and possible causes or fixes for each error code.
How to read a JijModeling error
Most errors raised by JijModeling look like this:
Traceback (most recent last):
while evaluating expression `d[i]`,
defined at File "model.py", line 12, col 51-55
...
error[E-CE0008] Index 4 is out of bounds for axis 0, which has size 3
Hint: You can read the description and possible fix at <this site>/error_codes/error/E-CE0008.html
The traceback lists what the compiler was doing, innermost last, with the source location of each step where one is known.
The
error[E-XXNNNN]line carries the error code; the tables below link each code to its description and possible fixes.Programmatically, the code is available as the
error_codeattribute of the raised exception, and the documentation URL asdoc_url.
Compile Error (CE)
Code |
Title |
|---|---|
Dangling bound variable |
|
Missing placeholder value |
|
Unknown instance data entry |
|
Missing category label values |
|
Instance data name conflicts with an existing declaration |
|
Cyclic placeholder dependency |
|
Calling a non-function value |
|
Internal invariant violation |
|
Array index out of bounds |
|
Jagged array subscript out of bounds |
|
Step of a slice or range is zero |
|
min/max over an empty collection |
|
Internal JSON serialization failure |
|
OMMX rejected the built instance |
|
Internal len_at dimension check |
|
Internal len_at on jagged array check |
|
Dict key not found |
|
Unknown variable in fixed_variables |
|
Fixed value outside the variable domain |
|
Failed to register constraint hints |
|
Scalar fixed value for an indexed variable |
|
Subscripted fixed value for a scalar variable |
|
Array shape mismatch |
|
Internal invalid array shape |
|
Internal: unknown decision variable ID |
|
Unknown decision variable name |
|
Internal: decision variable registered twice |
|
Decision variable subscript out of range |
|
Invalid decision variable bound |
|
Decision variable rejected by OMMX |
|
Internal: unknown constraint ID |
|
Unknown constraint name |
|
Conflicting constraint definition for a subscript |
|
Inconsistent constraint subscript count |
|
Constraint hint subscript out of domain |
|
Internal: non-uniform jagged array dimensions |
|
Non-numeric value in a fixed-variables dictionary |
|
Invalid key in a fixed-variables dictionary |
|
Invalid fixed-variable entry |
|
Unknown constraint hint name |
|
Invalid constraint hint name type |
|
Invalid constraint detection configuration |
Internal Error (IE)
Code |
Title |
|---|---|
Unexpected type in e-graph conversion |
|
Arity mismatch in e-graph conversion |
|
Unexpected term in e-graph conversion |
|
Internal: empty optional term in e-graph conversion |
|
Type mismatch in e-graph conversion |
|
Internal e-graph error during constraint detection |
|
Internal invariant violated in the Python frontend |
Instance Generation Error (IG)
Code |
Title |
|---|---|
Random generation for an empty RangeNat type |
|
Category label with no labels |
|
Empty value-range hint |
|
Empty size-range hint |
|
Missing placeholder schema |
|
Unsupported value for a data generation hint |
|
Range hint with a step other than 1 |
|
Invalid size range hint |
|
Size range with inverted bounds |
|
Invalid value range dict |
|
Invalid value range hint |
|
Value range with inverted bounds |
|
Invalid size range dict |
Modeling Error (MD)
Code |
Title |
|---|---|
Dimension and shape mismatch |
|
Conflicting placeholder parameters |
|
Conflicting decision variable parameters |
|
Nested comparison in a constraint |
|
Jagged array constraint not supported |
|
Conflicting constraint definition |
|
Inconsistent constraint dimensions |
|
Constraint expression is not a comparison |
|
Named expression cannot be saved in the OMMX output |
|
Undefined name in expression |
|
Name already in use |
|
Undefined category label |
Protobuf Error (PE)
Code |
Title |
|---|---|
Invalid internal expression reference |
|
Unsupported schema version |
|
Unspecified enum value in serialized model |
|
Required field missing from serialized model |
|
Invalid enum variant in serialized model |
|
Serialized problem has no objective function |
|
Serialized message has an empty body |
|
Invalid protobuf message |
|
Conflicting axes fields |
|
Invalid axis expression |
|
Attempted to serialize an unsupported node |
|
Cyclic dependency between parameters |
|
Insufficient buffer capacity while encoding |
Syntax Error (SE)
Code |
Title |
|---|---|
JijModeling object iterated at runtime |
|
Unsupported loop target in a comprehension |
|
More than one for-clause in a comprehension |
|
Async comprehension in the decorator API |
|
Unsupported if-clause in a comprehension |
|
Decorated function references an unbound variable |
|
Cannot parse the source of a decorated function |
|
Decorated function takes no arguments |
|
Decorated object is not a plain function definition |
|
Decorator applied to a non-callable object |
|
Calling a function already applied by the decorator |
|
Category label iterated outside the decorator API |
Type Error (TE)
Code |
Title |
|---|---|
Dangling bound variable (internal error) |
|
|
|
|
|
|
|
Type mismatch |
|
Unbound variable |
|
Could not infer type |
|
Could not infer the element type of an empty list |
|
Could not infer the key/value types of an empty dict |
|
Incompatible element types in a list |
|
Incompatible entry types in a dict |
|
Incompatible types |
|
Expression is not a function |
|
Expected a dict |
|
Operation not supported for this type |
|
Binary operation not supported between these types |
|
Invalid dimension expression |
|
Value is not subscriptable |
|
Too many subscripts |
|
Tensor literal length differs from declared first dimension |
|
Invalid axis |
|
Duplicate axis |
|
Impossible state reached (internal error) |
|
Could not infer function supertype (internal error) |
|
Dangling free variable in pattern (internal error) |
|
Could not convert value |
|
Value out of range |
|
Jagged array depth undetermined |
|
Invalid array shape |
|
Invalid comparison operator for a constraint |
|
Ordering comparison on category labels |
|
Category label used in a constraint |
|
Non-scalar comparison operand |
|
Division by zero |
|
Invalid OMMX coefficient |
|
Value cannot be interpreted as an expression |
|
Tuple element cannot be interpreted as an expression |
|
Callable used as an expression takes no arguments |
|
Invalid axis specification |
|
Unexpected extra positional arguments to a reduction function |
|
Axis specified for the two-argument form of min/max |
|
Wrong number of arguments to min/max |
|
Wrong number of arguments to range |
|
Invalid placeholder data type |
|
Non-callable passed where a callable is expected |
|
Invalid dictionary key |
|
Boolean conversion of a modeling object |
|
Unsupported argument type for is_same |
|
Mismatched argument types for is_same |
|
Incomparable elements in is_same iterables |
|
Iterables of different lengths passed to is_same |
|
Unsupported operand for += |
|
Unsupported operand for -= |