Page 1 of 1
use the answer that has been achieved
Posted: Wed Jun 12, 2019 1:09 pm
by Lucas
Hi guys! I solved a MIP model with the option reslim = 2000 and got MODEL STATUS 8 Integer Solution status. Is it possible to run GAMS in seconds after 2000?
Is there a way I can save time And instead of running the program from the beginning, use the answer that has been achieved so far?
Thanks!
Re: use the answer that has been achieved in 2000s in the 7200s running
Posted: Sat Jun 15, 2019 4:19 pm
by bussieck
You can store a solution in a GDX point file (see option savepoint,
https://www.gams.com/latest/docs/UG_Gam ... Osavepoint). You can load this via execute_loadpoint (
https://www.gams.com/latest/docs/UG_GDX ... _LOADPOINT). You also need to tell the solver to start from this (e.g. with Cplex use option mipstart, see
https://www.gams.com/latest/docs/S_CPLE ... EXmipstart). This is
not restarting the algorithm from the point where it was holding the solution. It just initializes the algorithm with a starting point. All the work on the lower bound by exploring the B&C tree ist lost and needs to be redone.
-Michael