Ismael Vaz

 

 



:: Departamento de Produção e Sistemas ::
:: Escola de Engenharia ::
:: Campus de Gualtar ::
4710-057 Braga - Portugal

 

Ismael
:: aivaz at dps.uminho.pt ::

   
         
   
home ::
personal ::
portfolio ::
classes/aulas ::
links ::
publications ::
talks ::
technical reports ::
software ::
projects/grants ::
 

 

:: B and C Splines library for AMPL

:: Making the library

  1. Get the solvers.tar file from the internet (AMPL interface routines).

  2. Get the Splines source file.

  3. 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

  1. Get or make the library splines.dll.

  2. 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.

  3. Use the Splines function as described in this SIPAMPL manual.

 :: Go to Download Page

 

   
   

webdesign: Isabel Espírito Santo