加工顺序 最短路径程序求解(matlab或lingo)
2014-05-22
展开全部
model:
sets:
number/1..5/:;
link(number,number):a,x;
endsets
data:
a=0.993,0.99,0.981,0.999,0.983
0.963,0.989,0.953,0.968,0.941
0.9385,0.732,0.556,0.814,0.69
0.083,0.04,0.129,0.634,0.048,
0.618,0.443,0.512,1.292,3.03;
enddata
max=@sum(link:a*x);
@for(number(i):@sum(number(j):x(i,j))=1);
@for(number(i):@sum(number(j):x(j,i))=1);
@for(link:@bin(x));
end
sets:
number/1..5/:;
link(number,number):a,x;
endsets
data:
a=0.993,0.99,0.981,0.999,0.983
0.963,0.989,0.953,0.968,0.941
0.9385,0.732,0.556,0.814,0.69
0.083,0.04,0.129,0.634,0.048,
0.618,0.443,0.512,1.292,3.03;
enddata
max=@sum(link:a*x);
@for(number(i):@sum(number(j):x(i,j))=1);
@for(number(i):@sum(number(j):x(j,i))=1);
@for(link:@bin(x));
end
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询