Page 1 of 1

Can GAMS run two models at the same time?

Posted: Tue May 08, 2018 11:29 am
by wutuhan
It seems that GAMS can run at least two models at the same time. Then, do they affect each other? How?

Re: Can GAMS run two models at the same time?

Posted: Wed May 09, 2018 3:08 pm
by dirkse
The answer depends on how you run the models.

If you have two separate GAMS jobs, then the solvers run in separate and independent processes. The only way they can interfere is if they use the same files. For example, if you have two GAMS jobs running "gams trnsport" in the same directory you could get chaos writing the .lst file.

There is also a capability for doing parallel solves in a GAMS process. This is detailed here;

https://www.gams.com/latest/docs/UG_GridComputing.html

Don't let the name of the page fool you: the second half is about true async multi-threaded solves within a GAMS process. Some of the ideas and syntax for this build on the grid computing stuff.

-Steve

Re: Can GAMS run two models at the same time?

Posted: Thu May 10, 2018 2:52 am
by wutuhan
Thank you, dirkse. If I run two separate GAMS jobs, then how do they allocate computing resources?