Difference: AMPLAtHome (6 vs. 7)

Revision 72009-07-23 - CameronWalker

Line: 1 to 1
 
META TOPICPARENT name="AMPLGuide"
<-- Ready to Review - done - Lauren-->

Installing AMPL at Home

Line: 13 to 13
 

Downloading AMPL

  1. Go to the AMPL website at www.ampl.com.
Changed:
<
<
  1. Click on the download link to get the Student Edition.

    ampl_download.jpg


  2. 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

    ampl_windows.jpg

>
>
  1. Click on the download link to get the Student Edition.

    ampl_download.jpg

  2. Get the quick start zip file (for Windows) and save it to the appropriate directory . Here we will use
     = C:\Temp

    ampl_windows.jpg

  Your directory should look like this:

ampl_dir.jpg

Extracting AMPL

Changed:
<
<
Open the zip file and extract it into <AMPL root>. Make sure to check Use folder names.
>
>
Open the zip file and extract it into . Make sure to check Use folder names.
 
Changed:
<
<
After extraction your <AMPL root> directory should look like this:
>
>
After extraction your directory should look like this:
  ampl_done.jpg

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:
Changed:
<
<
  1. Right click on the Desktop and create a new Text Document.

    make_text.jpg


  2. Name the document setup_ampl.bat. If queried about changing the extension, click Yes.

    change_ext.jpg


  3. Open Notepad. Go to the start menu, select Programs, then Accessories and finally Notepad.

    run_notepad.jpg


  4. Open setup_ampl.bat in Notepad.

    open_batch.jpg


  5. Add the following lines to setup_ampl.bat:
    path %path%;<AMPL root>\ampcml
    start cmd.exe

    edit_batch.jpg


>
>
  1. Right click on the Desktop and create a new Text Document.

    make_text.jpg

  2. Name the document setup_ampl.bat. If queried about changing the extension, click Yes.

    change_ext.jpg

  3. Open Notepad. Go to the start menu, select Programs, then Accessories and finally Notepad.

    run_notepad.jpg

  4. Open setup_ampl.bat in Notepad.

    open_batch.jpg

  5. Add the following lines to setup_ampl.bat:
    path %path%;\amplcml
    start cmd.exe

    edit_batch.jpg

 
  1. 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.

    run_batch.jpg

You can now run AMPL from anywhere on your computer.

 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2023 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback