Can GAMS run two models at the same time?

Solver related questions
Post Reply
wutuhan
User
User
Posts: 20
Joined: 6 years ago

Can GAMS run two models at the same time?

Post by wutuhan »

It seems that GAMS can run at least two models at the same time. Then, do they affect each other? How?
User avatar
dirkse
Moderator
Moderator
Posts: 214
Joined: 7 years ago
Location: Fairfax, VA

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

Post 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
wutuhan
User
User
Posts: 20
Joined: 6 years ago

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

Post by wutuhan »

Thank you, dirkse. If I run two separate GAMS jobs, then how do they allocate computing resources?
Post Reply