Variable x, z;
x.lo = -10;
x.up = 10;
x.l = 1;
Equation obj;
obj.. z =e= x + x*x/2;

Model m /all/;

option nlp = ipopt;

Solve m using NLP min z;
