求助lingo大佬,循环语句这里一直出现错误代码11 50
model:sets:cities/1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19/;roads(cities,citie...
model: sets: cities/1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19/; roads(cities,cities)/1 2,1 3,1 4,1 5,1 6,1 8,1 13,1 17,2 5,2 6,3 7,3 13,4 8,5 9,6 9,6 10,6 11,7 12,8 9,8 14,9 19,10 19,11 10,11 18,12 11,12 16,12 18,13 7,13 15,14 19,15 16,16 18,17 19,18 17,18 19/:d; transportation/1,2,3/:w,c,g;link(roads,transportation):x; endsets data: d=8476.42,8406,8787,8733,8500,8889,8532,8870,259.82,100.47,249.69,289,393,89.38,242.84,207.99,201.27,90.43,126.12,94.88,97.76,86.54,85.43,141.63,103.23,62.6,93.33,131.99,95.09,71.12,147.8,50.99,193,178.06,73.16; w=4.88,4.88,0.1539;c=30,0.02,0.04;q=1000;g=48,30,19.13; enddata [OBJ]min=@sum(link(i,j,k):d(i,j)*q*c(k)*x(i,j,k))+@sum(link(i,j,k):d(i,j)*q*g(k)*w(k)*x(i,j,k));@for x(i,j,1)+x(i,j,2)+x(i,j,3)<=1@for @bin((link(i,j,k):x(i,j,k));@for x(8 9,3)=x(12 11,3)=x(12 16,3)=x(12 18,3)=x(15 16,3)=x(18 16,3)=0@for i=1 2,1 3,1 4,1 5,1 6,1 8,1 13,1 17;x(i,j,k)=0end
展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询