E-TE0009 — Incompatible element types in a list

Error Type

Type Error

Phase

type checking the model

Python exception

jijmodeling.TypeError

Message

Elements of the list `{expr}` have incompatible types `{types}`; all elements must share a common type

Cause

A list literal mixes elements whose types do not unify, for example numbers together with ranges, or scalars together with arrays of different dimensions.

Fix

Make all elements of the list the same kind of value. If the types listed in the message differ, convert or restructure the offending elements so they share one common type.