Kestrel is an interface to the NEOS Server that allows remote access to the solvers from a user's locally installed AMPL or GAMS modeling environment. It provides an easy mechanism for users to submit jobs to the NEOS solvers and receive the results within a local AMPL or GAMS modeling session.
To use Kestrel with AMPL, you need to have the AMPL interactive environment installed on your local computer. If you do not have the AMPL environment installed, you can download a test version that accepts problems with up to 300 variables and 300 constraints; see the AMPL website for instructions.
Information on the Kestrel client for AMPL and binary downloads of the client can be found at Run AMPL on NEOS. The code for the client is hosted on github: GoKestrel.
option solver kestrel;
as the solver.
option kestrel_options 'solver=cplex';
option neos_server 'neos-server.org:3333';
option neos_username 'your_username'
option neos_user_password 'your_neos_password'
option cplex_options 'primal mipgap=1e-5 threads=1'
.
solve;
.
option kestrel_options
'job=<jobNumber> password=<password>';
solve;
<jobNumber>
and <password>
.
Note: On Windows, you will get an error message that the client requires python24.dll to run. Please ignore this message, since the client can execute without this library.
To use Kestrel with GAMS, you need to have GAMS 24.8 or newer installed on your local computer. The Kestrel GAMS client is included in the standard GAMS distribution for all supported architectures. For Windows, the necessary Python modules have been packaged with the GAMS/Kestrel solver. For non-Windows, you only need Python version 2.5 or above to be installed on your machine. Starting with GAMS 32, the Kestrel GAMS client uses the Python installation that comes with GAMS so no additional Python installation is required on any platform.
kestrel.opt
.
kestrel_solver <solverName> neos_server <hostname>[:port>]Example:
kestrel_solver conopt neos_server neos-server.org:3333
rtmaxj=1e12;
neos_username 'your_username' neos_user_password 'your_neos_password'
option solver=kestrel
and set optfile=1
before the solve statement. The Kestrel solver accepts all model
types.
$onEcho > kestrel.opt kestrel_solver conopt rtmaxj=1e12 $offEcho option solver=kestrel; mymodel.optFile=1; solve mymodel using nlp min obj;
<jobNumber>
and <password>
.