FAQ |
BOOK |
SOLVERS |
PLATFORMS |
VENDORS |
MEETINGS |
MORE! |
WHAT'S NEW
EXTENSIONS |
CHANGE LOG |
REPORTS |
NETLIB |
EXAMPLES |
CONTENTS |
HOME

Shared Libraries for
User-Defined Functions
Sometimes it is desirable to employ user-defined functions (usually
written in C, C++, or Fortran 77) within an AMPL session or in the
optimization problems that AMPL sends to solvers. On most systems
(including Windows 95 and Windows NT, but excluding MS-DOS), it is
convenient to provide user-defined functions by means of a shared
library (or dynamic-link library, or DLL).
Commercial versions of AMPL may offer facilities for getting
user-defined functions from shared libraries. To make these facilities
available, the AMPL vendor must link an
AMPL binary appropriately. Similarly, solvers must be appropriately
linked to import functions from shared libraries. The same shared
library can make user-defined functions available both to AMPL and to
solvers.
A new ampl/solvers/funclink
directory in netlib provides system-dependent examples and
makefiles for creating suitable shared libraries and linking them to
solvers. For a further introduction, see the README
file in the funclink directory.
Comments or questions?
Write to info@ampl.com
or use our comment form.
Return to the AMPL updates page.
Return to the AMPL home page.
LAST MODIFIED 21 JULY 1997 BY
4er.