Automatically Running GAMS

Questions on using the GAMS APIs (Python, .NET, etc.)
Post Reply
lara
User
User
Posts: 1
Joined: 1 year ago

Automatically Running GAMS

Post by lara »

Hello, guys!
I'm trying to open and run a GAMS file using a batch file but it is not working.
Can someone help me understand why?

I have already tried like this, but it only opens the file, and does not start running, as I want it to.
"C:\Program Files\GAMS23.6\gamside" SLE_GERAL.gms

The first part is my GAMS application path, and SLE_GERAL is my GAMS file.
I have also tried including START and CALL at the beginning of the code, but it also didn't work.

More context: I have a Fortran code, in which I need the results from the GAMS to continue running. I call the batch file to open GAMS, but I always have to click on Run manually.
I'm not sure a batch file is the best way to do it, I'm open to other suggestions.

Thank you very much!
Lara
User avatar
bussieck
Moderator
Moderator
Posts: 1033
Joined: 7 years ago

Re: Automatically Running GAMS

Post by bussieck »

Lara, did you try reading the documentation? Here is a good start for your question https://www.gams.com/latest/docs/UG_GamsCall.html.

-Michael
Post Reply