L14 Vehicle
L14 Vehicle
• Hungarian Method
• B & B Method
Hungarian Method
Objective:
To minimize the distance travelled by salesman
Steps:
1)Row minimization
2)Column minimization
3)Calculation of penalties for all zeroes and then eliminating the zero
with the maximum penalty
A B C D E
A - 7 6 8 4
B 7 - 8 5 6
C 6 8 - 9 7
D 8 5 9 - 8
E 4 6 7 8 -
So, the route the salesman should take in
order to travel minimum distance is
AEBDCA
x
i 1
ij 1 for j 1, 2,...n, i j , i m
n
x
j 1
ij 1 for i 1, 2,...m, i j , i m
xmk 1
xij 0 or 1
Solution Procedure:
Solve the problem as an assignment problem using the method
used to solve the above examples
If the solutions thus found out are cyclic in nature, then that is the
final solution
Formulation of Traveling Salesman
Problem (TSP) as an Assignment Problem
…contd.
9
Traveling Salesman Problem
(TSP) - Example
Consider a four city TSP for which the cost between the city pairs are
as shown in the figure below. Find the tour of the salesman so that
the cost of travel is minimal.
Cost matrix
10
Traveling Salesman Problem (TSP) –
Example …contd.
Solution:
Step 1: The optimal solution after using the Hungarian method is
shown below.
11
Traveling Salesman Problem
(TSP) – Example …contd.
Step 2:
Consider the lowest entry ‘2’ of the cell (2,1)
If there is a tie in selecting the lowest entry, then break the tie
arbitrarily
Delete the 2nd row and 1st column
Do the zero assignment in the remaining matrix
12
Traveling Salesman Problem
(TSP) – Example …contd.
13
Travelling Salesman Problem
Given a set of cities and distance between
every pair of cities, the problem is to find
the shortest possible route that visits
every city exactly once and returns to the
starting point.
Branch and Bound
Algorithm
A
B D
C
Introduction
● The vehicle routing problem (VRP) is a combinatorial
optimization and integer programming problem seeking to
service a number of customers with a fleet of vehicles.
● Often the context is that of delivering goods located at a
central depot to customers who have placed orders for
such goods. Objective of such problems is to minimize the
time and distance traveled.
● Many methods have been developed for searching for
good solutions to the problem, but for all but the smallest
problems, finding global minimum for the cost function is
computationally complex.
● Hence many good heuristics have been developed for
these types of problems which yield good solutions if not
optimal solutions.
Example
Consider a milk van delivering milk to four distribution centers (DC) every day
morning.
The objective of depot is to minimize the total cost of providing the services. This
includes the vehicle capital cost, mileage and personnel costs.
Feasibility
Depot(1)
Ci1 Cj1
C1i C1j
Node i Node j
-
1 2 3 4 5 6 7
1 -
2 28 -
3 21 47 -
4 14 36 26 -
5 17 25 37 15 -
6 18 20 30 31 29 -
7 22 35 20 34 39 16 -
Saving Matrix
2 3 4 5 6
3 2
4 6 9
5 20 1 16
6 26 9 1 6
7 15 23 2 0 24
Distance
and load
related data
Saving Matrix
Final Routes Based on Saving Heurstics
Vehicle Route Planning:
Extensions
• Vehicle can operate multiple routes
• Time window for a customer
• Business may involve both deliveries and
collections
• Vehicles ( drivers) may have a time window
• Time consuming activities other than travel:
– Loading & unloading
– Queuing at loading and unloading
Vehicle Routing: Strategic Decisions
• Fixed versus dynamic routes
• Temporal consolidation
– Time based
– Quantity based’
• Nature of relationship with transport
carrier
– Short term versus long term contract
• Special vehicle versus standard vehicle
– Load and volume optimization
Vehicle Scheduling: Baroda Dairy
Routes Routes
(Present) (Using savings
Heuristic)
No. of Routes 12 10
Source; WWW.Amazon.com
* Shipping within USA
Importance of Transportation Cost for Different
Category of Orders in E-retailing
The GVRP is the problem of designing optimal delivery or collection routes, subject to capacity
restrictions, from a given depot to a number of predefined, mutually exclusive and exhaustive node-sets
Let G = (V,A) be a directed graph with V = {0,1,2,....,n} as the set of vertices
and the set of arcs A = {(i,j) | i,j ∈ V,i ̸= j}. A nonnegative cost cij associated
with each arc (i,j) ∈ A. The set of vertices (nodes) is partitioned into k + 1
mutually exclusive nonempty subsets, called clusters.
The cluster V0 has only one vertex 0, which represents the depot, and remaining n
nodes belonging to the remaining k clusters represent geographically dispersed
customers.
The generalized vehicle routing problem (GVRP) consists in finding the minimum
total cost tours of starting and ending at the depot, such that each cluster should
be visited by exactly once, the entering and leaving nodes of each cluster is the
same and the sum of all the demands of any tour (route) does not exceed the
capacity of the vehicle Q.
A local global heuristic for
GVRP
The last heuristic algorithm for solving the GVRP that we are going to describe is based on local-global approach
and it aims at distinguishing between global connections (connections between clusters) and local connections.
There are several generalized collection of routes, i.e. routes containing exactly one node from a cluster,
corresponding to a global collection of routes. Between these generalized collection of routes there exist one
called the best generalized collection of routes.
Let G′ be the graph obtained from G after replacing all nodes of a cluster Vi
with a supernode representing Vi. We will call the graph G′ the global graph.
For convenience, we identify Vi with the supernode representing it. Edges of
the graph G′ are defined between each pair of the graph vertices V1,...,Vk.
Vehicle routing system
Sequential steps in the routing process
●
Order Retrieval
●
Order geocoding
●
Travel time computation
●
Routing solution optimization
●
Manual editing of routing solutions
●
Routing solution release
●
Driver assignment
● A feasible route judged to be a good route if it completely
fills a vehicle and its order locations are in a tight cluster.
THANK YOU