Inputdir: Idir

Top  Previous  Next

In general, GAMS searches for input and include files in the current working directory only. This option allows the user to specify additional directories for GAMS to search for include and batinclude files. A maximum of 40 separate directories can be included with the directories separated by Operating System specific symbols. On a PC the separator is a semicolon (;) character, and under Unix it is the colon (:) character. Note that libinclude and sysinclude files are handled differently, and their paths are specified by libincdir and sysincdir. String input is expected.

The command is implemented with

 

Inputdir=listofdirectorynames

or

Idir=listofdirectorynames

 

For example under Windows one could use

 

Idir=c:\;c:\gams;c:\mymodel

 

The search order is (1) current directory and (2) directories specified by inputdir in order.