用LINGO错误代码29,不知道错在哪里 5
sets:
dmu/1,2,3,4,5,6,7,8,9,10/:score;
factor/x1 x2 y1 y2/;
dxf(dmu,factor):f;
endsets
data:
ninputs=2;
f=562.87 1699.06 1491.99 596.26
655.81 1690.00 1603.16 643.58
801.82 1680.38 1765.68 699.33
995.66 1654,51 1990.01 763.05
1269.35 1634.77 2272.82 835.53
1621.92 1623.85 2692.81 955.00
2006.32 1611.45 3070.49 1215.76
2451.84 1605.45 3452.14 1403.58
3161.51 1620.86 4122.51 1661.23
4045.25 1646.44 5096.66 2064.09;
enddata
sets:
dxfxd(dmu,factor):w;
endsets
max=@sum(dmu:score);
@for(dmu(i):score(i)=@sum(factor(j)|j#gt#ninputs:f(i,j)*w(i,j));
@sum(factor(j)|j#le#ninputs:f(i,j)*w(i,j))=1;
@for(dmu(k):@sum(factor(j)|j#gt#ninputs:f(k,j)*w(i,j))<@sum(factor(j)|j#le#ninputs:f(k,j)*w(i,j)));
@for(dxfxd(i,j):@bnd(.00001,w,100000));
end 展开
model:
sets:
dmu/1,2,3,4,5,6,7,8,9,10/:score;
factor/x1 x2 y1 y2/;
dxf(dmu,factor):f,w;
endsets
data:
ninputs=2;
f=562.87 1699.06 1491.99 596.26
655.81 1690.00 1603.16 643.58
801.82 1680.38 1765.68 699.33
995.66 1654.51 1990.01 763.05
1269.35 1634.77 2272.82 835.53
1621.92 1623.85 2692.81 955.00
2006.32 1611.45 3070.49 1215.76
2451.84 1605.45 3452.14 1403.58
3161.51 1620.86 4122.51 1661.23
4045.25 1646.44 5096.66 2064.09;
enddata
max=@sum(dmu:score);
@for(dmu(i):score(i)=@sum(factor(j)|j#gt#ninputs:f(i,j)*w(i,j)));
@sum(factor(j)|j#le#ninputs:f(i,j)*w(i,j))=1;
@for(dmu(k):@sum(factor(j)|j#gt#ninputs:f(k,j)*w(i,j))<@sum(factor(j)|j#le#ninputs:f(k,j)*w(i,j)));
@for(dxf:@bnd(.00001,w,100000));
只能说没有语法问题了
需要更多帮助的话
需要给原题