I constructed an integer program modeling a number partitioning problem (partition a given set of numbers into two bins such that the largest bin sum is minimized), and the results are wrong.
To Reproduce
I attach the output of model.write in LP format:
issue17b.lp.txt
Describe the bug
I constructed an integer program modeling a number partitioning problem (partition a given set of numbers into two bins such that the largest bin sum is minimized), and the results are wrong.
To Reproduce
I attach the output of
model.write
in LP format: issue17b.lp.txtHere is the solution I get, with value 38123:
Expected behavior There is another solution, with value 38122:
Desktop (please complete the following information):
Additional context Note that the alternative solution was derived by solving the same problem but with a different order of variables.
issue17a.lp.txt