*--------------------------------------------------------------* * Univariate Polynomial - Test Problem 5 * *--------------------------------------------------------------* File res / results / ; Put res ; Sets i /1*2/; Variables x(i) f; x.lo('1') = -5; x.up('2') = 5; Equations Obj objective function; Obj .. f =e= 2*power(x('1'),2) - 1.05*power(x('1'),4) + 1/6*power(x('1'),6) - x('1')*x('2') + power(x('2'),2); Model problem /Obj/; x.l('1') = 0; x.l('2') = 0; solve problem using nlp minimizing f; PUT "Min f",f.l:16:10//; Loop(i, PUT "x ",x.l(i):16:10//);