早教吧 育儿知识 作业答案 考试题库 百科 知识分享

lingo里missingrightparenthesismodel:sets:column/1,2/:w;row/1..24/:y,sv;dat/1..6/;link1(row,column):t;link2(row,dat):r;endsetsdata:sita=0.01;lamda=0.8;r=9.849.869.885.175.185.1913.3113.3313.353.723.733.7414.6314.6614.693.873.893.919.329.339.34

题目详情
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):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)=2*lamda*(r(i,3*j)-r(i,3*j-1))
);
end
运行提示:
第46行missing right parenthesis
▼优质解答
答案和解析
r的数据个数不对
@if这一句语法完全不对 @if的格式是@if(条件,成立时的值,不成立时的值) 结果是一个数而不是一个语句 你这里完全不符合语法