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
为什么啊?请大牛们帮忙啦!! 展开
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
为什么啊?请大牛们帮忙啦!! 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询