Closed IlyaShaternik closed 2 years ago
Thanks @IlyaShaternik for reporting the issue.
I can reproduce it with version 1.13.
I already fixed the arithmetic, so on master everything works fine for cbc. It will be available with the next release soon.
Using
mip.xsum
you can add constraint to model, where all variables' coefficients are equal to zero. Consider the following code.If after that I run the following:
I get:
If you don't use
mip.xsum
or use regularsum
instead:Then you get noted by an exception:
Also if you create
Model
object withsolver_name='GRB'
, you still can add that kind of constraint to model, but you won't get an error, while iterating overconstrs
.Operating System: Windows 10 Python version: 3.10.4 Python-MIP version: 1.13.0