E-TE0005 — Unbound variable

Error Type

Type Error

Phase

type checking the model

Python exception

jijmodeling.TypeError

Message

Unbound variable `{name}`.

Possible fix: define it in the problem before using it.

Cause

An expression refers to a name that was never declared — a placeholder, decision variable, or named expression that does not exist in the problem, or an unknown category label. A typo in the name is the most common cause.

Fix

Declare the placeholder or decision variable (with that exact name) before using it in objectives or constraints, and check for spelling mismatches between the declaration and the use site.