Advertisement
junbjn98

log

Jun 23rd, 2021
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 14.56 KB | None | 0 0
  1. λ py mainfinal.py
  2. gen_random_solution
  3. f = 0
  4. gen_random_solution
  5. gen_solution_a_b
  6. gen_solution_c
  7. gen_solution_d
  8. f = 0
  9. gen_random_solution
  10. gen_solution_a_b
  11. gen_solution_c
  12. gen_solution_d
  13. f = 0
  14. gen_random_solution
  15. gen_solution_a_b
  16. gen_solution_c
  17. gen_solution_d
  18. f = 0
  19. gen_random_solution
  20. gen_solution_a_b
  21. gen_solution_c
  22. gen_solution_d
  23. f = 1
  24. gen_random_solution
  25. gen_solution_a_b
  26. gen_solution_c
  27. gen_solution_d
  28. f = 2
  29. gen_random_solution
  30. gen_solution_a_b
  31. gen_solution_c
  32. gen_solution_d
  33. f = 3
  34. gen_random_solution
  35. gen_solution_a_b
  36. gen_solution_c
  37. gen_solution_d
  38. f = 4
  39. gen_random_solution
  40. gen_solution_a_b
  41. gen_solution_c
  42. gen_solution_d
  43. gen_random_solution_for_return_order
  44. Route 1
  45. Vehicle 1:
  46. 116 -> 16 -> 136 -> 142 -> 65 -> 202 -> 78
  47. Vehicle 2:
  48. 196 -> 204 -> 67 -> 156(return) -> 172 -> 180(return) -> 141
  49. Vehicle 3:
  50. 54 -> 198 -> 131 -> 138 -> 137 -> 44 -> 160 -> 93(return)
  51. Vehicle 4:
  52. 166 -> 130 -> 70 -> 30 -> 32 -> 208
  53. Vehicle 5:
  54. 13 -> 59 -> 91 -> 169 -> 82
  55. Vehicle 6:
  56. 186 -> 190(return) -> 193 -> 174 -> 79 -> 189
  57. Vehicle 7:
  58. 97 -> 177 -> 19 -> 29 -> 80 -> 171 -> 206 -> 41
  59. Vehicle 8:
  60. 203 -> 195 -> 151 -> 87 -> 106 -> 168
  61. Vehicle 9:
  62. 127 -> 74 -> 95 -> 140 -> 153
  63. Vehicle 10:
  64. 165(return) -> 50 -> 105 -> 10(return) -> 205 -> 182
  65. Vehicle 11:
  66. 118 -> 112(return) -> 1 -> 47 -> 134 -> 88 -> 37 -> 45
  67. Vehicle 12:
  68. 184 -> 17 -> 129 -> 121 -> 128 -> 69 -> 3 -> 103
  69. Vehicle 13:
  70. 52 -> 84 -> 183(return) -> 152 -> 154(return) -> 178 -> 46(return) -> 24
  71. Vehicle 14:
  72. 158 -> 200 -> 104 -> 28 -> 120 -> 72 -> 34 -> 5 -> 98
  73. Vehicle 15:
  74. 7 -> 43 -> 42 -> 40 -> 33(return) -> 107 -> 139(return)
  75. Vehicle 16:
  76. 23(return) -> 114 -> 157 -> 161 -> 124 -> 63(return) -> 12 -> 144
  77. Vehicle 17:
  78. 100(return) -> 26 -> 194(return) -> 149 -> 185
  79. Vehicle 18:
  80. 164(return) -> 36 -> 113 -> 96 -> 75 -> 73
  81. Vehicle 19:
  82. 57 -> 58 -> 18 -> 4 -> 66 -> 92 -> 27 -> 60
  83. Vehicle 20:
  84. 133 -> 25(return) -> 191 -> 53 -> 167 -> 76 -> 61
  85. Vehicle 21:
  86. 150 -> 197 -> 122 -> 132 -> 123
  87. Vehicle 22:
  88. 117 -> 38 -> 49 -> 85(return) -> 20(return) -> 68 -> 179
  89. Vehicle 23:
  90. 101 -> 115 -> 48 -> 22 -> 207 -> 6 -> 62
  91. Vehicle 24:
  92. 145 -> 90 -> 102(return) -> 8(return) -> 201 -> 21 -> 111 -> 39
  93. Vehicle 25:
  94. 55 -> 64 -> 146 -> 170(return) -> 126 -> 148 -> 15 -> 187
  95. Vehicle 26:
  96. 9 -> 135 -> 56 -> 176 -> 14 -> 108 -> 2 -> 81 -> 175
  97. Vehicle 27:
  98. 159 -> 11 -> 86(return) -> 163 -> 125 -> 51
  99. Vehicle 28:
  100. 155 -> 162 -> 199 -> 71 -> 109 -> 31 -> 173 -> 99
  101. Vehicle 29:
  102. 35 -> 119 -> 192 -> 147 -> 143 -> 94
  103. Vehicle 30:
  104. 89(return) -> 110 -> 77 -> 83 -> 188(return) -> 181
  105. Route 2 (return orders route 1):
  106. Vehicle 1:
  107. 33 -> 102 -> 89 -> 63 -> 165 -> 183
  108. Vehicle 2:
  109. 190 -> 180 -> 139 -> 20 -> 156 -> 154 -> 164 -> 25
  110. Vehicle 3:
  111. 100 -> 8 -> 85 -> 86 -> 170 -> 194
  112. Vehicle 4:
  113. 112 -> 10 -> 93 -> 188 -> 46 -> 23
  114. Total cost: 4301835.42775214
  115. Distance travel: 520.367085550428 km
  116. ----------------------------------
  117. PO 1 - 15060.397
  118. PO 2 - 28637.986
  119. PO 3 - 35369.832
  120. PO 4 - 68375.147
  121. ----------------------------------
  122. Original route:
  123. 196 -> 204 -> 67 -> 156(return) -> 172 -> 180(return) -> 141
  124. (i, j) = (0, 0) | (u1, u2) = (0.12, 15060.397368567441)
  125. PO - 1
  126. Vehicle 2
  127. 196 -> 204 -> 67 -> 58(store) -> 172 -> 58(store) -> 141
  128. Total cost:3970278.766
  129. Total distance:492.856
  130. ----------------------------------
  131. PO 1 - 9919.731
  132. PO 2 - 17205.656
  133. PO 3 - 26550.812
  134. PO 4 - 40157.718
  135. ----------------------------------
  136. Original route:
  137. 54 -> 198 -> 131 -> 138 -> 137 -> 44 -> 160 -> 93(return)
  138. (i, j) = (0, 0) | (u1, u2) = (0.12, 9919.73071287345)
  139. PO - 1
  140. Vehicle 3
  141. 54 -> 198 -> 131 -> 138 -> 137 -> 44 -> 160 -> 44(store)
  142. Total cost:3983748.929
  143. Total distance:494.950
  144. ----------------------------------
  145. PO 1 - 9073.453
  146. PO 2 - 20925.371
  147. PO 3 - 21266.490
  148. PO 4 - 48972.072
  149. ----------------------------------
  150. Original route:
  151. 186 -> 190(return) -> 193 -> 174 -> 79 -> 189
  152. (i, j) = (0, 0) | (u1, u2) = (0.12, 9073.453155790296)
  153. PO - 1
  154. Vehicle 6
  155. 186 -> 58(store) -> 193 -> 174 -> 79 -> 189
  156. Total cost:3986456.439
  157. Total distance:494.891
  158. ----------------------------------
  159. PO 1 - 8784.514
  160. PO 2 - 21692.880
  161. PO 3 - 28124.572
  162. PO 4 - 65397.686
  163. ----------------------------------
  164. Original route:
  165. 165(return) -> 50 -> 105 -> 10(return) -> 205 -> 182
  166. (i, j) = (0, 0) | (u1, u2) = (0.12, 8784.513715952322)
  167. PO - 1
  168. Vehicle 10
  169. 58(store) -> 50 -> 105 -> 58(store) -> 205 -> 182
  170. Total cost:3972473.638
  171. Total distance:490.895
  172. ----------------------------------
  173. PO 1 - 11436.072
  174. PO 2 - 19552.987
  175. PO 3 - 27321.735
  176. PO 4 - 46179.135
  177. ----------------------------------
  178. Original route:
  179. 118 -> 112(return) -> 1 -> 47 -> 134 -> 88 -> 37 -> 45
  180. (i, j) = (0, 0) | (u1, u2) = (0.12, 11436.071635899985)
  181. PO - 1
  182. Vehicle 11
  183. 118 -> 44(store) -> 1 -> 47 -> 134(store) -> 88 -> 37 -> 45
  184. Total cost:3982956.672
  185. Total distance:492.391
  186. ----------------------------------
  187. PO 1 - 12611.449
  188. PO 2 - 25616.409
  189. PO 3 - 31227.323
  190. PO 4 - 62046.709
  191. ----------------------------------
  192. Original route:
  193. 52 -> 84 -> 183(return) -> 152 -> 154(return) -> 178 -> 46(return) -> 24
  194. (i, j) = (0, 0) | (u1, u2) = (0.12, 12611.448993413489)
  195. PO - 1
  196. Vehicle 13
  197. 52 -> 84 -> 58(store) -> 152 -> 58(store) -> 178 -> 58(store) -> 24
  198. Total cost:3995982.589
  199. Total distance:493.197
  200. ----------------------------------
  201. PO 1 - 12201.519
  202. PO 2 - 24815.319
  203. PO 3 - 35919.542
  204. PO 4 - 81045.715
  205. ----------------------------------
  206. Original route:
  207. 7 -> 43 -> 42 -> 40 -> 33(return) -> 107 -> 139(return)
  208. (i, j) = (0, 0) | (u1, u2) = (0.12, 12201.519046265372)
  209. PO - 1
  210. Vehicle 15
  211. 7 -> 43 -> 42 -> 40 -> 67(store) -> 107 -> 58(store)
  212. Total cost:3987053.767
  213. Total distance:490.211
  214. ----------------------------------
  215. PO 1 - 14044.607
  216. PO 2 - 25787.239
  217. PO 3 - 39244.923
  218. PO 4 - 61381.860
  219. ----------------------------------
  220. Original route:
  221. 23(return) -> 114 -> 157 -> 161 -> 124 -> 63(return) -> 12 -> 144
  222. (i, j) = (0, 0) | (u1, u2) = (0.12, 14044.606696249788)
  223. PO - 1
  224. Vehicle 16
  225. 44(store) -> 114 -> 157 -> 161 -> 124 -> 58(store) -> 12 -> 144
  226. Total cost:4015104.363
  227. Total distance:494.621
  228. ----------------------------------
  229. PO 1 - 10876.386
  230. PO 2 - 20140.249
  231. PO 3 - 28814.161
  232. PO 4 - 54783.571
  233. ----------------------------------
  234. Original route:
  235. 100(return) -> 26 -> 194(return) -> 149 -> 185
  236. (i, j) = (0, 0) | (u1, u2) = (0.12, 10876.3856751704)
  237. PO - 1
  238. Vehicle 17
  239. 44(store) -> 26 -> 58(store) -> 149 -> 185
  240. Total cost:4031520.028
  241. Total distance:496.704
  242. ----------------------------------
  243. PO 1 - 7901.499
  244. PO 2 - 16385.875
  245. PO 3 - 19542.848
  246. PO 4 - 44400.918
  247. ----------------------------------
  248. Original route:
  249. 164(return) -> 36 -> 113 -> 96 -> 75 -> 73
  250. (i, j) = (0, 0) | (u1, u2) = (0.12, 7901.499066599911)
  251. PO - 1
  252. Vehicle 18
  253. 58(store) -> 36 -> 113 -> 96 -> 75 -> 73
  254. Total cost:4036204.950
  255. Total distance:497.041
  256. ----------------------------------
  257. PO 1 - 13346.366
  258. PO 2 - 24378.612
  259. PO 3 - 33269.943
  260. PO 4 - 59009.613
  261. ----------------------------------
  262. Original route:
  263. 133 -> 25(return) -> 191 -> 53 -> 167 -> 76 -> 61
  264. (i, j) = (0, 0) | (u1, u2) = (0.12, 13346.366221563285)
  265. PO - 1
  266. Vehicle 20
  267. 133 -> 44(store) -> 191 -> 53 -> 167 -> 76 -> 61
  268. Total cost:4039516.861
  269. Total distance:497.103
  270. ----------------------------------
  271. PO 1 - 9781.863
  272. PO 2 - 18208.711
  273. PO 3 - 35036.404
  274. PO 4 - 43647.215
  275. ----------------------------------
  276. Original route:
  277. 117 -> 38 -> 49 -> 85(return) -> 20(return) -> 68 -> 179
  278. (i, j) = (0, 0) | (u1, u2) = (0.12, 9781.862961730152)
  279. PO - 1
  280. Vehicle 22
  281. 117 -> 38 -> 49 -> 44(store) -> 44(store) -> 68 -> 179
  282. Total cost:4047780.937
  283. Total distance:497.556
  284. ----------------------------------
  285. PO 1 - 12788.727
  286. PO 2 - 23752.087
  287. PO 3 - 39126.192
  288. PO 4 - 61569.050
  289. ----------------------------------
  290. Original route:
  291. 145 -> 90 -> 102(return) -> 8(return) -> 201 -> 21 -> 111 -> 39
  292. (i, j) = (0, 0) | (u1, u2) = (0.12, 12788.726888991618)
  293. PO - 1
  294. Vehicle 24
  295. 145 -> 90 -> 44(store) -> 44(store) -> 201 -> 21 -> 111 -> 39
  296. Total cost:4047379.338
  297. Total distance:496.276
  298. ----------------------------------
  299. PO 1 - 13621.642
  300. PO 2 - 24750.554
  301. PO 3 - 33444.478
  302. PO 4 - 57784.550
  303. ----------------------------------
  304. Original route:
  305. 55 -> 64 -> 146 -> 170(return) -> 126 -> 148 -> 15 -> 187
  306. (i, j) = (0, 0) | (u1, u2) = (0.12, 13621.642163169508)
  307. PO - 1
  308. Vehicle 25
  309. 55 -> 64 -> 146 -> 44(store) -> 126 -> 148 -> 15 -> 187
  310. Total cost:4057621.581
  311. Total distance:497.724
  312. ----------------------------------
  313. PO 1 - 11216.183
  314. PO 2 - 19784.633
  315. PO 3 - 32361.178
  316. PO 4 - 57568.006
  317. ----------------------------------
  318. Original route:
  319. 159 -> 11 -> 86(return) -> 163 -> 125 -> 51
  320. (i, j) = (0, 0) | (u1, u2) = (0.12, 11216.183018665171)
  321. PO - 1
  322. Vehicle 27
  323. 159 -> 11 -> 44(store) -> 163 -> 125 -> 51
  324. Total cost:4041474.654
  325. Total distance:493.895
  326. ----------------------------------
  327. PO 1 - 10570.717
  328. PO 2 - 17237.912
  329. PO 3 - 25741.854
  330. PO 4 - 40473.439
  331. ----------------------------------
  332. Original route:
  333. 89(return) -> 110 -> 77 -> 83 -> 188(return) -> 181
  334. (i, j) = (0, 0) | (u1, u2) = (0.12, 10570.717354077715)
  335. PO - 1
  336. Vehicle 30
  337. 44(store) -> 110 -> 77 -> 83 -> 44(store) -> 181
  338. Total cost:4072926.375
  339. Total distance:498.985
  340. ----296.82----
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement