E-TE0014 — Operation not supported for this type
Error Type |
|
|---|---|
Phase |
type checking the model |
Python exception |
|
Message
`{kind}` is not supported for type `{type_}`
Cause
A type does not support the capability named in the message. Typical cases: folding (jm.sum, jm.prod, …) over a value that cannot be iterated (such as a float scalar or a boolean), destructuring set elements with a multi-argument lambda whose arity does not match the element type, using a type that cannot serve as a dictionary key, or a constraint domain whose elements cannot be used as subscripts.
Fix
Apply the operation to a value of a supported type; the message names the operation and the actual type. For example, sum over an array, a set, or an index range rather than a float scalar.