早教吧作业答案频道 -->其他-->
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
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(条件,成立时的值,不成立时的值) 结果是一个数而不是一个语句 你这里完全不符合语法
@if这一句语法完全不对 @if的格式是@if(条件,成立时的值,不成立时的值) 结果是一个数而不是一个语句 你这里完全不符合语法
看了lingo里missingri...的网友还看了以下:
证明0.9999999……=1 (一)设a=0.99999……(①)则10a=9.999999…… 2020-05-13 …
已知a/9(a为大于0的自然数),当a=()时,a/9是他本身的分数单位;当a=()时,a/9是最 2020-05-14 …
Match the words in column A with the explanations 2020-05-14 …
Ⅰ Vocabulary and Structure (20%)Part A Find in Co 2020-05-14 …
若a,b为实数,b=√a^2-9+√9-a^2 / a-3 +5 ,则a^2+b^2= ( )若a 2020-05-16 …
立方根a与立方根b的和可不可以用分解因式表示出来?就是立方根a+立方根b可不可以写成分解因式的形式 2020-07-18 …
立方根a与立方根b的和可不可以用分解因式表示出来?就是立方根a+立方根b可不可以写成分解因式的形式 2020-07-31 …
如何求解带参数的四元三次方程组symsy1y2y3an(n是参数)9*(n-4)*y2*y3+9*y 2020-10-31 …
1.当a为何值时,分式a²+6a+9÷a²-9无意义?小明是这样解答的:因为a²+6a+9÷a²-9 2020-12-10 …
小明犯了个错误,事情是这样的:若1/2(a-3)^2+绝对值b-2绝对值=0,那么a^b+4b^a等 2020-12-31 …