Can GAMS run two models at the same time?

Solver related questions
Post Reply
wutuhan
User
User
Posts: 19
Joined: 2 months ago

Can GAMS run two models at the same time?

Post by wutuhan » 2 months ago

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: 22
Joined: 1 year ago
Location: Fairfax, VA

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

Post by dirkse » 2 months ago

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: 19
Joined: 2 months ago

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

Post by wutuhan » 2 months ago

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

Post Reply