lingo运行出错,Error Code 15 急!1
发布网友
发布时间:2023-09-15 02:39
我来回答
共1个回答
热心网友
时间:2023-09-15 02:40
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)<d(j+1));
d(1)>1;
@for(points(i)|i#le#12:d(i)>d(i+12)+2);
end
明显写的条件矛盾 没有可行解 自己改