文章预览
选址问题是很多工厂、物流公司的核心研究问题。其目标是整个网络配送整体成本最低。本例使用Or-tools来解决选址问题。 问题说明:如何在以下条件下进行仓库选址并安排日常配送,使总成本最低。 1)有七个点可供选址仓库,这七个点的日均租金、及仓库最大容量如下: 2)需配送至100个网点,仓库到100个网点的运输成本如下: 3)100个网点的需求量: 该数据已传至列表如下: #最下面一行是需求量,最右边一列是仓库最大容量 D=[ [7,7,4,3,8,2,6,4,10,2,10,7,3,4,8,10,6,5,6,3,10,9,4,2,6,1,7,2,9,3,8,3,5,8,9,1,7,9,7,5,1,9,1,5,5,10,8,7,5,9,9,1,4,5,1,7,7,10,5,8,2,8,4,7,1,5,10,7,5,6,5,6,6,1,2,2,9,8,2,10,4,1,9,3,3,4,3,3,10,9,7,10,1,9,2,6,2,5,3,5,100], [5,8,1,5,1,10,8,1,3,3,6,3,1,10,1,6,3,5,5,9,4,9,1,7,7,8,8,5,9,10,9,6,5,4,3,4,3,2,4,10,6,7,5,4,6,10,5,7,3,7,8,9,9,8,10,5,10,9,5,1,7,10,2,3,9,2,5,8,10,3,9,5,8,10,2,9,3,6,4,5,9,1,6,9,1,5,1,8,10,3,10,8,3,6,9,2,
………………………………