-
Notifications
You must be signed in to change notification settings - Fork 1
Routing DSL
Adam Michael edited this page Jan 23, 2016
·
7 revisions
For now this is just a scratchpad of Adam's thoughts.
- Minimize total vehicle distance
- Minimize total vehicle time
- Minimize max vehicle distance
- Minimize max vehicle time
x[k1,k2,i] = vehicle i has a route segment from k1 to k2
y[k1,k2,i] = vehicle i has a chain of route segments from k1 to k2
Minimize total vehicle distance: sum{distances[k1,k2]*x[k1,k2,i],k1=RA,k2=RA,i=VA}
Minimize total time: sum{durations[k1,k2]*x[k1,k2,i],k1=RA,k2=RA,i=VA}
Minimize total passenger distance: sum{distances[k1,]*y[,(k1,k2)=XA,i=VA}