lingo里missing right parenthesis

model:sets:column/1,2/:w;row/1..24/:y,sv;dat/1..6/;link1(row,column):t;link2(row,dat)... model:
sets:
column/1,2/:w;
row/1..24/:y,sv;
dat/1..6/;
link1(row,column):t;
link2(row,dat):r;
endsets
data:
sita=0.01;lamda=0.8;
r=
9.84 9.86 9.88 5.17 5.18 5.19
13.3113.3313.353.723.733.74
14.6314.6614.693.873.893.91
9.329.339.347.087.17.12
12.7712.812.835.475.495.51
10.6410.6610.684.064.094.12
10.6510.6610.674.434.454.47
13.3113.3313.353.63.633.66
13.3213.3313.345.685.75.72
11.971212.036.176.196.21
14.6414.6614.6844.014.02
13.3113.3313.353.994.014.03
10.6210.6610.72.062.072.08
12.5112.5312.554.444.454.46
13.313.3313.363.043.063.08
9.329.339.343.93.943.98
10.6410.6610.684.434.454.47
10.6410.6610.684.894.924.95
9.319.339.353.663.683.7
10.6410.6610.683.23.213.22
10.3710.410.433.923.943.96
9.319.339.354.94.924.94
11.1911.211.213.43.423.44
9.319.339.353.623.633.64
;
y=1 1 1 1 1 1 1 1 1 1 1 1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1;
enddata
min=0.5*(w(1)^2+w(2)^2)+@sum(row(i):sv(i));
@for(row(i):y(i)*(@sum(column(j):w(j)*t(i,j))+b)>=1-sv(i));
@for(row(i):sv(i)>=0);
@for(link1(i,j):r(i,3*j-2)<=t(i,j);t(i,j)<=r(i,3*j));
@for(link1(i,j):
@if(r(i,3*j-1)#ge#t(i,j),
2*(t(i,j)-r(i,3*j-2))+sita*@smin(t(i,j)-r(i,3*j-2),r(i,3*j-1)-t(i,j))>=2*lamda*(r(i,3*j-1)-r(i,3*j-2))),
2*(r(i,3*j)-t(i,j))+sita*@smin(r(i,3*j)-t(i,j),t(i,j)-r(i,3*j-1))>=2*lamda*(r(i,3*j)-r(i,3*j-1))
);
end

运行提示:
第46行missing right parenthesis
为什么啊?请大牛们帮忙啦!!
展开
 我来答
wswhk
2013-03-03 · TA获得超过7.1万个赞
知道顶级答主
回答量:4.6万
采纳率:68%
帮助的人:7.4亿
展开全部
r的数据个数不对
@if这一句语法完全不对 @if的格式是@if(条件,成立时的值,不成立时的值) 结果是一个数而不是一个语句 你这里完全不符合语法
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

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

类别

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

说明

0/200

提交
取消

辅 助

模 式