Add GAMS directory to PATH environment variable - MATLAB to GAMS MTG

Archive of Gamsworld Google Group
Post Reply
Archiver
User
User
Posts: 7876
Joined: 7 years ago

Add GAMS directory to PATH environment variable - MATLAB to GAMS MTG

Post by Archiver »


Hi there,

unfortunately I have only a solver licences from my UNI for the 23.7 GAMS release.

In the installation set up of that version, I cannot tick "advanced options" to add GAMS directory to PATH environment variable

Somehow MATLAB does not find GAMS

This is the message if I write: system 'gams ? lo=3'

'gams' is not recognized as an internal or external command,
operable program or batch file.

In the meantime I tried to install 24.1. version to communicate between the 24.1. version and GAMS, but that's stupid - I would like to control my licenced version with MATLAB...

Has someone an idea?? I can also not find instructions on the GAMS homepage...

Stefan



--
To unsubscribe from this group and stop receiving emails from it, send an email to gamsworld+unsubscribe@googlegroups.com.
To post to this group, send email to gamsworld@googlegroups.com.
Visit this group at https://groups.google.com/group/gamsworld.
For more options, visit https://groups.google.com/d/optout.
Archiver
User
User
Posts: 7876
Joined: 7 years ago

RE: Add GAMS directory to PATH environment variable - MATLAB to GAMS MTG

Post by Archiver »


Hi Stefan


You can easily add the path to the system variable (see here http://www.computerhope.com/issues/ch000549.htm for how to do this).



If you don’t have the rights to do this, you could add this directory temporarily using a batch file like this:



echo %path% > path.txt

SET PATH=%PATH%;c:\whatever\else



The first line saves the existing path environmental variable in the file path.txt (Windows or I once deleted this variable with all the directories for the executables, and I was happy to have a backup).

The next one adds your directory to the existing path. Save this lines in a batch file (e.g. mypath.bat) and double click on it.



Hope this helps



Cheers

Renger





From: gamsworld@googlegroups.com [mailto:gamsworld@googlegroups.com] On Behalf Of Stefan Kermer
Sent: Thursday, March 24, 2016 10:40 AM
To: gamsworld
Subject: Add GAMS directory to PATH environment variable - MATLAB to GAMS MTG



Hi there,



unfortunately I have only a solver licences from my UNI for the 23.7 GAMS release.



In the installation set up of that version, I cannot tick "advanced options" to add GAMS directory to PATH environment variable



Somehow MATLAB does not find GAMS



This is the message if I write: system 'gams ? lo=3'



'gams' is not recognized as an internal or external command,

operable program or batch file.



In the meantime I tried to install 24.1. version to communicate between the 24.1. version and GAMS, but that's stupid - I would like to control my licenced version with MATLAB...



Has someone an idea?? I can also not find instructions on the GAMS homepage...



Stefan







--
To unsubscribe from this group and stop receiving emails from it, send an email to gamsworld+unsubscribe@googlegroups.com.
To post to this group, send email to gamsworld@googlegroups.com.
Visit this group at https://groups.google.com/group/gamsworld.
For more options, visit https://groups.google.com/d/optout.

--
To unsubscribe from this group and stop receiving emails from it, send an email to gamsworld+unsubscribe@googlegroups.com.
To post to this group, send email to gamsworld@googlegroups.com.
Visit this group at https://groups.google.com/group/gamsworld.
For more options, visit https://groups.google.com/d/optout.
Archiver
User
User
Posts: 7876
Joined: 7 years ago

Re: Add GAMS directory to PATH environment variable - MATLAB to GAMS MTG

Post by Archiver »


Hi thank you very much!

I figured out how to set the path environment variable..

Nevertheless - the MATLAB2 GAMS tool is unfortunately buggy with the 23.7 release - It gives several errors, which cannot track down.... So I try a work around.... :-(


Stefan




Am Donnerstag, 24. März 2016 11:52:19 UTC schrieb Stefan Kermer:

Hi there,

unfortunately I have only a solver licences from my UNI for the 23.7 GAMS release.

In the installation set up of that version, I cannot tick "advanced options" to add GAMS directory to PATH environment variable

Somehow MATLAB does not find GAMS

This is the message if I write: system 'gams ? lo=3'

'gams' is not recognized as an internal or external command,
operable program or batch file.

In the meantime I tried to install 24.1. version to communicate between the 24.1. version and GAMS, but that's stupid - I would like to control my licenced version with MATLAB...

Has someone an idea?? I can also not find instructions on the GAMS homepage...

Stefan



--
To unsubscribe from this group and stop receiving emails from it, send an email to gamsworld+unsubscribe@googlegroups.com.
To post to this group, send email to gamsworld@googlegroups.com.
Visit this group at https://groups.google.com/group/gamsworld.
For more options, visit https://groups.google.com/d/optout.
pitsim13
User
User
Posts: 1
Joined: 1 year ago

Re: Add GAMS directory to PATH environment variable - MATLAB to GAMS MTG

Post by pitsim13 »

hi there,

I am facing quite the same problem with Gams. I have added the GAMS to the PATH environmental variable (C:\GAMS\win64\24.1;C:\GAMS\win64\24.1\gbin) and i have done it also in the set path option in MATLAB (C:\GAMS\win64\24.1). The problem is that when i type a command like ; system 'gams ? lo=3' or something similar i get the message " 'gams' is not recognized as an internal or external command,
operable program or batch file. ",
whereas when i type "which gams" in command window I get this "C:\GAMS\win64\24.1\gams.mexw64"
What can i do?
Post Reply