Python-MIP CBC Solver

Job ID: 32864559

Budget: $250 – $750 AUD

My Python-MIP code is currently not working properly, giving me the wrong solution. I need this to be fixed so that it return the correct solution, which is 49774. Of course, since the problem takes ages to run, a temporary solution in the ballpark of ~49500 or so shows me that the code is working and just needs to be run longer.

If I remove the lines 170 & 171;
m.write(r"2020 SC.lp")
m.read(r"2020 SC.lp")

then the code works perfectly, which means the error is to do with how it saves or reads a .lp file. However for this specific task, I need those 2 lines in there.

You are welcome to change any code in the .py file, as long as it works and the "2020 SC Solution.json" shows the correct result. You are also more than welcome to change the code in the model.py or cbc.py files in the Python-MIP package itself. The 2 JSON data files are 100% correct and should not be adjusted.

Thank you for your time.