suffix02.gms : Test CLP suffixAlgebraVars

Description

Test expected behavior of CLP suffixAlgebraVars.

Contributor: Lutz Westermann, October 2022


Small Model of Type : GAMS


Category : GAMS Test library


Main file : suffix02.gms

$title 'Test CLP suffixAlgebraVars' (SUFFIX02,SEQ=918)

$onText
Test expected behavior of CLP suffixAlgebraVars.

Contributor: Lutz Westermann, October 2022
$offText


$onEcho > test.gms
Variable x / l 0 /, z / l 0 /;
Equation e;

e.. z =e= sqr(1-x.l);

Model m /e/;
solve m min z use nlp;
$offEcho

* By default, this should be fine
$call.checkErrorLevel gams test.gms lo=%gams.lo%

* Now, disallow the use of variable attributes in model algebra
$call gams test.gms lo=%gams.lo% suffixAlgebraVars=off