MODEL:
SETS:
venders1/v1,v2/:c1,x1;
goods1/g1,g2/:m1,o1;
vg1(venders1,goods1):z1,g1,b1,p1;
ENDSETS
DATA:
m1= 3800,3000;
c1= 1200 2000;
g1= 2 1
1.8 0.8;
b1= 3000 3500
2500 4000;
p1= 3 2.2
3.2 2.1;
o1= 500,300;
ENDDATA
min=@sum(vg1(i,j)1(i,j)*z1(i,j))+@sum(venders1:x1*c1)+@sum(vg1(i,j):g1(i,j)*z1(i,j));
@for(vg1(i,j):z1(i,j)<=b1(i,j));
@for(venders1(i):x1(i)=@if(@sum(goods1(j):z1(i,j)^2)#gt#0,1,0));
@for(goods1(j):m1(j)+1.28*o1(j)<=@sum(venders1(i):z1(i,j)));
end
提示无可行解 什么原因 |