model:
SETS:
Q/p1,p2,p3,p4,p5,p6,p7/:u,pp,x,r,a,b;
ENDSETS
DATA:
a=10,4,3,4,2,2,0;
b=233,54,17,20,10,10,0;
ENDDATA
max=@sum(Q(I):pp(I)*u(I));
@FOR(Q(i)|i#LE#3:x(i)=(1-(pp(4)*x(4)+pp(5)*x(5)+pp(6)*x(6)+pp(7)*x(7)))*r(i)/pp(i));
@FOR(Q(i)|4#LE#7:r(i)=0);
@FOR(Q(i):u(i)=1-1/exp^(x(i)/(6*10^5)));
@SUM(Q(i)|i#LE#3:r)=1;
@BND(0.7,r(1),0.8);
@BND(600000,x(1),5000000);
@for(Q(i)|i#LE#6: @BND(a(i),x(i)/x(i+1),b(i)));
@for(Q(i)|i#LE#6: pp(i)<pp(i+1));
@BND(5,m,7);
@BND(29,n,60);
@gin(m);
@gin(n);
m>0;
n>0;
@for(Q(i):r>0);
@for(Q(i):x>0);
end
总是提示 conflicting bounds on variable