Open GeorgAnegg opened 2 years ago
A long time ago the messages might have been correct - BUT bugs kept creeping in for maximisation problems, so it was decided to flip the objective at the start of branch and bound and then back at end. It would be straightforward to fix the printing (well messages that go via the message handler), but is quite a bit of tedious work to fix stable and master. I would welcome input as to how important this is.
I think I have fixed messages in master. Feedback is welcome. I will probably do stable early next week.
Should be fixed in stable/1.10
Describe the bug When maximizing, the presolve reports positive (intended) solution values, whereas the MIP optimization reports negative (reversed) values. This is (sometimes?) passed on to the ProgressLog from
python-mip
.To Reproduce Take the first example from the python-mip documentation. The CBC output is below.
The faulty ProgressLog can be reproduced with
This gives
(The primal bound of the first entry should be negative and the dual bound of the last entry should be positive.)
The CBC output is
Desktop: