Two queries
Posted: Thu Apr 25, 2019 7:12 am
Hi GAMS friends,
I am running a programme with a loop on 25 years. I want the programme to stop whenever an infeasible solution is found. That will save time from running over all the 25 years. I think $exit or $stop will help. But I don't know how to add the condition. Please help.
Another problem is that I found it's very difficult to make progress on the iteration of 25 years. Problems keep poping up in nearly every year. It taks a long time to fix the programme for the 1st year, and then a long time to pass the 2nd year, and so on. Is there any technic of how to smoothly run long-time iterations?
Many thanks,
Qiaomin
I am running a programme with a loop on 25 years. I want the programme to stop whenever an infeasible solution is found. That will save time from running over all the 25 years. I think $exit or $stop will help. But I don't know how to add the condition. Please help.
Another problem is that I found it's very difficult to make progress on the iteration of 25 years. Problems keep poping up in nearly every year. It taks a long time to fix the programme for the 1st year, and then a long time to pass the 2nd year, and so on. Is there any technic of how to smoothly run long-time iterations?
Many thanks,
Qiaomin