线性规划--愁了两天了,那位好心的高手指点下
楼主 · 1 楼
小女子在外求学,遇教授出题为难,愁愁愁。。。(贴子数据表格改来改去还是乱,详细见附件)
公司有三辆卡车,每辆载货上限30顿,往在不同城市的9家商店送货,每家店之间的距离如图
entreprise Magasin1 Magasin2 Magasin3 Magasin4 Magasin5 Magasin6 Magasin7 Magasin8 Magasin9
entreprise 0 27 61 110 72 206
241 1
52 276 149
Magasin1 0 72 212 61 179 259
130 292 173
Magasin2 0 49 131 227 280 200 220 176
Magasin3 0 180 260 310 246 172 202
Magasin4 0 177 235 91 348 172
Magasin5 0 411 112 423 345
Magasin6 0 309 410 110
Magasin7 0 418 261
Magasin8 0 304
Magasin9 0
每家店的需要满足的送货量如下:
Magasin1 Magasin2 Magasin3 Magasin4 Magasin5 Magasin6 Magasin7 Magasin8 Magasin9
19 10 7 9 4 6 14
3 5
问如何送货路线最节省?愁了两天了,那位好心的高手指点下~~~
现在想到的是用一个01矩阵限制送货的商店,但想来想去不知道EXCEL里怎么添加SLOVER的限制条件区分,3辆卡车,,,快疯了~~📎 post-37-1197704661.doc (16 KB)
公司有三辆卡车,每辆载货上限30顿,往在不同城市的9家商店送货,每家店之间的距离如图
entreprise Magasin1 Magasin2 Magasin3 Magasin4 Magasin5 Magasin6 Magasin7 Magasin8 Magasin9
entreprise 0 27 61 110 72 206
241 1
52 276 149
Magasin1 0 72 212 61 179 259
130 292 173
Magasin2 0 49 131 227 280 200 220 176
Magasin3 0 180 260 310 246 172 202
Magasin4 0 177 235 91 348 172
Magasin5 0 411 112 423 345
Magasin6 0 309 410 110
Magasin7 0 418 261
Magasin8 0 304
Magasin9 0
每家店的需要满足的送货量如下:
Magasin1 Magasin2 Magasin3 Magasin4 Magasin5 Magasin6 Magasin7 Magasin8 Magasin9
19 10 7 9 4 6 14
3 5
问如何送货路线最节省?愁了两天了,那位好心的高手指点下~~~
现在想到的是用一个01矩阵限制送货的商店,但想来想去不知道EXCEL里怎么添加SLOVER的限制条件区分,3辆卡车,,,快疯了~~📎 post-37-1197704661.doc (16 KB)
2 楼
用Lingo 10试试看,www.lindo.com