DM545 – Linear and integer programming
Quick-Start Instructions for Installing and Running Ampl & SolversFor Windows systems:
To install: Create a folder where you will put all your AMPL-related
files. Copy the distribution zipfile,
To run: Double-click "sw.exe" and type "ampl" at the prompt in the
window that appears. Then you will see an "ampl:" prompt and can
proceed to type AMPL commands. By default the MINOS solver will be
invoked by AMPL's " For Linux systems:
To install: Create a directory where you will put all your AMPL-related
files. Copy the distribution zipfile,
To run: Open a command window, use "cd" to go to your AMPL directory,
and type " For MacOS systems:
To install: Create a folder where you will put all your AMPL-related
files. Copy the distribution zipfile,
To run: Open a Mac terminal window, use "cd" to go to your AMPL folder,
and type "./ampl" at the system prompt. Then you will see an "ampl:"
prompt and can proceed to type AMPL commands. By default the MINOS
solver will be invoked by AMPL's "solve;" command; to switch to another
solver, use a command of the form " Note for Mac and Linux usersIn order to be able to run the solvers, you will have to change the $PATH environment variable. You can do so by editing the $HOME/.profile file. You can do this by opening a terminal and running the command
An editor will now appear on the .profile file. Add the following line:
which tells your operating system to (also) look for a program in the current directory, and save the file. After the editing, just run the command
which tells the operating system to take into account those changes. This procedure needs to be done only once. Every terminal you open after this will be aware of these changes. After that, you’ll be able to open a terminal and run AMPL without all this. Date: 2013-04-20 00:06:35 CEST HTML generated by org-mode 6.33x in emacs 23 |