E-MD0002 — Conflicting decision variable parameters
Error Type |
|
|---|---|
Phase |
building the model (declaring a decision variable) |
Python exception |
|
Message
Conflicting decision variable parameters for `{name}`.
Cannot specify both `dict_keys` and `shape`.
Cause
A decision variable was declared with both dict_keys (a dict-keyed variable) and shape (a tensor variable); the two representations are mutually exclusive.
Fix
Keep only one of the two: use shape for a dense tensor of variables, or dict_keys for a dictionary of variables.