fnsigmo.gms : Test correctness of sigmoid intrinsic

Description


Small Model of Type : GAMS


Category : GAMS Test library


Main file : fnsigmo.gms   includes :   fnset_x.inc [htmlfntest_x.inc [html]

$title 'Test correctness of sigmoid intrinsic' (FNSIGMO,SEQ=192)

$include fnset_x.inc

$gdxIn fnsigmo
$load aeps0 aeps1 aeps2 reps relToInput T data
$gdxIn

loop {T,
  data(T,  'f')    = sigmoid.value (data(T,'x'));
  data(T, 'fx')    = sigmoid.grad  (data(T,'x'));
  data(T,'fxx')    = sigmoid.hess  (data(T,'x'));
  data(T, 'rc')    = mathlastrc;
  data(T, 'ec')    = mathlastec;
};

$include fntest_x.inc