Accessing intermediate (best available) integer feasible solution in the middle of run

I would like to access intermediate (best available)integer feasible solution in the middle of a long MILP run where desired MIP Gap is not yet reached.

Eg: In Pyomo this is achieved by Ctrl+C keyboard interrupt where the simulation solve stops and python continues on next steps in script to report best available solution

Is there something like this available via GAMSPy?

Sure. You can do the same thing with GAMSPy. Just hit CTRL+C and you will get the best solution so far. You can print the objective value with model.objective_value.

1 Like

Thanks - will try this one :smiley: