Page 1 of 1

Changing location for lst files

Posted: Sat Sep 02, 2023 9:57 pm
by edwardmw
Hello,

I want to be able to choose where the lst file is stored that is generated from executing a .gms file. Through searching for help online, I have found the page

https://www.gams.com/mccarlGuide/procdir.htm

but I am having trouble with the syntax.

I realize I also may not even be looking at the right command.

Details on my situation:
have my project files organized in a main folder that contains:

--a folder with one .gms file for each simulation that I run
--a "prep.gms" file that is called at the beginning of a simulation run
--a folder with several .gms files that are each called during a simulation run

I run a simulation using linux terminal by changing directory to the main folder and then calling a simulation .gms file, which then calls other .gms files in the main folder (or subfolder).

I can direct output from the simulation run to a designated folder, but I cannot figure out how to do the same for the lst file generated from a simulation run.

I hope this was clear enough. Thank you for your help!

Re: Changing location for lst files

Posted: Thu Sep 07, 2023 3:51 pm
by Fred
Hi,

You can use the command line parameter output to do that.

I hope this helps!

Fred

Re: Changing location for lst files

Posted: Thu Sep 07, 2023 9:37 pm
by dirkse
Hello,

Perhaps you want to also try the workdir parameter: it might be helpful if you want to redirect many things at once.

https://www.gams.com/44/docs/UG_GamsCal ... SAOworkdir

For example do:
mkdir foo
( cd foo ; gamslib trnsport )
gams trnsport workdir=foo lo=4
ls foo

HTH,

-Steve

Re: Changing location for lst files

Posted: Tue Sep 12, 2023 4:47 am
by edwardmw
Thank you Fred and dirkse, your replies were very helpful!