Hi GAMS users,
I am running a time series model that solves an optimization problem for a day (based on hourly resolution) and loops for 365 days. It runs fast until 50-60 days and its speed gradually decreases to the point where my PC freezes. I am using 64 bit i-5 processor with a ram of 8GB. With each loop, it increases its memory consumption and finally uses it all (8GB) around tauo=100 (day 100). I would so much appreciate your help and I have attached my code for reference.
Thank you,
yonas
–
looping.gms (30.3 KB)
Yonas,
In order to speed up I recommend:
-
use “option solvelink=2;” (that keep GAMS alive in memory)
-
and most importantly: ‘option solveopt=replace;’ The default ‘merge’ merges in the results of the daily model and your internal GAMS database grows with every iteration. Please check documentation on the solveopt option in the GAMS/McCarl Guide.
If that doesn’t help, contact support@gams.com and provide the include files so they can reproduce and give more detailed instructions.
Hope this helps,
Michael Bussieck - GAMSWorld Coordinator
On Tuesday, May 7, 2013 6:59:52 AM UTC-4, Yonas Gebrekiros wrote:
Hi GAMS users,
I am running a time series model that solves an optimization problem for a day (based on hourly resolution) and loops for 365 days. It runs fast until 50-60 days and its speed gradually decreases to the point where my PC freezes. I am using 64 bit i-5 processor with a ram of 8GB. With each loop, it increases its memory consumption and finally uses it all (8GB) around tauo=100 (day 100). I would so much appreciate your help and I have attached my code for reference.
Thank you,
yonas
–
To unsubscribe from this group and stop receiving emails from it, send an email to gamsworld+unsubscribe@googlegroups.com.
To post to this group, send email to gamsworld@googlegroups.com.
Visit this group at http://groups.google.com/group/gamsworld?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
\
Dear Michael,
Thank you very much! Your feedback was very valuable and it worked!
Best regards,
Yonas
From: gamsworld@googlegroups.com [mailto:gamsworld@googlegroups.com] On Behalf Of Michael Bussieck
Sent: 7. mai 2013 13:47
To: gamsworld@googlegroups.com
Subject: Re: Speed issues with GAMS when looping
Yonas,
In order to speed up I recommend:
-
use “option solvelink=2;” (that keep GAMS alive in memory)
-
and most importantly: ‘option solveopt=replace;’ The default ‘merge’ merges in the results of the daily model and your internal GAMS database grows with every iteration. Please check documentation on the solveopt option in the GAMS/McCarl Guide.
If that doesn’t help, contact support@gams.com and provide the include files so they can reproduce and give more detailed instructions.
Hope this helps,
Michael Bussieck - GAMSWorld Coordinator
On Tuesday, May 7, 2013 6:59:52 AM UTC-4, Yonas Gebrekiros wrote:
Hi GAMS users,
I am running a time series model that solves an optimization problem for a day (based on hourly resolution) and loops for 365 days. It runs fast until 50-60 days and its speed gradually decreases to the point where my PC freezes. I am using 64 bit i-5 processor with a ram of 8GB. With each loop, it increases its memory consumption and finally uses it all (8GB) around tauo=100 (day 100). I would so much appreciate your help and I have attached my code for reference.
Thank you,
yonas
To unsubscribe from this group and stop receiving emails from it, send an email to gamsworld+unsubscribe@googlegroups.com.
To post to this group, send email to gamsworld@googlegroups.com.
Visit this group at http://groups.google.com/group/gamsworld?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
\