Hello, I have an assignment where I have to optimize a sum of 44 functions, here is my code: proc optmodel;
var x{1..2};
con .49*x[2] -x[1]*x[2] -0.9 >= 0;
con .4 <=x[1];
con .4 <= x[2];
min f = put(sum {i in 1..44} ((2+i) - x[1]- (.49 -x[1])*exp(-x[2]*(8/i-8)))**2);
solve;
print x[1] x[2];
run; I keep getting this error:
... View more