fnentro.gms : Test correctness of entropy intrinsic

Description


Small Model of Type : GAMS


Category : GAMS Test library


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

$title 'Test correctness of entropy intrinsic' (FNENTRO,SEQ=190)

$include fnset_x.inc

$gdxIn fnentro
$load aeps reps relToInput T data
$gdxIn

reps1 = 8e-15;

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

$include fntest_x.inc