|
home
:: |
|
personal
:: |
|
portfolio
:: |
|
classes/aulas
:: |
|
links
:: |
|
publications
:: |
|
talks
:: |
|
technical reports
:: |
|
software
:: |
|
projects/grants
:: |
|
|
::
B and C Splines library for AMPL
::
Making the library
-
Get the
solvers.tar file from the internet (AMPL
interface routines).
-
Get the Splines
source file.
-
Make the splines.dll library by typing
gcc -o splines.dll -shared splines.c (Linux)
or
link -dll -def:splines.def -out:splines.dll @splines.lbc (MSDOS,
Visual C/C++).
The splines.c includes a header file from the solvers.tar AMPL
package, so one must provide it (change to the directory where the
solvers.tar was extracted or use the -I flag in the gcc
command).
::
Using the library
-
Get or make the
library splines.dll.
-
Set the environment AMPLFUNC variable to the library path (export
AMPLFUNC=splines.dll in the bash shell). AMPL reads a default library
named funcadd.dll or accepts a flag (-i) with a library
filename. An alternative is to rename the file splines.dll to
funcadd.dll or to call AMPL with the -i splines.dll flag.
-
Use the Splines function as described in this SIPAMPL manual.
::
Go to Download Page
|
|