Dr. Ampl — a meta solver for optimization

Home
News
Optimization
What
How
Examples
FAQ
Benchmarks
Installation
Documentation
Mailing list
Project page
Download
To do
Links
Who
Installing Dr. Ampl 0.1

Requirements
There are a few requirements to use Dr. Ampl. Please be patient however; we believe it is well worth the trouble!

GNU Make
Available from www.gnu.org

Although they might work, we are not supporting other versions of Make.
 
The AMPL engine
See www.ampl.com

AMPL is not open source, neither is it free software and the full version does not come free of charge. There is however, for those who do not have access to a full version, a student version of the engine available on the website above. The student version will be limited in the size of the problems that can be decoded. This will however not impose further restrictions on the functionalities of Dr. Ampl.
 
The LibAmpl shared AMPL library builder
Available from www.gerad.ca/~orban/LibAmpl/libampl.tar.bz2

Download the archive from the above url into a fresh directory, change to the new directory and type 'make'.
In the file makedefs-path, set the variable LIBAMPL to the location where you uncompressed LibAmpl.
 
Galahad
Available from galahad.rl.ac.uk/galahad-www

Download the archive from the above url and untar it into a fresh directory.
 
SQLite
Available from www.sqlite.org

Download the complete SQLite 2.8.15 source and documentation tarball. ATTENTION: Dr. Ampl does not support versions 3+ of SQLite. Support for newer versions of SQLite will come when a stable and finalized version emerges. Untargz sqlite-2.8.15.tar.gz in a fresh directory and follow the (easy) instructions in the README file. Edit makefile-path to set SQLITE_LOC to the directory where you unpacked the distribution.
 
A C/C++ compiler for your platform
Nowadays, the excellent gcc is available on most platforms.
 
A Fortran 77 compiler for your platform
Nowadays, the excellent g77 is available on most platforms.
 
A Fortran 90/95 compatible compiler for your platform
[Optional]

If you are working in Linux and do not have a Fortran 90/95 compiler installed, you may want to look into the Intel Fortran Compiler for Linux (www.intel.com/software/products/noncom) for non-commercial use. Read the license agreement! An alternative is the emerging GNU g95 compiler from www.g95.org.
On Windows platforms, the only F90/95 compiler we are aware of that comes free of charge is the port of g95. It works well with both Cygwin and MinGW.
On Mac OS X platforms, check hpc.sf.net.
 
Installation of Dr. Ampl
We refer to the directory where Dr. Ampl was unpacked as $DRAMPL. When all the above requirements are met, change to $DRAMPL and follow these steps.
  1. Edit makedefs-path to adjust paths if necessary.
  2. If necessary, adjust the symbolic links makedefs-f90 and makedefs-cpp to point to the makedefs-xyz defining the compilers you wish to use. Currently, we have defined gcc, g95 and ifort. Please feel free to write a similar file for your favorite compiler and to contribute it to the Dr. Ampl project. Contributions are most welcome and encouraged!
  3. Type 'make'. Shared libaries are installed in the lib directory and the main Dr. Ampl executable, called drampl, in the bin directory.
  4. Include the directory $DRAMPL/lib in your LD_LIBRARY_PATH. Also include $DRAMPL/bin in your PATH. Take a look at $DRAMPL/doc/drampl.bashrc and $DRAMPL/doc/drampl.cshrc for examples on how to do this.
  5. You are set. Take a look at the Examples directory.
Enjoy !
Dominique Orban