Decreasing the running time in a code

Archive of Gamsworld Google Group
Post Reply
Archiver
User
User
Posts: 7876
Joined: 7 years ago

Decreasing the running time in a code

Post by Archiver »


Hello Dear All,

I have a code in GAMS for microgrid planning, and I have the hourly data for one year as input. The running time for the code is too long (about 2-3 days). I made a monthly average of the data and decreased the annual data to only one month and run the code again; it took shorter than before. Then, I used multiple threads (up to 32 threads), and it helped decreasing the running time even more, but it's still too long.
1) Do you know any other "options" or any specific command to decrease the running time?
2) Could you please let me know how "optfile" works? Does it help to reduce the running time?

Warm Regards,
Hossein Lotfi

PhD Candidate
School of Electrical and Computer Engineering
University of Denver

--
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 https://groups.google.com/group/gamsworld.
For more options, visit https://groups.google.com/d/optout.
Archiver
User
User
Posts: 7876
Joined: 7 years ago

Re: Decreasing the running time in a code

Post by Archiver »


Dear Hossein,

Salaam,

In my opinion, it is not reasonable to consider 8760 time steps for planning studies. Because you cannot guarantee that the load values or wind speeds or even sunlight radiations will be occurred exactly the same as what you have forecast. So I recommend that you change the time steps from 1 hour to some longer sub-periods like valley, shoulder, and peak. In this way, the size of your problem will be decreased significantly and GAMS solvers can easily find its solution.

Regards,

Morteza Shabanzadeh
http://mortezash.blogfa.com/


---------- Forwarded message ----------
From: Hossein Lotfi
Date: Fri, Mar 18, 2016 at 1:57 AM
Subject: Decreasing the running time in a code
To: gamsworld@googlegroups.com


Hello Dear All,

I have a code in GAMS for microgrid planning, and I have the hourly data for one year as input. The running time for the code is too long (about 2-3 days). I made a monthly average of the data and decreased the annual data to only one month and run the code again; it took shorter than before. Then, I used multiple threads (up to 32 threads), and it helped decreasing the running time even more, but it's still too long.
1) Do you know any other "options" or any specific command to decrease the running time?
2) Could you please let me know how "optfile" works? Does it help to reduce the running time?

Warm Regards,
Hossein Lotfi

PhD Candidate
School of Electrical and Computer Engineering
University of Denver

--
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 https://groups.google.com/group/gamsworld.
For more options, visit https://groups.google.com/d/optout.



--

--
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 https://groups.google.com/group/gamsworld.
For more options, visit https://groups.google.com/d/optout.
Post Reply