LINGO语句中出现@in和@index是什么意思??
如以下的LINGO程序model:sets:point/s,0,1,2,3,4,5,6,7,t/;route(point,point)/s0,s1,02,13,23,24...
如以下的LINGO程序model:
sets:
point/s,0,1,2,3,4,5,6,7,t/;
route(point,point)/s 0,s 1,0 2,1 3,2 3,2 4,2 5,3 4,3 7,4 2,4 5,4 6,5 t,6 t,7 t/:x,c;
endsets
data:
c=12 20 12 20 6 3 6 7 9 2 5 8 11 12 5;
enddata
max=z;
z=@sum(point(j)|@in(route,@index(point,s),j):x(1,j));
@for(point(i)|i#ne#@index(point,s) #and# i#ne#@index(point,t):@sum(point(j)|@in(route,i,j):x(i,j))=@sum(point(j)|@in(route,j,i):x(j,i)));
@for(route:x<=c);
end出现了@in和@index,是什么意思?? 展开
sets:
point/s,0,1,2,3,4,5,6,7,t/;
route(point,point)/s 0,s 1,0 2,1 3,2 3,2 4,2 5,3 4,3 7,4 2,4 5,4 6,5 t,6 t,7 t/:x,c;
endsets
data:
c=12 20 12 20 6 3 6 7 9 2 5 8 11 12 5;
enddata
max=z;
z=@sum(point(j)|@in(route,@index(point,s),j):x(1,j));
@for(point(i)|i#ne#@index(point,s) #and# i#ne#@index(point,t):@sum(point(j)|@in(route,i,j):x(i,j))=@sum(point(j)|@in(route,j,i):x(j,i)));
@for(route:x<=c);
end出现了@in和@index,是什么意思?? 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询