fnlog2.gms : Test correctness of log2 intrinsic

Description

define some sets, etc.


Small Model of Type : GAMS


Category : GAMS Test library


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

$title Test correctness of log2 intrinsic (FNLOG2,SEQ=153)

* define some sets, etc.
$include fnset_x.inc

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

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

$include fntest_x.inc