E-TE0015 — Binary operation not supported between these types
Error Type |
|
|---|---|
Phase |
type checking the model |
Python exception |
|
Message
`{kind}` is not supported between types `{type1}` and `{type2}`
Cause
A binary operator (arithmetic, comparison, logical, or set operation) was applied to two operands whose types do not support that operator together — for example, adding a number to a set, or comparing values of unrelated types.
Fix
Check the two operand types in the message and adjust one side so the operator is defined between them (e.g. subscript an array down to a scalar before combining it with a number).
If you want to use broadcasted arithmetics on multi-dimensional arrays/dicts with different shapes/keys, consider using genarray() or gendict() instead.