fnncpvusin2.gms : Test correctness of NCPVUsin intrinsic

Description

define some sets, etc.


Small Model of Type : GAMS


Category : GAMS Test library


Main file : fnncpvusin2.gms   includes :   fnset_xy.inc [htmlfntest_xy.inc [html]

$title 'Test correctness of ncpVUSin intrinsic' (FNNCPVUSIN2,SEQ=818)

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

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

loop {T,
  data(T,'fyx_') = data(T,'fxy_');
  data(T,  'f')    = ncpVUSin.value   (data(T,'x'),data(T,'y'));
  data(T, 'fx')    = ncpVUSin.grad(1:  data(T,'x'),data(T,'y'));
  data(T, 'fy')    = ncpVUSin.grad(2:  data(T,'x'),data(T,'y'));
  data(T,'fxx')    = ncpVUSin.hess(1:1:data(T,'x'),data(T,'y'));
  data(T,'fxy')    = ncpVUSin.hess(1:2:data(T,'x'),data(T,'y'));
  data(T,'fyx')    = ncpVUSin.hess(2:1:data(T,'x'),data(T,'y'));
  data(T,'fyy')    = ncpVUSin.hess(2:2:data(T,'x'),data(T,'y'));
  data(T, 'rc')    = mathlastrc;
  data(T, 'ec')    = mathlastec;
};

$include fntest_xy.inc