Revision:Transportation Algorithm - The Student Room
The Student Room

Revision:Transportation Algorithm

TSR Wiki > Study Help >Subjects and Revision > Revision Notes > Mathematics > Transportation Algorithm


Contents

The Transportation Algorithm

These notes carry on from Transportation Problems. In the worked example, we will use the table introduced there:

\begin{tabular}{|c|c|c|c|c|}
\hline 
& \text{Warehouse 1} &  \text{Warehouse 2} & \text{Warehouse 3} & \text{Supply} \\ \hline 
\text{Bakery 1} & 3 & 6 & 7 & 2  \\ \hline 
\text{Bakery 2} & 4 & 3 & 5 & 8  \\ \hline 
\text{Bakery 3} & 6 & 7 & 9 & 5  \\ \hline 
\text{Supply}   & 7 & 5 & 3 & 15 \\ \hline
\end{tabular}

In order to find an optimal solution, ther are three parts:

  1. Finding an initial solution
  2. Testing for Optimality
  3. Improving the solution if not optimal.

North-West Corner

The North-West Corner method is a way of finding an initial solution.

Step One: Start in the North-West (Top-Left) corner

Step Two: When you are in a cell, place the maximum possible number there without making the row or column total exceed the row or column total respectively.

Step Three: If you have not reached the South-East corner, then move onto the next step by either moving one step right (if you completed the column) or one step down (if you completed the row)

If we use the North-West corner rule on our initial table, we get:

\begin{tabular}{|c|c|c|c|c|}
\hline 
& \text{Warehouse 1} &  \text{Warehouse 2} & \text{Warehouse 3} & \text{Supply} \\ \hline 
\text{Bakery 1} & 2 &   &   & 2  \\ \hline 
\text{Bakery 2} & 5 & 3 &   & 8  \\ \hline 
\text{Bakery 3} &   & 2 & 3 & 5  \\ \hline 
\text{Supply}   & 7 & 5 & 3 & 15 \\ \hline
\end{tabular}

The Optimality Check

This optimality condition works if, and only if occupied cells = number of rows + number of columns − 1. If this is not the case, then you should add a zero into one of the unoccupied cells.

The optimality condition works by creating "shadow costs". This means that for each bakery, we work out a cost for delivering a loaf from it; an for each warehouse we work out a cost for delivering a loaf to it. First, you must work out a set of equations:

R_1 + K_1 = 3

R_2 + K_1 = 4

R_2 + K_2 = 3

R_3 + K_2 = 7

R_3 + K_3 = 9

To find values for each of these, we let one of the values be equal to zero. We could choose a non-zero value, but then all that would happen is our R values would be one higher, and K values one less (or vice versa).

For sake of argument, let R_1 = 0

We can work out from that:

R_1 = 0

K_1 = 3

R_2 = 1

K_2 = 2

R_3 = 5

K_3 = 4

Using the values we've got, we can work out how much we expect each transport route to cost. However, if any one of our routes costs less than using these shadow costs, then a transportation pattern using that route would be better than this.

To find out whether any routes are cheaper, we equate an "Improvement Index" for each unoccupied cell, defined as

I_{ij} = C_{ij} - R_i - K_j

Where C_{ij} is the cost of moving something from bakery i to warehouse j.

Let us work this out for cell (1,2)

I_{12} &=& C_{12} - R_1 - K_2

&=& 6 - 0 - 3

&=& 3

This is positive, so using this route would increase our costs, rather than decrease them. The other improvement indices can be worked out similarly:

I_{13} = 3

I_{23} = 0

I_{31} = -2

If an improvement index equals 0, then a route using that would cost the same as a current route. If an improvement index is negative, then using a route using that cell would be cheaper. If all improvement indices are positive or zero, then our distribution is optimal.

The Stepping Stone Method

We know that by using cell (3,1) we will reduce the cost of our transportation. Therefore, we want to use it to transport as much as possible. We do this using the 'stepping stone technique'

First, we let \theta equal the number of items transfered in that cell. However, we need to decrease or increase the items around it. We do this by finding a cycle. The rules for the cycle are as follows:

  • The first cell is unused and all the rest are used.
  • Move to a cell in the same row or column (i.e. not diagonally), but we may skip cells

in a row or column.

  • No three consecutive cells should be in the same row or column i.e. keep changing

direction from horizontal to vertical movement and vice versa.

  • Don’t use any cell more than once.

Below, my cycle is marked in red.

Since we are using this cycle to maximise \theta, we need to work out what the values around it can be. These are worked out by corrected the table in the following way:

Warehouse 1 Warehouse 2 Warehouse 3 Supply
Bakery 1 2 2
Bakery 2 5 - \theta 3 + \theta 8
Bakery 3 \theta 2 - \theta 3 5
Demand 7 5 3 15

From this table, it is clear to see the maximum value of \theta is 2. Any value greater than that will make cell (3, 2) negative. We can then make the necessary adjustments:

Warehouse 1 Warehouse 2 Warehouse 3 Supply
Bakery 1 2 2
Bakery 2 3 5 8
Bakery 3 2 3 5
Demand 7 5 3 15

This is our improved table. Using the improvement indices we can use to see if it is optimal.

Unbalanced Problems

For information on unbalanced transportation problems, go to Revision Notes: Unbalanced Transportation Problems

Discussions Toggle
The Male 'Fashion' Thread II
started by: rockrunride
forum: Clothes and Accessories
replies: 7301
last post: 1 Minute Ago
Second racist gang attacks on white man by "asians"
started by: Zeffy
forum: News and Current Affairs
replies: 0
last post: 1 Minute Ago
The African Society Part VII
started by: The Cornerstone
forum: International Lounge
replies: 7026
last post: 1 Minute Ago
What's your opinion on TSR girls that treat their profile like Facebook?
started by: lemonade12345
forum: Society
replies: 66
last post: 1 Minute Ago
The 'I'm applying for a PGCE' thread
started by: Rhiani-ani-on
forum: Education and Teaching
replies: 731
last post: 1 Minute Ago
Books that involve suicide attempts...
started by: icouldbeaicouldbec
forum: Books, Literature & Poetry
replies: 36
last post: 2 Minutes Ago
Ken Livingstone says the Tories are 'riddled with homosexuals'....
started by: thunder_chunky
forum: News and Current Affairs
replies: 42
last post: 2 Minutes Ago
TSR Christian Society Mk.II
started by: Facticity
forum: Religion
replies: 7505
last post: 2 Minutes Ago
My iPhone won't show up on iTunes?
started by: bengalisoldier
forum: Mobile Phones
replies: 3
last post: 2 Minutes Ago
Sexisms to do nice things like opening doors for girls?
started by: Simplicity
forum: Society
replies: 86
last post: 2 Minutes Ago
Personal Statement Question Thread
started by: oxymoronic
forum: Applications and UCAS
replies: 3099
last post: 2 Minutes Ago
LSE Applicants for 2012 entry
started by: donzy
forum: London School of Economics
replies: 3067
last post: 2 Minutes Ago
SEO London Corporate Law 2011-2012 programme
started by: IcanbutTRY
forum: Legal
replies: 123
last post: 2 Minutes Ago
The Ultimate 'Am I Good Enough For Medicine?' Angst Thread Mk II
started by: Hygeia
forum: Medicine
replies: 7030
last post: 2 Minutes Ago
Official Imperial Applicants Thread (2012 Entry)
started by: Beth1234
forum: Imperial College
replies: 2775
last post: 2 Minutes Ago
Don't want to study the course I've applied for! :(
started by: EffieFlowers
forum: General University Discussion
replies: 5
last post: 2 Minutes Ago
Speech and Language Therapy entry 2012
started by: naomiele
forum: Healthcare and Nursing
replies: 2905
last post: 2 Minutes Ago
Passport Fast Track Experiences?
started by: SensiDub
forum: Advice on Everyday Issues
replies: 0
last post: 2 Minutes Ago
Sex Perceptions
started by: Bedford.E.
forum: Media and Research Opportunities
replies: 1
last post: 2 Minutes Ago
Italy?
started by: sylvie92
forum: International Lounge
replies: 577
last post: 3 Minutes Ago
Article Updates Toggle
Contact Us | Site Rules | Staying Safe on TSR | Advertising | Staff Blog | Essays & Coursework | Terms & Conditions | Top
Customise your TSR | Life Advice | Hobbies and Interests | Debate and Current Affairs | Study Help | University and University courses
Universities and HE Colleges | Careers, Employment and Gap Years | General Discussion

Customise your TSR