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
展开
 我来答
伍拾步
2011-11-15 · TA获得超过8199个赞
知道大有可为答主
回答量:1852
采纳率:100%
帮助的人:1955万
展开全部
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
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式