求教各位大侠一个lingo运算程序问题
小弟以前从未接触过lingo,最近写论文要用lingo解决dea模型运算问题,好不容易找到一个程序,本来想数据换换就出结果,可是把程序输入lingo后,却说有语法错误,小...
小弟以前从未接触过lingo,最近写论文要用lingo解决dea模型运算问题,好不容易找到一个程序,本来想数据换换就出结果,可是把程序输入lingo后,却说有语法错误,小弟对此一窍不通呀,不晓得哪里出了问题,跪拜各位大侠给以帮助,程序如下:
model:
sets:
dmu/1,2,3,4,5,6,7,8,9,10/:score;
factor/x1 x2 y1 y2/;
dxf(dum,factor):f;
endsets
data:
ninputs=2;
f= 210 381.5 710.2 240.23
210.2 388.7 797.7 266.88
242.3 393.1 888.4 298.79
278.9 396.1 992.8 333.73
321.1 397.6 1150 381.22
384.4 400.5 1316.1 435.64
478.3 413.31 1518.2 494.41
739.4 438.96 1780.4 632.35
1025.4 458.81 2270.1 747.5
1456.6 471.03 2695.8 865.9;
enddata
sets: dxfxd(dmu,factor):w;
endsets
max=@sum(dum:score);
@for(dum(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(dum(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(.0001,x,100000));
end
小弟邮箱chwei_07@126.com 再次感谢 展开
model:
sets:
dmu/1,2,3,4,5,6,7,8,9,10/:score;
factor/x1 x2 y1 y2/;
dxf(dum,factor):f;
endsets
data:
ninputs=2;
f= 210 381.5 710.2 240.23
210.2 388.7 797.7 266.88
242.3 393.1 888.4 298.79
278.9 396.1 992.8 333.73
321.1 397.6 1150 381.22
384.4 400.5 1316.1 435.64
478.3 413.31 1518.2 494.41
739.4 438.96 1780.4 632.35
1025.4 458.81 2270.1 747.5
1456.6 471.03 2695.8 865.9;
enddata
sets: dxfxd(dmu,factor):w;
endsets
max=@sum(dum:score);
@for(dum(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(dum(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(.0001,x,100000));
end
小弟邮箱chwei_07@126.com 再次感谢 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询