Professional Documents
Culture Documents
Regret
Optimization
Dispatcher Module
While (continuously accept demands)
if Demands Queue not empty and demands waiting time <= 60 seconds
If online algorithm signals IDLE_STATE or SOFT_WORKING_STATE wait send
Send to the online algorithm the current demand
Remove it from QUEUE
Else
Do Nothing
if waiting time > 60 seconds
Reject Demand
d
Remove it from QUEUE s
e
End while i
m
a g
The dispatcher algorithm works under three conditions concerning the response of the online n n
algorithm. d a
s l
Condition 1: HARD_WORKING_STATE.
Condition 2: SOFT_WORKING_STATE.
Condition 3: IDLE_STATE.
algorithm
Online Fast Insertion Algorithm(OR-DARP-NoOpt)
(minimum optimization)
Step0: Build routes for every vehicle
Step1: for every Online Demand
Step1.1:for every vehicle routes do
Α. find the Best Insertion Position
Β. If not Best Insertion Position found, then Reject trip request and repeat step1
Step1.2: From all Best Insertion Positions select the minimum cost one
Step1.3: Assign that Online Demand to the appropriate Vehicle Route and go to step 1
PASS FUTURE
Route 1
Route 2 b
Route 3
…. e
… s
Route n
t
Online Regret Optimization Algorithm(OR-DARP-Opt)
(maximum optimization)
Step 1:While(run continuously)
if System can be optimized more
Step 1.1: for every Route find the “Most Expensive” Trip Assignment !diagonal cells
Step 1.2: for every Route
find the assignment cost of the “Most Expensive” trip to any other route ! same column
keep the minimum assignment cost (if it is below “Most Expensive” assignment)
Step 1.3: From all minimum assignment costs select the maximum difference between them and the most
expensive assignment of each row
Move the “Most Expensive” trip to the appropriate new route
Else Do nothing
D1 D2 D3 D4 D5 Dn D1 D2 D3 D4 D5 Dn D1 D2 D3 D4 D5 Dn
Route 1 100 Route 1 100 inf inf 100 110 58 Route 1 100 inf inf 100 110 58
Route 2 140 Route 2 145 140 50 23 38 33 Route 2 145 140 50 23 38 33
Route 3 55 Route 3 180 120 55 50 inf inf Route 3 180 120 55 50 inf inf
Route 4 33 Route 4 Inf 123 30 33 90 20 Route 4 Inf 123 30 33 90 20
Route 5 80 Route 5 inf 155 inf 68 80 60 Route 5 inf 155 inf 68 80 60
Route n 39 Route n 60 135 130 34 85 39 Route n 60 135 130 34 85 39
Max diff 40 20 25 10 42 19
Definitely YES. In all experiments online regret optimization outperforms fast insertion.
Best score is close to 4% which is not bad given the online nature, where optimization
applies to a limited (future horizon) set of trip demands
What if we were using only Fast Insertion Algorithm?
# Trip Requests Assigned Trips
1 94 94
2 226 226
3 415 415
4 624 624
5 803 803
6 949 949
7 1151 1151
8 1370 1370
9 1619 1619
Answer: Yes, below a certain number of trip requests the optimization engine makes a
profit. Above this number we loose more because of unserved demands.
Investor Question: What is the critical point?
performance vs profits
1(94) 2(226) 3(415) 4(624) 5(803) 6(949) 7(1151) 8(1370) 9(1619)
10.00%
0.00%
-10.00%
-20.00%
-30.00%
-40.00%
-50.00%