Open bohong0528 opened 2 years ago
I don't think I understand the issue. The Start
attribute of Gurobi is an internal datastructure, which should not be used by the user on the python-mip side, right? This is also something that can't be changed within python-mip.
The proper API to use is the property start
of mip.Model
. This can be used to set an initial solution (where solver.set_start
will then be called). It can also be used to get that solution, which will return the internal model.__start
attribute, which is just a reference to whatever the user passed before.
So, model.Start
should not be used (and will not actually pass anything to Gurobi?), while model.start
should work for both Gurobi and CBC.
Do you have a small, reproducible example where model.start
does not work?
Describe the bug I'm trying to use the initial feasible solution from start attribute to solve MIP problems, when I use CBC solver to do so which is fine but while using Gurobi I found out the start attribite used by Gurobi is in upper case (m.Start instead of m.start). I'm nor sure it is an issue but I think it is better to use the same wording.
To Reproduce So I use a if-else to implement this
set_start function in gurobi.py
set_start function in cbc.py
Expected behavior Both using "start" or "Start"
Desktop (please complete the following information):