Kestrel
The Kestrel client/server is a way of sending your
optimization job to be solved via
the NEOS Server from within your modeling environment and receiving
results that can be interpreted directly by your modeler.
| Modeling Environment | Currently available versions of Kestrel |
| AMPL |
Unix |
Windows |
| GAMS |
Unix |
Windows |
In order to track interest in Kestrel, we ask that you provide your email address before proceeding to the download site. We will mail you about substantial changes in future releases.
Guide to using the Kestrel AMPL client
AMPL Installation:
To use Kestrel with AMPL, you need to have the AMPL interactive
environment installed on your local computer. If you don't currently
have the AMPL environment installed, you can download a test version
that accepts problems up to 300 variables and 300 constraints; see the
AMPL web page for
instructions.
Kestrel Installation:
- Windows:
- Download kestrel.zip by submitting form above.
- Unzip kestrel.zip into same directory as AMPL executable. This directory should now have the following files, in addition to ampl.exe and other AMPL files:
- README
- kestrel.exe
- w9xpopen.exe
- kestrelkill
- kestrelret
- kestrelsub
- MSVCR71.dll
- library.zip
- Important - Do not unzip the library.zip file, it needs to remain as it is.
-
Unix: (requires python to be installed)
- Download kestrel.tar.gz from form above.
- Unzip kestrel.tar.gz into a directory in the path (we recommend the same directory as the ampl binary)
Using Kestrel from within the AMPL Environment:
- Design your model as you normally would. When choosing options,
everything should remain as per usual with the following exceptions.
- Choose
option solver kestrel; instead of the usual solver name.
- Choose the solver you want with
option kestrel_options
'solver=<solverName>';
- If you do not know what solvers are available via Kestrel, submitting a job (see below) with a nonexistent solver will return a list of enabled solvers.
- When your kestrel_options are set, submit the
job to the NEOS Server by typing
solve;.
- If you are somehow disconnected from the Kestrel server during your
job execution, you can specify
option kestrel_options
'job=<jobNumber> password=<password>';
and
ask kestrel to
solve;
If your job is still in progress, your
AMPL session will resume waiting. Otherwise, your results will be
retrieved. Jobs are removed from the NEOS Server after some length of
time (usually two days), so you will not be able to retrieve your job
this way after that time. To resume normal kestrel solver operation type
option kestrel_options 'solver=<solverName>';
Guide to using the Kestrel GAMS client
Installation:
- Copy the zip file to the directory on your system
where GAMS is installed.
- Run
gamsinst to install the
solver.
Using Kestrel with GAMS:
- Create an options file called
kestrel.opt.
- In that file, specify the solver on the NEOS Server that you want
to use with
kestrel_solver <solverName>
The options
file should also contain any options specific to your chosen solver.
- If you do not know what solvers are available via Kestrel, submitting a job (see below) with a nonexistent solver set will return a list of enabled solvers.
- When you run your GAMS job on the command line, set your solver to
kestrel and set optfile=1. The Kestrel solver
accepts all model types.
- If you are somehow disconnected from the Kestrel server,
you can retrieve the results for your already submitted job by
setting the option
kestrel_job <jobnum>
kestrel_password <password>
when running the job on the
command line. If your job has already finished on the NEOS Server,
the
results will be returned to you immediately; otherwise, the call
will not return until those results are retrieved.
DOE disclaimer
DOE Web privacy policy