when I run gAMS IDE in windows, it would automatically generate lst and log file.
But when it is run in Linux, I could not find log file anymore.
Does anyone know how to fix it?
GAMS log file in Linux
Re: GAMS log file in Linux
Hi,
You have to set the command line option "LogOption" (or short "lo") to either 2 or 4. Here you can find more details about that option:
https://www.gams.com/latest/docs/usergu ... SLogOption
Best regards,
Lutz
You have to set the command line option "LogOption" (or short "lo") to either 2 or 4. Here you can find more details about that option:
https://www.gams.com/latest/docs/usergu ... SLogOption
Best regards,
Lutz
-
- User
- Posts: 85
- Joined: 1 year ago
Re: GAMS log file in Linux
I put LogOption=4 in option.
but it says unknow option.
I know you can do it in command line as
gams trnsport o myrun.lst lo 2
where should I put it inside GAMS code?
but it says unknow option.
I know you can do it in command line as
gams trnsport o myrun.lst lo 2
where should I put it inside GAMS code?
Re: GAMS log file in Linux
Hi,
You did not mention the GAMS version you are using, so I was assuming that you use the recent one. However, it seems that your version is rather old. LogOption=4 was introduced with GAMS 24.1 in 2013 (https://www.gams.com/latest/docs/releasenotes/24.1.html). Older versions than that do not accept 4 as value.
LogOption is a command line option only. You cannot set it inside your code. But here is more info about different ways how to set command line options in general: http://support.gams.com/gams:enter_gams ... ne_options
Hope that helps,
Lutz
You did not mention the GAMS version you are using, so I was assuming that you use the recent one. However, it seems that your version is rather old. LogOption=4 was introduced with GAMS 24.1 in 2013 (https://www.gams.com/latest/docs/releasenotes/24.1.html). Older versions than that do not accept 4 as value.
LogOption is a command line option only. You cannot set it inside your code. But here is more info about different ways how to set command line options in general: http://support.gams.com/gams:enter_gams ... ne_options
Hope that helps,
Lutz
-
- User
- Posts: 85
- Joined: 1 year ago
Re: GAMS log file in Linux
I tried lo option in Linux, then I can see the log file after it finishes.
Is there anyway that I can see the process in the shell of Linux as well?
Is there anyway that I can see the process in the shell of Linux as well?
Re: GAMS log file in Linux
Hello,
Please let me know How I can post my question in this forum. H don't find any icon in this regard.
Thanks in advance
Please let me know How I can post my question in this forum. H don't find any icon in this regard.
Thanks in advance
Re: GAMS log file in Linux
Just select a topic, e.g. "Syntax" (https://forum.gamsworld.org/viewforum.php?f=2) and click the "New Topic" button on the top.mldizd wrote:Hello,
Please let me know How I can post my question in this forum. H don't find any icon in this regard.
Thanks in advance
Lutz