|
META TOPICPARENT |
name="AMPLGuide" |
|
|
> > | <-- Ready to Review --> |
| Installing AMPL at Home
For Windows |
|
Extracting AMPL |
|
< < | Open the zip file and extract it into . Make sure to check Use folder names. |
> > | Open the zip file and extract it into <AMPL root> . Make sure to check Use folder names . |
| |
|
< < | After extraction your directory should look like this: |
> > | After extraction your <AMPL root> directory should look like this: |
|
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: |
> > | 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: |
| |
|
< < |
- Right click on the Desktop and create a new Text Document.

- Name the document
setup_ampl.bat . If queried about changing the extension, click Yes.
- Open Notepad. Go to the start menu, select Programs, then Accessories and finally Notepad.

- Open setup_ampl.bat in Notepad.

- Add the following lines to 'setup_ampl.bat':
path %path%;\ampcml start cmd.exe

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

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

- Name the document
setup_ampl.bat . If queried about changing the extension, click Yes .
- Open Notepad. Go to the start menu, select Programs, then Accessories and finally Notepad.

- Open
setup_ampl.bat in Notepad.
- Add the following lines to
setup_ampl.bat :path %path%;\ampcml start cmd.exe

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