《数学建模组合优化模型()》-公开课件.pptVIP

  • 2
  • 0
  • 约6.53千字
  • 约 91页
  • 2019-12-31 发布于广西
  • 举报

《数学建模组合优化模型()》-公开课件.ppt

结果 最小费用流问题 s t d c b a 2,3 2,1 3,2 1,3 3,1 1,2 4,2 5,2 1,2 s t d c b a 2,3 2,1 3,2 1,3 3,1 1,2 4,2 5,2 1,2 s t d c b a 2,3 2,1 3,2 1,3 3,1 1,2 4,2 5,2 1,2 2 2 2 2 2 2 2 2 2 3 2 1 1 V=4,费用为32 V=4,费用为25 线性规划形式 Scilab实现 用Scilab语言求解以上算例所示网络的最小费用流Scilab语句: clear tail=[1 1 2 2 3]; head=[2 3 3 4 4]; ?g=make_graph(g,1,4,tail,head); ?cost=[1 3 1 3 1]; ?max_cap=[2 1 2 4 2]; 续 g(edge_cost)=cost; ?g(edge_max_cap)=max_cap; ?demd=[-3,0,0,3]; ?g(node_demand)=demd; ?[c,phi,flag] = min_lcost_flow2(g) 结果 flag =? 1. phi =?! 2. 1. 1. 1. 2. ! c =? 11. 运输问题 运出地(n个) 运入地(m个) 可运出量 需运入量 单位运量

文档评论(0)

1亿VIP精品文档

相关文档