fnsqr.gms : Test correctness of sqr intrinsic

Description

define some sets, etc.


Small Model of Type : GAMS


Category : GAMS Test library


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

$title test correctness of sqr intrinsic (FNSQR,SEQ=150)

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

$gdxin fnsqr
$load aeps reps relToInput T data
$gdxin

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

$include fntest_x.inc