E-TE0011 — Incompatible types

Error Type

Type Error

Phase

type checking the model

Python exception

jijmodeling.TypeError

Message

Incompatible types: `{type1}` and `{type2}`

Cause

Two types that must be merged into a common type are incompatible. This happens when a set operation (intersection &, union |, symmetric difference ^, or difference jm.diff) is applied to two sets whose element types are incompatible, or when two scalar values whose types cannot be unified are compared.

Fix

Ensure both operands share a common type — for example, do not combine a set of integers with a set of tuples, and do not compare scalar values whose types cannot be unified (the message shows both types).