Skip to content

Commit

Permalink
execution on pr02
Browse files Browse the repository at this point in the history
  • Loading branch information
Eddy-123 committed Aug 31, 2021
1 parent 2efd5a3 commit 641be68
Show file tree
Hide file tree
Showing 3 changed files with 289 additions and 3 deletions.
9 changes: 6 additions & 3 deletions genetic-algorithm.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,14 @@ class Instance:
maximum_ride_time = None
depot = None
vertices = []
starting_time = {'pr01': [188.54, 148.08, 83.13]}
name = 'pr01'
starting_time = {
'pr01': [188.54, 148.08, 83.13],
'pr02': [98.25, 85.24, 130.29, 54.96, 79.93]
}
name = 'pr02'

@classmethod
def read(cls, instance_path = 'instances/pr01.txt'):
def read(cls, instance_path = 'instances/pr02.txt'):
cls.vertices = []
with open(instance_path, 'r') as f:
file_content = f.readlines()[:]
Expand Down
98 changes: 98 additions & 0 deletions instances/pr02.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
5 96 480 6 90
0 3.022 2.479 0 0 0 1440
1 3.359 3.075 10 1 0 1440
2 4.883 6.531 10 1 0 1440
3 8.618 5.934 10 1 0 1440
4 3.927 -3.306 10 1 0 1440
5 -2.337 8.685 10 1 0 1440
6 4.813 9.559 10 1 0 1440
7 -1.636 9.331 10 1 0 1440
8 -5.770 -6.560 10 1 0 1440
9 0.715 3.268 10 1 0 1440
10 4.295 6.870 10 1 0 1440
11 3.708 -0.211 10 1 0 1440
12 7.776 5.582 10 1 0 1440
13 -1.746 -5.657 10 1 0 1440
14 5.857 5.989 10 1 0 1440
15 5.778 1.534 10 1 0 1440
16 -2.233 3.607 10 1 0 1440
17 -0.708 3.049 10 1 0 1440
18 5.566 6.042 10 1 0 1440
19 -1.431 1.146 10 1 0 1440
20 -2.972 2.427 10 1 0 1440
21 4.322 0.074 10 1 0 1440
22 4.518 3.547 10 1 0 1440
23 6.448 0.224 10 1 0 1440
24 5.508 7.224 10 1 0 1440
25 1.693 1.574 10 1 390 406
26 4.504 -0.372 10 1 467 492
27 -7.678 0.594 10 1 147 167
28 3.617 0.026 10 1 373 415
29 2.922 0.894 10 1 105 128
30 6.506 0.522 10 1 219 248
31 4.217 -2.228 10 1 144 168
32 2.557 3.173 10 1 96 138
33 3.156 3.726 10 1 430 448
34 6.650 -5.417 10 1 68 92
35 4.658 -1.794 10 1 337 352
36 6.506 4.088 10 1 93 114
37 -0.272 2.477 10 1 477 517
38 -4.000 0.387 10 1 145 176
39 -7.350 5.704 10 1 427 466
40 8.115 -2.571 10 1 67 101
41 1.201 -0.796 10 1 430 474
42 4.276 3.809 10 1 69 86
43 0.386 -2.318 10 1 131 169
44 -0.737 2.439 10 1 66 89
45 3.594 -1.183 10 1 86 112
46 5.208 0.969 10 1 375 397
47 3.073 3.070 10 1 352 392
48 4.122 7.792 10 1 141 173
49 6.888 -4.055 10 -1 459 480
50 7.631 8.667 10 -1 432 465
51 6.393 7.854 10 -1 155 199
52 2.915 -0.996 10 -1 413 434
53 8.552 3.995 10 -1 401 417
54 3.177 0.387 10 -1 377 412
55 -2.054 1.909 10 -1 426 464
56 5.535 4.382 10 -1 206 243
57 3.541 1.028 10 -1 380 406
58 2.546 -0.029 10 -1 414 457
59 1.240 0.024 10 -1 118 158
60 1.836 2.092 10 -1 148 169
61 2.796 -1.504 10 -1 165 208
62 -0.319 1.988 10 -1 255 298
63 0.933 -4.135 10 -1 395 429
64 -2.058 3.818 10 -1 281 318
65 2.782 2.873 10 -1 426 453
66 5.903 4.231 10 -1 211 228
67 5.631 5.873 10 -1 220 241
68 -5.165 -0.034 10 -1 195 215
69 0.258 3.272 10 -1 164 181
70 1.513 -0.305 10 -1 431 449
71 6.659 3.494 10 -1 417 439
72 1.948 2.014 10 -1 376 401
73 -0.117 2.065 10 -1 0 1440
74 -2.120 1.366 10 -1 0 1440
75 9.885 0.126 10 -1 0 1440
76 8.259 7.200 10 -1 0 1440
77 3.002 -3.090 10 -1 0 1440
78 3.323 4.166 10 -1 0 1440
79 3.949 -0.854 10 -1 0 1440
80 5.450 7.081 10 -1 0 1440
81 0.306 1.025 10 -1 0 1440
82 5.183 -1.687 10 -1 0 1440
83 7.642 1.135 10 -1 0 1440
84 0.524 0.024 10 -1 0 1440
85 5.059 3.425 10 -1 0 1440
86 -0.523 -0.208 10 -1 0 1440
87 2.419 2.584 10 -1 0 1440
88 3.363 3.759 10 -1 0 1440
89 3.144 -0.700 10 -1 0 1440
90 3.071 -2.817 10 -1 0 1440
91 4.986 0.104 10 -1 0 1440
92 -3.577 1.414 10 -1 0 1440
93 -2.931 0.489 10 -1 0 1440
94 1.905 4.197 10 -1 0 1440
95 2.760 1.393 10 -1 0 1440
96 5.283 5.068 10 -1 0 1440
Loading

0 comments on commit 641be68

Please sign in to comment.