lingo运行出错model:sets:points/1..24/:d;endsetsmax=@sum(points(i):@log(1+(d(i+1)-d(i)+(d(i)^2+d(i+1)^2-2*d(i)*d(i+1)*@cos(3.1415926/6))^(1/2))/(2*d(i)));@for(points(j):d(j)#lt#d(j+1));@for(d(1)#gt#1);@for(points(i):d(i)#gt#d(i+12)+2);end运行有
来源:学生作业帮助网 编辑:六六作业网 时间:2024/11/16 12:23:19
lingo运行出错model:sets:points/1..24/:d;endsetsmax=@sum(points(i):@log(1+(d(i+1)-d(i)+(d(i)^2+d(i+1)^2-2*d(i)*d(i+1)*@cos(3.1415926/6))^(1/2))/(2*d(i)));@for(points(j):d(j)#lt#d(j+1));@for(d(1)#gt#1);@for(points(i):d(i)#gt#d(i+12)+2);end运行有
lingo运行出错
model:sets:points/1..24/:d;endsetsmax=@sum(points(i):@log(1+(d(i+1)-d(i)+(d(i)^2+d(i+1)^2-2*d(i)*d(i+1)*@cos(3.1415926/6))^(1/2))/(2*d(i)));@for(points(j):d(j)#lt#d(j+1));@for(d(1)#gt#1);@for(points(i):d(i)#gt#d(i+12)+2);end运行有错,是什么原因?求指教,急!
model:
sets:
points/1..24/:d;
endsets
max=@sum(points(i)|i#le#23:@log(1+(d(i+1)-d(i)+(d(i)^2+d(i+1)^2-2*d(i)*d(i+1)*@cos(3.1415926/6))^(1/2))/(2*d(i))));
@for(points(j)|j#le#23:d(j)1);
@for(points(i)|i#le#12:(d(i)+2)20);
end
我修改后的,这里错误怎么解决,谢谢!
lingo运行出错model:sets:points/1..24/:d;endsetsmax=@sum(points(i):@log(1+(d(i+1)-d(i)+(d(i)^2+d(i+1)^2-2*d(i)*d(i+1)*@cos(3.1415926/6))^(1/2))/(2*d(i)));@for(points(j):d(j)#lt#d(j+1));@for(d(1)#gt#1);@for(points(i):d(i)#gt#d(i+12)+2);end运行有
挤在一起不错才怪.比如前面endsetsmax
很显然endesets一行,回车之后再max,你连一块必须错嘛.