vehicle routing problem אליאור זיברטדרור חבלין. classical vehicle routing n...

14
VEHICLE ROUTING PROBLEM טטטטטט טטטטט טטטט טטטטט

Upload: jakob-budde

Post on 15-Jan-2016

228 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: VEHICLE ROUTING PROBLEM אליאור זיברטדרור חבלין. Classical Vehicle Routing n customers must be served from a single depot utilizing vehicle with capacity

VEHICLE ROUTING PROBLEM

דרור חבליןאליאור זיברט

Page 2: VEHICLE ROUTING PROBLEM אליאור זיברטדרור חבלין. Classical Vehicle Routing n customers must be served from a single depot utilizing vehicle with capacity

Classical Vehicle RoutingClassical Vehicle Routing

n customers must be served from a single depot utilizing vehicle with capacity Q for delivering goods

Each customer requires a quantity qi ≤ Q of goods

Customer orders cannot be split

Page 3: VEHICLE ROUTING PROBLEM אליאור זיברטדרור חבלין. Classical Vehicle Routing n customers must be served from a single depot utilizing vehicle with capacity

Additional FeaturesAdditional FeaturesDepotsDepots– Multiple locationsMultiple locations

VehiclesVehicles– Multiple vehicle types Multiple vehicle types

and capacitiesand capacities– Release, maximum and Release, maximum and

down timesdown timesCustomersCustomers– Time windows (soft or Time windows (soft or

hard)hard)– Accessibility restrictionsAccessibility restrictions– PriorityPriority– Pickup and deliveryPickup and delivery

RoutesRoutes– Maximum timeMaximum time– Link costsLink costs

Objective Functions– Minimize total traveled

distance– Minimize total traveled

time– Minimize number of

vehicles– Maximize quality of

service – Multiple objective

functions

Page 4: VEHICLE ROUTING PROBLEM אליאור זיברטדרור חבלין. Classical Vehicle Routing n customers must be served from a single depot utilizing vehicle with capacity

How Can It Be SolvedHow Can It Be Solved??? ??? Heuristics that Grow Fragments– Nearest neighbor– Double-ended nearest

neighbor– Multiple fragment

heuristicHeuristics that Grow Tours– Nearest addition– Farthest addition– Random addition

Heuristics Based on Trees– Minimum spanning tree– Christofides heuristic– Fast recursive

partitioning

AND MANY MORE

Page 5: VEHICLE ROUTING PROBLEM אליאור זיברטדרור חבלין. Classical Vehicle Routing n customers must be served from a single depot utilizing vehicle with capacity

Ant Colony Optimization

(ACO)

OUR CHOICE OF ALGORITHEM

Page 6: VEHICLE ROUTING PROBLEM אליאור זיברטדרור חבלין. Classical Vehicle Routing n customers must be served from a single depot utilizing vehicle with capacity

Ants (blind) navigate from nest to food sourceShortest path is discovered via pheromone trails– each ant moves at random– pheromone is deposited on path– ants detect lead ant’s path, inclined to follow– more pheromone on path increases probability

of path being followed

ACO Concepts

Page 7: VEHICLE ROUTING PROBLEM אליאור זיברטדרור חבלין. Classical Vehicle Routing n customers must be served from a single depot utilizing vehicle with capacity
Page 8: VEHICLE ROUTING PROBLEM אליאור זיברטדרור חבלין. Classical Vehicle Routing n customers must be served from a single depot utilizing vehicle with capacity

ACO SystemACO SystemVirtual “trail” accumulated on path segmentsStarting node selected at randomPath selected at random– based on amount of “trail” present on possible

paths from starting node– higher probability for paths with more “trail”

Ant reaches next node, selects next pathContinues until reaches starting nodeFinished “tour” is a solution

Page 9: VEHICLE ROUTING PROBLEM אליאור זיברטדרור חבלין. Classical Vehicle Routing n customers must be served from a single depot utilizing vehicle with capacity

ACO System, cont.ACO System, cont.A completed tour is analyzed for optimality“Trail” amount adjusted to favor better solutions– better solutions receive more trail– worse solutions receive less trail– higher probability of ant selecting path that is part

of a better-performing tourNew cycle is performedRepeated until most ants select the same tour on every cycle (convergence to solution)

Page 10: VEHICLE ROUTING PROBLEM אליאור זיברטדרור חבלין. Classical Vehicle Routing n customers must be served from a single depot utilizing vehicle with capacity

ANT ALGORITHEM

Page 11: VEHICLE ROUTING PROBLEM אליאור זיברטדרור חבלין. Classical Vehicle Routing n customers must be served from a single depot utilizing vehicle with capacity

The AlgorithmAt the beginning of the search process, a constant amount of pheromone is assigned to all arcs. When located at a node i an ant k uses the pheromone trail to compute the probability of choosing j as the next node:

α - is a weight function based on arc cost etc..β – is a weight function base on arc lengthi When all ants have comleted a tour each ant compute the quantity per unit of length , the pheromone value changes as follows:

By using this rule, the probability increases that forthcoming ants will use this arc.

kiN

ijijij tnt )()(

m

k

kijij

1

Page 12: VEHICLE ROUTING PROBLEM אליאור זיברטדרור חבלין. Classical Vehicle Routing n customers must be served from a single depot utilizing vehicle with capacity

Our Code Design :

Page 13: VEHICLE ROUTING PROBLEM אליאור זיברטדרור חבלין. Classical Vehicle Routing n customers must be served from a single depot utilizing vehicle with capacity

resultsresults

1, 5

850

900

950

1000

1050

1100

1150

137474711201493186622392612298533583731

1, 5

1, 5

800

850

900

950

1000

1050

1100

1413825123716492061247328853297370941214533

1, 5

Page 14: VEHICLE ROUTING PROBLEM אליאור זיברטדרור חבלין. Classical Vehicle Routing n customers must be served from a single depot utilizing vehicle with capacity

More resultMore result

0

20

40

60

80

100

120

140

11032053074095116137158179191021

1, 5

5, 0