作业帮 > 综合 > 作业

lingo运行出错,Error Code 15

来源:学生作业帮 编辑:作业帮 分类:综合作业 时间:2024/11/08 21:29:16
lingo运行出错,Error Code 15
model:
sets:
points/1..24/:d;
pp/1..23/:c;
endsets
max=@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(points:d(1)#gt#1);
@for(points(i):d(i)#gt#(d(i+12)+2));
end
Error Code 15:No relational operator found
model:
sets:
points/1..24/:d;
pp/1..23/:c;
endsets
max=@sum(points(i)|i#lt#24:@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#lt#24:d(j)1;
@for(points(i)|i#le#12:d(i)>d(i+12)+2);
end
明显写的条件矛盾 没有可行解 自己改