-
Notifications
You must be signed in to change notification settings - Fork 1.4k
/
output.tools
117 lines (116 loc) · 3.02 KB
/
output.tools
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
Simulation parameters:
end: 600.0
interval: 30
time_limit: 10
cost_type: CostType.DISTANCE
drf: 1.0
fix_allocation: False
timestep: 0.0
Reservations waiting: ['0', '1']
Taxis empty: ('v0',)
Solve CPDP
Start creating the model.
dp reservations: ['0', '1']
do reservations: []
Reservation 0 starts at edge B0C0
Reservation 1 starts at edge C0D0
Reservation 0 ends at edge C1D1
Reservation 1 ends at edge D0D1
Reservation 0 has direct route costs 680
Reservation 1 has direct route costs 385
Start solving the problem.
Register distance callback.
Add distance constraints...
Add pickup and delivery constraints...
pickup/dropoff nodes: 1/3
allow to reject new reservation 0
pickup/dropoff nodes: 2/4
allow to reject new reservation 1
Add direct route factor constraints...
reservation 0 with direct route cost 680 * drf 1.0 = max cost 680
reservation 1 with direct route cost 385 * drf 1.0 = max cost 385
Add dropoff constraints...
Add capacity constraints...
Add time windows constraints...
window for node 1: [1, 600]
window for node 2: [1, 600]
window for node 3: [1, 600]
window for node 4: [1, 600]
window for node 5: [1, 600]
## Done
Set solution heuristic...
Start solving the problem.
Objective: 2628
Route for vehicle 0:
5 (L: 0, C: 0, T: (1,277))
-> 1 (L: 1, C: 588, T: (43,319))
-> 3 (L: 0, C: 1268, T: (156,432))
-> 2 (L: 1, C: 2243, T: (233,509))
-> 4 (L: 0, C: 2628, T: (324,600))
-> 0 (L: 0, C: 2628, T: (324,600))
Costs of the route: 2628
Total cost of the routes: 2628
Start interpreting the solution for SUMO.
Dispatching v0 with ['0', '0', '1', '1']
Costs for v0: 2628
timestep: 30.0
Reservations being picked up: ['0', '1']
Taxis picking up: ('v0',)
timestep: 60.0
Reservations being picked up: ['1']
Reservations en route: ['0']
Taxis picking up: ('v0',)
Taxis occupied: ('v0',)
Taxis occupied and picking up: ('v0',)
timestep: 90.0
Reservations being picked up: ['1']
Reservations en route: ['0']
Taxis picking up: ('v0',)
Taxis occupied: ('v0',)
Taxis occupied and picking up: ('v0',)
timestep: 120.0
Reservations being picked up: ['1']
Reservations en route: ['0']
Taxis picking up: ('v0',)
Taxis occupied: ('v0',)
Taxis occupied and picking up: ('v0',)
timestep: 150.0
Reservations being picked up: ['1']
Reservations en route: ['0']
Taxis picking up: ('v0',)
Taxis occupied: ('v0',)
Taxis occupied and picking up: ('v0',)
timestep: 180.0
Reservations being picked up: ['1']
Taxis picking up: ('v0',)
timestep: 210.0
Reservations en route: ['1']
Taxis occupied: ('v0',)
timestep: 240.0
Reservations en route: ['1']
Taxis occupied: ('v0',)
timestep: 270.0
Reservations en route: ['1']
Taxis occupied: ('v0',)
timestep: 300.0
Taxis empty: ('v0',)
timestep: 330.0
Taxis empty: ('v0',)
timestep: 360.0
Taxis empty: ('v0',)
timestep: 390.0
Taxis empty: ('v0',)
timestep: 420.0
Taxis empty: ('v0',)
timestep: 450.0
Taxis empty: ('v0',)
timestep: 480.0
Taxis empty: ('v0',)
timestep: 510.0
Taxis empty: ('v0',)
timestep: 540.0
Taxis empty: ('v0',)
timestep: 570.0
Taxis empty: ('v0',)
timestep: 600.0
Taxis empty: ('v0',)