fncos.gms : Test correctness of cos intrinsic

Description

define some sets, etc.


Small Model of Type : GAMS


Category : GAMS Test library


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

$title 'Test correctness of cos intrinsic' (FNCOS,SEQ=156)

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

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

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

$include fntest_x.inc