You are on page 1of 2

GAMS 2.

50 Installation and System Notes for Windows

SYSTEM REQUIREMENTS system came with a license file on a diskette, browse to


the A: drive. When you have found the correct
To install the system you need approximately 40 MB of free directory, choose ‘Copy license file’ to perform
disk space. GAMS dynamically allocates the memory the copy.
(RAM) needed to generate and execute the models. At least
32 of RAM is recommended to run models of reasonable 3. Create project files: If this is the first installation of
GAMS with the GAMS IDE on your system, setup will
size. Huge models may need much more memory. A math
Coprocessor is required and we recommend using a Pentium create a default GAMS project in a subdirectory of the
or higher Intel compatible chip. To install the Windows WINDOWS directory. If this is not the first such
version, you must be running Windows 95 or higher or installation, your existing GAMS projects will be
Windows NT 3.51 or higher. Windows 3.1 users must use preserved.
the DOS version of GAMS. 4. Choose default solvers: Run the GAMS IDE by double
clicking gamside.exe from the GAMS directory. To
view or edit the default solvers, choose File Options

INSTALLATION
 Solvers from the IDE. You can accept the existing
defaults if you wish, but most users will want to pick
1. Run setup.exe: In most cases, you will run the file default solvers for each model type. It is a good idea to
\systems\win\setup.exe directly from the GAMS review the solver defaults when installing a new GAMS
distribution CD. There are many ways to do this; for system or when updating a license file.
example, you can use the Windows Explorer to browse
the CD; open the \systems\win directory and double 5. Run a few models to test the GAMS system: The online
click setup.exe. If you are installing from diskettes, help for the IDE (Help Help Topics
 Guided


you can run setup.exe from the first system diskette; Tour) describes how to copy a model from the GAMS
you will be prompted to insert the remaining diskettes model library, run it, and view the solution. To test
in turn. You can also copy all the diskette files to a your installation, run the following models from the
scratch directory on the hard disk and run setup.exe GAMS model library:
from there. Similarly, if you obtain the distribution via
LP: trnsport (objective value: 153.675)
ftp or any other means, put all the distribution files into NLP: chenery (objective value: 1058.9)
a scratch directory and run setup.exe. Except when MIP: bid (optimal solution: 15210109.512)
installing from diskettes, all distribution files should be MINLP: procsel (optimal solution: 1.9231)
MCP: scarfmcp (no objective function)
in the same directory when running setup.exe. The
MPSGE: scarfmge (no objective function)
setup program will first prompt you for the name of the
directory in which to install GAMS. We call this If there are any problems during these test runs, read
directory the ‘GAMS directory’. You may accept the the section on Troubleshooting.
default choice or pick another directory. Please
remember that if you want to install two different
versions of GAMS, they should be in separate COMMAND LINE INSTALLATION
directories (for example c:\gams and c:\gams old).
The GAMS software will be installed in the directory Users wishing to use GAMS from the command line (i.e. in
you choose. console mode) may want to perform the following steps
after they have installed the system as described above.
2. Copy the license file: If no license file is found in the These steps are not necessary to run GAMS via the IDE.
GAMS directory, you will be prompted for one during
the installation. If you are not sure if you have a license 1. Run the program gamsinst: gamsinst is a command
file, or do not have it yet, choose ‘No’ when asked if line program used to install and configure GAMS. It
you wish to copy a license file. You can always do this prompts the user for default solvers to be used for each
later. If no valid license file is found, GAMS will still model type. If possible choose solvers you have
function in demonstration mode and will only solve licensed since unlicensed solvers will only run in
small problems. For example, all demonstration and demonstration mode.These solver defaults can be
student systems are shipped without a license. If you changed by:
have a license file that you wish to copy to the GAMS
directory at this time, answer ‘Yes’ to the license file (a) rerunning gamsinst and resetting the default
prompt. You will now be given the opportunity to values
browse the file system and find the directory containing (b) setting a command line default, e.g. gams
the license file you wish to copy. For example, if your trsnport lp=bdmlp

In case of problems, please contact GAMS Development Corporation by email at support@gams.com, by telephone at (202) 342-0180, or
by fax at (202) 342-0181. Make sure that you have pen and paper available to make notes, and if possible, sit in front of the machine when
you call.
GAMS 2.50 Installation and System Notes for Windows

(c) by an option statement in the GAMS model, e.g: TROUBLESHOOTING


option lp=bdmlp
GAMS rarely causes problems, and most of the problems
If you have to support different operating systems from that occur can be corrected quite easily by following the
the same installation, please use ‘gamsinst -sys notes in this section.
all’ A complete log of the installation is stored in
gamsinst.log.
Insufficient memory When GAMS produces an output
N.B. The system wide solver defaults are shared by the
like this one:
command line and GUI versions of GAMS, so you can
also choose these defaults using GAMS IDE. --- TEST.GMS(4) 671 Kb
*** Out of Memory *** . . .
2. Add the GAMS directory to your path. To avoid having
to type in an absolute path name each time you run GAMS itself is running out of memory. If the memory
GAMS, we recommend adding the GAMS directory to installed on your machine is not sufficient for your
your PATH when using the console mode (not the problems, try to run the model on a machine with more
GAMS IDE) version of GAMS. In case more than one memory. Note that using virtual memory will allow you to
GAMS system is installed on the machine, then separate solve larger problems than possible using real memory
paths have to be set before invoking each version. alone. However, using virtual memory will slow down the
Under Windows 95/98, this change requires editing the GAMS system.
autoexec.bat file and adding the GAMS directory to
the path, as the following example illustrates:
Environment space When running the console mode
path=your\current\path\setting version of GAMS, it may under some circumstances be
path=%PATH%;c:\gams necessary to adjust the settings for the initial environment to
4096. In order to change this under Windows 95/98, click
the right mouse button on the title bar of MSDOS Prompt
Under Windows NT the following procedure must be
Window and select Properties. Open the Memory tab and
applied to add the GAMS directory to your path,
change the value of the ‘Initial environment’ box to
4096.


Open the System Properties under the Control


Panel.
Other technical problems: For other technical questions


On the Environment tab click on the existing


like insufficient disk space, licensing problems or solver
variable PATH
failures please check the GAMS web sites or contact our


In the Value box, add the GAMS directory to the support staff directly.
path, as the following example illustrates:
c:\your\current\path\setting;C:\gams


Click Set.

NETWORK SUPPORT

GAMS 2.50 supports the Uniform Naming Convention


(UNC) both for the system and for the solvers. GAMS can
be installed and accessed over a network of PC’s. For
example: GAMS has been installed on a machine called
bach in the directory gams. Now you are sitting in front of
another machine and want to run a model (trnsport.gms),
which is located in the current directory. To run this model,
you can use the command
>\\bach\gams\gams trnsport
or, if the path to the remote machine’s GAMS system is in
your PATH statement, simply
>gams trnsport

In case of problems, please contact GAMS Development Corporation by email at support@gams.com, by telephone at (202) 342-0180, or
by fax at (202) 342-0181. Make sure that you have pen and paper available to make notes, and if possible, sit in front of the machine when
you call.

You might also like