The following changes to AMPL's solver interface routines are reflected
in the April 1997 revision of Hooking Your Solver to
AMPL.
New facilities for computing second derivatives
in nonlinear problems.
Facilities for addressing several problems independently.
Adjustments to the external name space: most names contributed
by the AMPL/solver interface library now end with
_ASL
(for AMPL/Solver Library).
New facilities for processing command-line arguments and
solver_options
environment variables, meant to unify behavior among solvers
and simplify writing solver interfaces.
Changes to the
#include
files:
jacdim.h
is gone, replaced for most purposes by
asl.h
or
getstub.h
(which includes
asl.h).
In the
stub.nl
readers, logic to recognize some of the "suffix" arrays that AMPL will
soon be able to write. Use of these arrays will be documented in
a revised version of this report.
Function
funcadd,
which one provides to make user-defined functions available,
now takes an argument, and the
addfunc
routine it calls has an additional argument.
To allow for dynamic linking of user-defined functions, the dummy
funcadd
routine in source file
funcadd0.c no longer appears in amplsolver.a; if desired, it must be linked explicitly.
Header file
asl.h
provides
#defines
that permit older solver interface routines to be used with only
a few changes. Often it suffices to change
"jacdim.h"
to
"asl.h"
and to add