|
我要求解的模型是这个:
程序如下:
model:
sets:
hx/1..6/:y;
xq/1,2/:w;
link(xq,hx):x,d;
endsets
data:
d=111.8 132.5 153.4 119.1 118.2 141.4
139.3 136.6 135.3 154.8 133.7 131;
w=0.00003 0.00005;
D;
enddata
[obj]min=D;
@for(xq:@sum(hx:w*d*x)<=D);
@sum(hx:y)=2;
@for(xq:@sum(hx:x)=1);
@for(link:x(i,j)<=y(j));
@for(hx:@bin(y));
@for(link:@bin(x));
end
取p值为2,运行出错,不知道是哪里的问题,高手帮忙看看吧 |
|