Description
define some sets, etc.
Small Model of Type : GAMS
Category : GAMS Test library
Main file : fnsqr.gms includes : fnset_x.inc [html] fntest_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