Open christian2022 opened 2 years ago
Hi @christian2022
Thanks for reporting the issue. I guess that the code is not modifying the lazy constraint as you expect. Instead, a constraint with the same internal index is modified. This could be related to commit from @h-g-s 531d71d97e0a0c8b69efbfe74df5ba48339dd163 at CBC. Will check what gurobi says to it and see how a fix could look like. Maybe at the moment manipulating lazy constraints after generation should be forbidden as it is not fully/correctly supported. There is no mechanism to distinguish if a constraint is a pure one or a lazy one.
Ok, the same problem for gurobi
When I build a model with a few lazy constraints, the first solve works fine. But after changing some elements and resolving, CBC reports infeasible, although after rebuilding the model from scratch it reports feasible. This does not happen if regular constraints instead of lazy constraints are used. Expection would be that it also works correctly with lazy constraints.