各位,lingo代码错误显示属性下标越界
70号错误
model:
sets:
hcjh/1,2,3/:a,b;
hwjh/1,2,3,4/:w,v,m;
hchwjh(hcjh,hwjh):x;
endsets
data:
a=10,16,8;
b=6800,8700,5300;
w=18,15,23,12;
v=480,650,580,390;
m=3100,3800,3500,2850;
enddata
max=@sum(hchwjh(i,j):m(i)*x(i,j));
@for(hwjh(i):@sum(hcjh(j):x(i,j))<=w(i));
@for(hcjh(j):@sum(hwjh(i):x(i,j))<=a(j));
@for(hcjh(j):@sum(hwjh(i):x(i,j)*v(i))<=b(j));
8*@sum(hwjh(i):x(i,1))=5*@sum(hwjh(i):x(i,2));
5*@sum(hwjh(i):x(i,2))=10*@sum(hwjh(i):x(i,3));
8*@sum(hwjh(i):x(i,1))=10*@sum(hwjh(i):x(i,3));
end