If I have 5 hours to wait for GAMS result on Monday and 3 hours on Tuesday, and if I know that the model will be solved after 8 hours first run, is there a way to interrupt GAMS on Monday after 5 hours and run again on Tuesday from where it stopped on Monday.
So, I will get result on Tuesday but totally within 8 hours.
I changed the code and applied it. Flow is like the attachement but I dont understand what is going on background and I am not sure is it true. I expect that I will run my code, after 5 hours I will shut GAMS off then I will re-run it tomorrow from point where I stopped for example;
if I stop it at 5000 sec, I will run tomorrow from 5000 sec to where it lasts, not from 0 sec to where it lasts.
Does it provide this? How will I stop it and re-run from where I stopped tomorrow?
it seems that you do not want to restart GAMS but a solver run. There is no way to do this.
With savepoint you can conveniently store a solution in a gdx file. You could load that solution a a start point the next day but that does not mean that the solver just restarts from the state of second 5000 from the previous day.
In general, i am skeptical that this approach will gain you much. In the screenshot, the solver did not (yet) find a single integer feasible solution. If you have no solution after day 1, you cannot provide a solution as starting point on day 2 and will have to start from scartch again. Even if you would have a feaisble solution you could provide as a starting point, there is a chance but no guarantee that this will speedup the solution process.
I wonder why you actually have to interupt…?
If it takes too long to find a (optimal) solution, you might also want to consider things like
Is the version you are using up to date? If not, there is a chance that updating improves performance.
Is the model formulation good? (Often, there are many alternative formulations, some work better than others).
Your questions are fair-enough. However, I need it, because I use office computer and dont have any possibility to get it home with me. So, I want to slide the program working from where I stop. I think this will be necessary feature if it is possible. Besides, for your questions, model and formulation are good however gams version is old. But, the main subject here is a way of what I need,
In addition, I really dont understand what is the mission of interrupt button on GAMS. I use to cut programme where I want. But it cannot be shown feasible solution.