Potential Bug in YALMIP: No Error for Dimension Mismatch in Equality Constraints #1441
-
Dear professor.
In this example, a is a 1x1 variable, and b is a 2x1 vector. This should ideally trigger a dimension mismatch error, but YALMIP does not report any error, although the model is marked infeasible. Upon inspecting the output file MyFile.lp, I noticed that YALMIP translates this into two equality constraints:
Should YALMIP throw an error when such dimension mismatches occur, or am I misunderstanding how this is handled? Your guidance would be greatly appreciated. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
That's simply MATLAB syntax, so called singleton expansion
|
Beta Was this translation helpful? Give feedback.
That's simply MATLAB syntax, so called singleton expansion