Automatically Running GAMS

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

Automatically Running GAMS

Post by lara » 1 week ago

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: 800
Joined: 5 years ago

Re: Automatically Running GAMS

Post by bussieck » 1 week ago

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