lingo 1017错误,求高手解答啊:
model:sets:xx/1..101/:x,q,gp,ingp,wb,inwb,sx,qq;mab/1..4/:m,a,b;endsetsdata:x,q=@file...
model:
sets:
xx/1..101/:x,q,gp,ingp,wb,inwb,sx,qq;
mab/1..4/:m,a,b;
endsets
data:
x,q=@file('D:/datadata.xls');
enddata
min=@sum(xx(i):(1-qq(i)/q(i))^2);
@for(xx(i):gp(i)=@exp(@exp(-a(1)/b(1))-@exp((x(i)-a(1))/b(1))));
@for(xx(i):ingp(i)=(1-@exp(-@exp(-(x(i)-a(2))/b(2))))/(1-@exp(-@exp(a(2)/b(2)))));
@for(xx(i):wb(i)=@exp(-((x(i)/a(3))^(a(3)/b(3)))));
@for(xx(i):inwb(i)=1-@exp(-((a(4)/x(i))^(a(4)/b(4)))));
@for(xx(i):sx(i)=m(1)*gp(i)+m(2)*ingp(i)+m(3)*wb(i)+m(4)*inwb(i));
@for(xx(i)|i#eq#1:qq(i)=1-s(i));
@for(xx(i)|i#gt#1:qq(i)=1-sx(i+1)/s(i));
@sum(mab:m)=1;
end 展开
sets:
xx/1..101/:x,q,gp,ingp,wb,inwb,sx,qq;
mab/1..4/:m,a,b;
endsets
data:
x,q=@file('D:/datadata.xls');
enddata
min=@sum(xx(i):(1-qq(i)/q(i))^2);
@for(xx(i):gp(i)=@exp(@exp(-a(1)/b(1))-@exp((x(i)-a(1))/b(1))));
@for(xx(i):ingp(i)=(1-@exp(-@exp(-(x(i)-a(2))/b(2))))/(1-@exp(-@exp(a(2)/b(2)))));
@for(xx(i):wb(i)=@exp(-((x(i)/a(3))^(a(3)/b(3)))));
@for(xx(i):inwb(i)=1-@exp(-((a(4)/x(i))^(a(4)/b(4)))));
@for(xx(i):sx(i)=m(1)*gp(i)+m(2)*ingp(i)+m(3)*wb(i)+m(4)*inwb(i));
@for(xx(i)|i#eq#1:qq(i)=1-s(i));
@for(xx(i)|i#gt#1:qq(i)=1-sx(i+1)/s(i));
@sum(mab:m)=1;
end 展开
1个回答
展开全部
1017错误是因为你用的lingo9.0破解版有问题,建议换个版本。。。。
model:
sets:
xx/1..101/:x,q,gp,ingp,wb,inwb,sx,qq;
mab/1..4/:m,a,b;
endsets
data:
x,q=@file('D:/datadata.xls');
enddata
min=@sum(xx(i):(1-qq(i)/q(i))^2);
@for(xx(i):gp(i)=@exp(@exp(-a(1)/b(1))-@exp((x(i)-a(1))/b(1))));
@for(xx(i):ingp(i)=(1-@exp(-@exp(-(x(i)-a(2))/b(2))))/(1-@exp(-@exp(a(2)/b(2)))));
@for(xx(i):wb(i)=@exp(-((x(i)/a(3))^(a(3)/b(3)))));
@for(xx(i):inwb(i)=1-@exp(-((a(4)/x(i))^(a(4)/b(4)))));
@for(xx(i):sx(i)=m(1)*gp(i)+m(2)*ingp(i)+m(3)*wb(i)+m(4)*inwb(i));
@for(xx(i)|i#eq#1:qq(i)=1-sx(i));!s(i)应为sx(i);
@for(xx(i)|i#gt#1:qq(i)=1-sx(i)/sx(i-1));!这句也有和上一句同样的问题,另外这句似乎写的不对,我改了,你看看是不是你想要的;
@sum(mab:m)=1;
end
model:
sets:
xx/1..101/:x,q,gp,ingp,wb,inwb,sx,qq;
mab/1..4/:m,a,b;
endsets
data:
x,q=@file('D:/datadata.xls');
enddata
min=@sum(xx(i):(1-qq(i)/q(i))^2);
@for(xx(i):gp(i)=@exp(@exp(-a(1)/b(1))-@exp((x(i)-a(1))/b(1))));
@for(xx(i):ingp(i)=(1-@exp(-@exp(-(x(i)-a(2))/b(2))))/(1-@exp(-@exp(a(2)/b(2)))));
@for(xx(i):wb(i)=@exp(-((x(i)/a(3))^(a(3)/b(3)))));
@for(xx(i):inwb(i)=1-@exp(-((a(4)/x(i))^(a(4)/b(4)))));
@for(xx(i):sx(i)=m(1)*gp(i)+m(2)*ingp(i)+m(3)*wb(i)+m(4)*inwb(i));
@for(xx(i)|i#eq#1:qq(i)=1-sx(i));!s(i)应为sx(i);
@for(xx(i)|i#gt#1:qq(i)=1-sx(i)/sx(i-1));!这句也有和上一句同样的问题,另外这句似乎写的不对,我改了,你看看是不是你想要的;
@sum(mab:m)=1;
end
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询