Information about CPLEX and AMPL

CPLEX is free for students and academics

Join the IBM Academic Initiative. You can run CPLEX in standalone mode, or you can call it from C or C++ or Matlab or Python.

Background information and reading

AMPL is a mathematical programming and optimization modeling language which can be used to solve linear, integer, and nonlinear programming problems. You can input your model into AMPL in a reasonably intuitive way and it will use a solver (such as MINOS or CPLEX) for solving the problem. It is capable of solving linear, nonlinear, and integer programs.

The AMPL website contains the whole of the AMPL book.

The student version of AMPL

The AMPL website contains downloadable executables for use in Windows or in Unix/Linux systems, including Mac OSX. These executables are limited in the size of problems they can solve.

Note that if you use the command line interface with Windows and you use Word to create and edit the files, Word will add txt to the end of a filename when stored as a text file. For example, if your model is called zoff.mod and you created it and stored it using Word, the file will be called zoff.mod.txt. To read it into AMPL, you will need to use the command

ampl: model zoff.mod.txt;

More on solvers

AMPL is a modelling language. It uses other packages to actually solve optimization problems.

Here is some more information about working with AMPL.

The NEOS Server

AMPL can also be run remotely on the NEOS server. You submit your model and data files and it will give you the solution.

Examples:

Web resources and hints


John Mitchell