用MATLAB写代码求解方向性距离函数,运行时报错,求大神帮忙指导一下,万分感谢!!!
以下是我的代码
lb=[zeros(11,1)'];
f=-[zeros(11,1);1];
for i=1:11
A=[-data0(:,1)' data0(i,1);data0(:,2)' 0;data0(:,3)' 0;data0(:,4)' 0;data0(:,5)' 0;data0(:,6)' 0];
b=[-data0(i,1);data0(i,2);data0(i,3);data0(i,4);data0(i,5);data0(i,6)];
Aeq=[data0(:,7)' data0(i,7)];
beq=[data0(i,7)];
[cx00(:,i),cfval00(i),exitflag]=linprog(f,A,b,Aeq,beq,lb);
end
a=cfval00';
data0为11*7的矩阵数据,有11个决策单元,第一列数据为期望产出,第七列为非期望产出,中间列为投入。运行时提示如下:
警告: Length of lower bounds is < length(x); filling in missing lower bounds with -Inf.
> In checkbounds at 33
In linprog at 238
Optimization terminated.
警告: Length of lower bounds is < length(x); filling in missing lower bounds with -Inf.
> In checkbounds at 33
In linprog at 238
Optimization terminated.