---+ Installing AMPL at Home ---++ For Windows You can easily set up AMPL on your (Windows) computer by: 1. [[#download][Downloading]] a "starter kit" from the AMPL website; 2. [[#extract][Extracting]] it on your computer; 3. [[#batch][Creating a batch]] file to set up AMPL. ---++<a name="download"></a> Downloading AMPL 1. Go to the AMPL website at [[https://www.ampl.com][www.ampl.com]]. 2. Click on the download link to get the Student Edition. 3. Get the quick start zip file (for Windows) and save it to the appropriate directory <AMPL root>. Here we will use <AMPL root> = C:\Temp. Your <AMPL root> directory should look like this: ---++<a name="extract"></a> Extracting AMPL Open the zip file and extract it into <AMPL root>. Make sure to check Use folder names. After extraction your <AMPL root> directory should look like this: ---++<a name="batch"></a> Creating a Batch File To simplify your use of AMPL it is easiest to set it up to run from any directory. To do this you need to create a batch file that will set the path to your AMPL executable and then open a Command Line (aka DOS Prompt) window. Here are the steps to do this: 1. Right click on the Desktop and create a new Text Document. 2. Name the document setup_ampl.bat. If queried about changing the extension, click Yes. 3. Open Notepad. Go to the start menu, select Programs, then Accessories and finally Notepad. 4. Open setup_ampl.bat in Notepad 5. Add the following lines to 'setup_ampl.bat': LatexWiki Image 6. Save setup_ampl.bat and then double click on setup_ampl.bat in your Desktop. You will get a command line window (also known as a DOS prompt) pop up and your path will be set to find AMPL. You can now run AMPL from anywhere on your computer. -- Main.MichaelOSullivan - 27 Feb 2008
This topic: OpsRes
>
WebHome
>
AMPLGuide
>
AMPLAtHome
Topic revision: r2 - 2008-02-27 - MichaelOSullivan
Copyright © 2008-2025 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki?
Send feedback