funcs1.gms : Test functions in NLP and DNLP

Description


Small Model of Type : GAMS


Category : GAMS Test library


Main file : funcs1.gms

$title Test functions in NLP and DNLP (FUNCS1,SEQ=18)
variables z, x;
equation obj;

obj.. z =e= abs(x) + exp(x) + abs(exp(max(x,1))) ;

model m / all /;

solve m min z using dnlp;
$if NOT errorfree $abort should be OK
solve m min z using nlp;
$if errorfree $abort should have an error
$clearError
$terminate