The installation instructions differ depending on your operating system. See below.
-
Installation instructions for Windows
You should download and unpack the files
The directory where you unpack the file is where you will need to run them,
unless you understand how to set the PATH environment variables in Windows.
In the directory where you have unpacked the files, click on sw.exe. This
should cause a window to appear. At the prompt, type "ampl":
sw: ampl
This should start AMPL and prompt ampl: should now appear.
You can exit AMPL by typing quit.
-
Installation instructions for Mac
These instructions assume you have a Mac with an Intel chip.
You should download and unpack the files
If your browswer doesn't automagically offer to unpack the
ampl_bin.zip files, you can manually unzip the file
You should then move all the files to a directory that is on your
search path for executables or just put the ampl_bin
directory on your search path.
Then you need to change the script gurobi to
something like this, where () indicates text you should replace:
#!/bin/sh
DYLD_LIBRARY_PATH=(directory containing libgurobi51.so)
export DYLD_LIBRARY_PATH
exec (complete path name for gurobix) "$@"
(where 51 is the current version number which may be updated in time.)
-
Installation instructions for other systems
The AMPL student version for many other operatong systems is available
at http://www.netlib.org/ampl/student.
The installation on Linux systems is essentially the same as that for
MacOSX, except that DYLD_LIBRARY_PATH in the script gurobi is called
LD_LIBRARY_PATH.