E-TE0500 — Could not convert value
Error Type |
|
|---|---|
Phase |
converting values while building or compiling the model |
Python exception |
|
Message
Could not convert value from {from} to {to}
Cause
A value could not be coerced to the required kind — for example, a float with a fractional part supplied where an integer is required, or a scalar of the wrong type used in instance data or as a dict key. It is also raised during compilation when a constant coefficient is required but the operand is an expression containing decision variables or the constant zero — for example, a divisor, remainder operand, or exponent that does not evaluate to a nonzero constant.
Fix
Supply a value of the target kind shown in the message: use whole numbers where integers are expected, and check that the instance data you pass to jijmodeling.Compiler.from_problem matches the declared placeholder types.