Currently if I set a timelimit in Pulp with for example the Gurobi solver, the decision variables of the model have the value corresponding to the last checked solution instead of the last best solution. Does anybody know how to retrieve this last best solution if a timelimit is reached?
I now retrieve the binary variables equaling 1 using the following method:
X_vars = [c for c in DATA if x_in[c].varValue > 0]