decode a SIF problem
sifdecode(Pathin,Pathout [,opts])
string, path of the SIF file
string, path of the directory where the problem files will be created
vector [algo print diff ad prec], default value is
[3 0 0 2 1]
integer, specify the targeted solver.
1 : for the SBMIN LANCELOT solver.
2 : for the AUGLD LANCELOT solver.
3 : generic solver.
integer, specify whether the problem should be described( negative value: DEBUG,zero:NO,positive value:YES)
integer, specify whether the derivatives are supplied or are to be computed using automatic differentiation
0 : the derivatives are provided
1 : derivatives are generated by forward automatic differentiation.
2 : derivatives are generated by backward automatic differentiation.
Two later cases requires the HSL_AD01 (ad=1) or HSL_AD02 (ad=2) libraries to be able to build and execute the generated code .
integer, specify the HSL_AD library to be used:
0 : no HSL_AD library used
1 : generated code uses HSL_AD01.
2 : generated code uses HSL_AD02.
integer, Specify the precision of the output files
0 stands for single precision (cannot be used if codes are intended to be used with Scilab).
1 stands for double precision (required for Scilab).
Given a SIF (Standard Input Format) file
sifdecode(Pathin,Pathout [,opts])
generates
associated Fortran routines RANGE.f
,
EXTER.f
,ELFUN.f
,
GROUP.f
and if automatic differentiation is required
ELFUND.f
, GROUPD.f
,EXTERA.f
An associated data file named OUTSDIF.d
and an
Output messages file OUTMESS
are also generated. All
these files are created in the directory whose path is given in
Pathout
The sifdecode
function is based on the Sifdec
code (sifdec). More precisely it
results of an interface of SDLANC Fortran procedure.
Serge Steer, INRIA