GAMS log file in Linux

Problems with syntax of GAMS
yanzhiping
User
User
Posts: 36
Joined: 2 months ago

GAMS log file in Linux

Postby yanzhiping » 2 months ago

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?

Lutz
User
User
Posts: 7
Joined: 7 months ago

Re: GAMS log file in Linux

Postby Lutz » 2 months ago

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

yanzhiping
User
User
Posts: 36
Joined: 2 months ago

Re: GAMS log file in Linux

Postby yanzhiping » 2 months ago

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?

Lutz
User
User
Posts: 7
Joined: 7 months ago

Re: GAMS log file in Linux

Postby Lutz » 2 months ago

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

yanzhiping
User
User
Posts: 36
Joined: 2 months ago

Re: GAMS log file in Linux

Postby yanzhiping » 2 months ago

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?

mldizd
User
User
Posts: 1
Joined: 2 months ago

Re: GAMS log file in Linux

Postby mldizd » 2 months ago

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
User
User
Posts: 7
Joined: 7 months ago

Re: GAMS log file in Linux

Postby Lutz » 2 months ago

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


Just select a topic, e.g. "Syntax" (viewforum.php?f=2) and click the "New Topic" button on the top.

Lutz


Return to “Syntax”

Who is online

Users browsing this forum: No registered users and 1 guest