i know how i can to min / max a function with proc optmodel (example here) proc optmodel;
var x,y;
number z=-3;
number res=8;
min f1 = y+x**3 + z*y**3;
con c1: x*y = res;
solve with nlp;
quit;
but i want to minimize and maximize in the same proc optmodel. I know i can do two proc optmodel like this:
proc optmodel;
var x,y;
number z=-3;
number res=8;
min f1 = y+x**3 + z*y**3;
con c1: x*y = res;
solve with nlp;
quit;
proc optmodel;
var x,y;
number z=-3;
number res=8;
max f1 = y+x**3 + z*y**3;
con c1: x*y = res;
solve with nlp;
quit;
is it possible? thanks
... View more