lingo运行问题model:sets:points/1..24/:d;endsetsmax=@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);!该约束有问题
来源:学生作业帮助网 编辑:作业帮 时间:2024/11/18 04:43:09
lingo运行问题model:sets:points/1..24/:d;endsetsmax=@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);!该约束有问题
lingo运行问题
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
Error Code 11:Invalid Input.A syntex error has occurred
lingo运行问题model:sets:points/1..24/:d;endsetsmax=@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);!该约束有问题
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