SlideShare a Scribd company logo
1 of 48
Download to read offline
1
Slide
Quantitative Methods
Chapter 9
Transportation, Assignment, Problems
2
Slide
Transportation, Assignment, and
Transshipment Problems
 A network model is one which can be represented by
a set of nodes, a set of arcs, and functions (e.g. costs,
supplies, demands, etc.) associated with the arcs
and/or nodes.
 Transportation, assignment, problems of this chapter,
as well as the shortest route, minimal spanning tree
3
Slide
Transportation, Assignment, and
Transshipment Problems
 Each models of this chapter (transportation,
assignment models) can be formulated as linear
programs and solved by general purpose linear
programming Algorithms (simplex method).
4
Slide
Transportation Problem
 The transportation problem seeks to
minimize the total shipping costs of
transporting goods from m origins or sources
(each with a supply si) to n destinations
(each with a demand dj), when the unit
shipping cost from source, i, to a destination,
j, is cij.
 The network representation for a
transportation problem with two sources
and three destinations is given on the next
slide.
5
Slide
Transportation Problem
 Network Representation
1
2
3
1
2
c11
c12
c13
c21 c22
c23
d1
d2
d3
s1
s2
SOURCES DESTINATIONS
6
Slide
Transportation Problem
 LP Formulation
The linear programming formulation in terms of the
amounts shipped from the sources to the destinations, xij ,
can be written as:
Min cijxij (total transportation cost)
i j
s.t. xij < si for each source i (supply constraints)
j
xij = dj for each destination j (demand constraints)
i
xij > 0 for all i and j (nonnegativity constraints)
7
Slide
Transportation Problem
 To solve the transportation problem by its special
purpose algorithm, it is required that the sum of the
supplies at the sources equal the sum of the demands
at the destinations. If the total supply is greater than
the total demand, a dummy destination is added
with demand equal to the excess supply, and
shipping costs from all sources are zero. Similarly, if
total supply is less than total demand, a dummy
source is added.
 When solving a transportation problem by its special
purpose algorithm, unacceptable shipping routes are
given a cost of +M (a large number).
8
Slide
Transportation Problem
 A transportation tableau is given below. Each cell
represents a shipping route (which is an arc on the
network and a decision variable in the LP
formulation), and the unit shipping costs are given in
an upper right hand box in the cell.
Supply
30
50
35
20
40
30
30
Demand 10
45
25
S1
S2
D3
D2
D1
15
9
Slide
Problem formulation
 The LP model for this problem is as follows:
Min Z = 15 X11 + 30 X12 + 20 X13 + 30 X21 + 40X22 + 35X23
S.t.
X11 + X12 + X13 ≤ 50
Supply constraints
X21 + X22 + X23 ≤ 30
X11 + X21 = 25
X12 + X22 = 45
X13 + X23 = 10 demand constraints
X11, …, X23  0
10
Slide
Transportation Problem
 The transportation problem is solved in two phases:
• Phase I -- Obtaining an initial feasible solution
• Phase II -- Moving toward optimality
 In Phase I, the Minimum-Cost Procedure can be used
to establish an initial basic feasible solution without
doing numerous iterations of the simplex method.
 In Phase II, the Stepping Stone, by using the MODI
method for evaluating the reduced costs may be used
to move from the initial feasible solution to the
optimal one.
11
Slide
Initial Tableau
 There are many method for finding the initial tableau
for the transportation problem which are:
1. Northwest corner
2. Minimum cost of the row
3. Minimum cost of the column
4. Least cost
5. Vogle’s approximation method
6. Russell’s approximation method
12
Slide
Northwest corner
 Northwest corner: Begin by selecting X11 (that is, start in the
northwest corner of the transportation tableau). Therefore, if
Xij was the last basic variable (occupied cell) selected, then
select Xij+1 (that is, move one column to the right) if source I
has any supply remaining. Otherwise, next select Xi+1 j (that
is, move one row down).
Supply
30
50
35
20
40
30
30
Demand 10
45
25
S1
S2
D3
D2
D1
15
13
Slide
Supply
30
50=25
35
20
40
30
30
Demand 10
45
25=0
S1
S2
D3
D2
D1
15
14
Slide
Supply
30
50=25
35
20
40
30
30
Demand 10
45
25=0
S1
S2
D3
D2
D1
15
15
Slide
Supply
30
50=25
25
35
20
40
30
30
Demand 10
45
25=0
S1
S2
D3
D2
D1
15
16
Slide
Supply
30
0
25 25
35
20
40
30
30
Demand 10
45=20
0
S1
S2
D3
D2
D1
15
17
Slide
Supply
30=10
0
25 25
20
35
20
40
30
30
Demand 10
0
0
S1
S2
D3
D2
D1
15
18
Slide
Supply
30
50
25 25
20 10
35
20
40
30
30
Demand 10
45
25
S1
S2
D3
D2
D1
15
19
Slide
 Total cost = 25 X15 + 25 X30 + 20 X40 + 10 X35
= $2275
Supply
30
50
25 25
20 10
35
20
40
30
30
Demand 10
45
25
S1
S2
D3
D2
D1
15
20
Slide
Transportation Algorithm
 Phase I - Minimum-Cost Method
• Step 1: Select the cell with the least cost. Assign to this cell the
minimum of its remaining row supply or remaining column
demand.
• Step 2: Decrease the row and column availabilities by this
amount and remove from consideration all other cells in the
row or column with zero availability/demand. (If both are
simultaneously reduced to 0, assign an allocation of 0 to any
other unoccupied cell in the row or column before deleting
both.) GO TO STEP 1.
21
Slide
Supply
30
50
35
20
40
30
30
Demand 10
45
25
S1
S2
D3
D2
D1
15
22
Slide
Supply
30
50=25
25
35
20
40
30
30
Demand 10
45
0
S1
S2
D3
D2
D1
15
23
Slide
Supply
30
15
25 10
35
20
40
30
30
Demand 0
45
0
S1
S2
D3
D2
D1
15
24
Slide
Supply
30
0
25 15 10
35
20
40
30
30
Demand 0
30
0
S1
S2
D3
D2
D1
15
25
Slide
Supply
0
0
25 15 10
30
35
20
40
30
30
Demand 0
0
0
S1
S2
D3
D2
D1
15
26
Slide
Supply
30
50
25 15 10
30
35
20
40
30
30
Demand 10
45
25
S1
S2
D3
D2
D1
15
27
Slide
Supply
30
50
25 15 10
30
35
20
40
30
30
Demand 10
45
25
S1
S2
D3
D2
D1
15
Total cost = 25 X15 + 25 X30 + 10X20 + 30 X40
= $2225
28
Slide
Transportation Algorithm
 Phase II - Stepping Stone Method
• Step 1: For each unoccupied cell, calculate the
reduced cost by the MODI method described below.
Select the unoccupied cell with the most
negative reduced cost. (For maximization problems
select the unoccupied cell with the largest reduced
cost.) If none, STOP.
• Step 2: For this unoccupied cell generate a stepping
stone path by forming a closed loop with this cell
and occupied cells by drawing connecting
alternating horizontal and vertical lines between
them.
Determine the minimum allocation where a
subtraction is to be made along this path.
29
Slide
Transportation Algorithm
 Phase II - Stepping Stone Method (continued)
• Step 3: Add this allocation to all cells where
additions are to be made, and subtract this allocation
to all cells where subtractions are to be made along
the stepping stone path.
(Note: An occupied cell on the stepping
stone path now becomes 0 (unoccupied). If more
than one cell becomes 0, make only one unoccupied;
make the others occupied with 0's.)
GO TO STEP 1.
30
Slide
Transportation Algorithm
 MODI Method (for obtaining reduced costs)
Associate a number, ui, with each row and vj with
each column.
• Step 1: Set u1 = 0.
• Step 2: Calculate the remaining ui's and vj's by
solving the relationship cij = ui + vj for occupied cells.
• Step 3: For unoccupied cells (i,j), the reduced cost =
cij - ui - vj.
31
Slide
Example: BBC
Building Brick Company (BBC) has orders for 80
tons of bricks at three suburban locations as follows:
Northwood -- 25 tons, Westwood -- 45 tons, and
Eastwood -- 10 tons. BBC has two plants, each of which
can produce 50 tons per week.
How should end of week shipments be made to fill
the above orders given the following delivery cost per
ton:
Northwood Westwood Eastwood
Plant 1 24 30 40
Plant 2 30 40 42
32
Slide
Example: BBC
 Initial Transportation Tableau
Since total supply = 100 and total demand = 80, a
dummy destination is created with demand of 20 and 0
unit costs.
42
40 0
0
40
30
30
Demand
Supply
50
50
20
10
45
25
Dummy
Plant 1
Plant 2
Eastwood
Westwood
Northwood
24
33
Slide
Example: BBC
 Least Cost Starting Procedure
• Iteration 1: Tie for least cost (0), arbitrarily select x14.
Allocate 20. Reduce s1 by 20 to 30 and delete the
Dummy column.
• Iteration 2: Of the remaining cells the least cost is 24
for x11. Allocate 25. Reduce s1 by 25 to 5 and
eliminate the Northwood column.
• Iteration 3: Of the remaining cells the least cost is 30
for x12. Allocate 5. Reduce the Westwood column to
40 and eliminate the Plant 1 row.
• Iteration 4: Since there is only one row with two
cells left, make the final allocations of 40 and 10 to x22
and x23, respectively.
34
Slide
Example: BBC
 Initial tableau
25 5 20
40 10
42
40 0
0
40
30
30
Demand
Supply
50
50
20
10
45
25
Dummy
Plant 1
Plant 2
Eastwood
Westwood
Northwood
24
Total transportation cost is $2770
35
Slide
Example: BBC
 Iteration 1
• MODI Method
1. Set u1 = 0
2. Since u1 + vj = c1j for occupied cells in row 1, then
v1 = 24, v2 = 30, v4 = 0.
3. Since ui + v2 = ci2 for occupied cells in column 2,
then u2 + 30 = 40, hence u2 = 10.
4. Since u2 + vj = c2j for occupied cells in row 2, then
10 + v3 = 42, hence v3 = 32.
36
Slide
Example: BBC
 Iteration 1
• MODI Method (continued)
Calculate the reduced costs (circled numbers on the
next slide) by cij - ui + vj.
Unoccupied Cell Reduced Cost
(1,3) 40 - 0 - 32 = 8
(2,1) 30 - 24 -10 = -4
(2,4) 0 - 10 - 0 = -10
•Since some of the reduced cost are negative, the current
solution is not optimal.
• Cell (2,4) has the most negative; therefore, it will be the
basic variable that must be occupied in the next iteration.
37
Slide
Example: BBC
 Iteration 1 Tableau
25 5
-4
+8 20
40 10 -10
42
40 0
0
40
30
30
vj
ui
10
0
0
32
30
24
Dummy
Plant 1
Plant 2
Eastwood
Westwood
Northwood
24
38
Slide
Example: BBC
 Iteration 1
• Stepping Stone Method
The stepping stone path for cell (2,4) is (2,4), (1,4),
(1,2), (2,2). The allocations in the subtraction cells are 20
and 40, respectively. The minimum is 20, and hence
reallocate 20 along this path. Thus for the next tableau:
x24 = 0 + 20 = 20 (0 is its current allocation)
x14 = 20 - 20 = 0 (blank for the next tableau)
x12 = 5 + 20 = 25
x22 = 40 - 20 = 20
The other occupied cells remain the same.
39
Slide
Example: BBC
25 25
20 10 20
42
40 0
0
40
30
30
Demand
Supply
50
50
20
10
45
25
Dummy
Plant 1
Plant 2
Eastwood
Westwood
Northwood
24
Total transportation cost is $2570 = 2770 – 10 (20)
Reduced cost of
cell (2,4)
New
quantity
40
Slide
Example: BBC
 Iteration 2
• MODI Method
The reduced costs are found by calculating
the ui's and vj's for this tableau.
1. Set u1 = 0.
2. Since u1 + vj = cij for occupied cells in row 1, then
v1 = 24, v2 = 30.
3. Since ui + v2 = ci2 for occupied cells in column 2,
then u2 + 30 = 40, or u2 = 10.
4. Since u2 + vj = c2j for occupied cells in row 2, then
10 + v3 = 42 or v3 = 32; and, 10 + v4 = 0 or v4 = -10.
41
Slide
Example: BBC
 Iteration 2
• MODI Method (continued)
Calculate the reduced costs (circled numbers on the
next slide) by cij - ui + vj.
Unoccupied Cell Reduced Cost
(1,3) 40 - 0 - 32 = 8
(1,4) 0 - 0 - (-10) = 10
(2,1) 30 - 10 - 24 = -4
Since there is still negative reduced cost for cell (2,1),
the solution is not optimal.
Cell (2,1) must be occupied
42
Slide
Example: BBC
 Iteration 2 Tableau
25 25
-4
+8 +10
20 10 20
42
40 0
0
40
30
30
vj
ui
10
0
-6
36
30
24
Dummy
Plant 1
Plant 2
Eastwood
Westwood
Northwood
24
43
Slide
Example: BBC
 Iteration 2
• Stepping Stone Method
The most negative reduced cost is = -4 determined
by x21. The stepping stone path for this cell is
(2,1),(1,1),(1,2),(2,2). The allocations in the subtraction
cells are 25 and 20 respectively. Thus the new solution
is obtained by reallocating 20 on the stepping stone
path. Thus for the next tableau:
x21 = 0 + 20 = 20 (0 is its current allocation)
x11 = 25 - 20 = 5
x12 = 25 + 20 = 45
x22 = 20 - 20 = 0 (blank for the next tableau)
The other occupied cells remain the same.
44
Slide
Example: BBC
5 45
20 10 20
42
40 0
0
40
30
30
Demand
Supply
50
50
20
10
45
25
Dummy
Plant 1
Plant 2
Eastwood
Westwood
Northwood
24
Total cost is $2490 = 2570 - 4(20)
45
Slide
Example: BBC
 Iteration 3
• MODI Method
The reduced costs are found by calculating
the ui's and vj's for this tableau.
1. Set u1 = 0
2. Since u1 + vj = c1j for occupied cells in row 1, then
v1 = 24 and v2 = 30.
3. Since ui + v1 = ci1 for occupied cells in column 2,
then u2 + 24 = 30 or u2 = 6.
4. Since u2 + vj = c2j for occupied cells in row 2, then
6 + v3 = 42 or v3 = 36, and 6 + v4 = 0 or v4 = -6.
46
Slide
Example: BBC
 Iteration 3
• MODI Method (continued)
Calculate the reduced costs (circled numbers on the
next slide) by cij - ui + vj.
Unoccupied Cell Reduced Cost
(1,3) 40 - 0 - 36 = 4
(1,4) 0 - 0 - (-6) = 6
(2,2) 40 - 6 - 30 = 4
Since all the reduced cost are nonnegative, the current
solution is optimal
47
Slide
Example: BBC
 Iteration 3 Tableau
Since all the reduced costs are non-negative, this is
the optimal tableau.
5 45
20
+4 +6
+4 10 20
42
40 0
0
40
30
30
vj
ui
6
0
-6
36
30
24
Dummy
Plant 1
Plant 2
Eastwood
Westwood
Northwood
24
48
Slide
Example: BBC
 Optimal Solution
From To Amount Cost
Plant 1 Northwood 5 120
Plant 1 Westwood 45 1,350
Plant 2 Northwood 20 600
Plant 2 Eastwood 10 420
Total Cost = $2,490

More Related Content

Similar to Lecture (3) _transportation problem31-10-2020.pdf

QABD Transportation problems-UNIT-3.pptx
QABD Transportation problems-UNIT-3.pptxQABD Transportation problems-UNIT-3.pptx
QABD Transportation problems-UNIT-3.pptxhonakjannu789
 
Deepika(14 mba5012) transportation ppt
Deepika(14 mba5012)  transportation pptDeepika(14 mba5012)  transportation ppt
Deepika(14 mba5012) transportation pptDeepika Bansal
 
MODI_SteppingStone.pptx
MODI_SteppingStone.pptxMODI_SteppingStone.pptx
MODI_SteppingStone.pptxVivekSaurabh7
 
Transportation problem
Transportation problemTransportation problem
Transportation problemShubhagata Roy
 
OR CH 3 Transportation and assignment problem.pptx
OR CH 3 Transportation and assignment problem.pptxOR CH 3 Transportation and assignment problem.pptx
OR CH 3 Transportation and assignment problem.pptxAbdiMuceeTube
 
Optimal Solution by MODI Method
Optimal Solution by MODI MethodOptimal Solution by MODI Method
Optimal Solution by MODI MethodDrDeepaChauhan
 
Lecture 7 transportation problem finding initial basic feasible solution
Lecture 7 transportation problem finding initial basic feasible solutionLecture 7 transportation problem finding initial basic feasible solution
Lecture 7 transportation problem finding initial basic feasible solutionAathi Suku
 
Presentation%20on%20Transportation%20and%20Assignment%20Problem.pptx
Presentation%20on%20Transportation%20and%20Assignment%20Problem.pptxPresentation%20on%20Transportation%20and%20Assignment%20Problem.pptx
Presentation%20on%20Transportation%20and%20Assignment%20Problem.pptxIBMRD Ahmednagar
 
Transportation problem ppt
Transportation problem pptTransportation problem ppt
Transportation problem pptDr T.Sivakami
 
transporation problem
transporation problemtransporation problem
transporation problemVivek Lohani
 
transportationoperationresearch-210111101338.pptx
transportationoperationresearch-210111101338.pptxtransportationoperationresearch-210111101338.pptx
transportationoperationresearch-210111101338.pptxProfessionalDeeksha
 
Top school in delhi ncr
Top school in delhi ncrTop school in delhi ncr
Top school in delhi ncrEdhole.com
 
Kuliah teori dan analisis jaringan - linear programming
Kuliah teori dan analisis jaringan - linear programmingKuliah teori dan analisis jaringan - linear programming
Kuliah teori dan analisis jaringan - linear programmingHarun Al-Rasyid Lubis
 
Transportation Problem- Initial Basic Feasible Solution
Transportation Problem- Initial Basic Feasible SolutionTransportation Problem- Initial Basic Feasible Solution
Transportation Problem- Initial Basic Feasible SolutionDrDeepaChauhan
 
Transportation and transshipment problems
Transportation  and transshipment problemsTransportation  and transshipment problems
Transportation and transshipment problemsDr. Adinath Damale
 
A NEW APPROACH FOR SOLVING TRANSPORTATION PROBLEM
A NEW APPROACH FOR SOLVING TRANSPORTATION PROBLEMA NEW APPROACH FOR SOLVING TRANSPORTATION PROBLEM
A NEW APPROACH FOR SOLVING TRANSPORTATION PROBLEMJournal For Research
 

Similar to Lecture (3) _transportation problem31-10-2020.pdf (20)

QABD Transportation problems-UNIT-3.pptx
QABD Transportation problems-UNIT-3.pptxQABD Transportation problems-UNIT-3.pptx
QABD Transportation problems-UNIT-3.pptx
 
Deepika(14 mba5012) transportation ppt
Deepika(14 mba5012)  transportation pptDeepika(14 mba5012)  transportation ppt
Deepika(14 mba5012) transportation ppt
 
MODI_SteppingStone.pptx
MODI_SteppingStone.pptxMODI_SteppingStone.pptx
MODI_SteppingStone.pptx
 
MODI
MODIMODI
MODI
 
Transportation problem
Transportation problemTransportation problem
Transportation problem
 
OR CH 3 Transportation and assignment problem.pptx
OR CH 3 Transportation and assignment problem.pptxOR CH 3 Transportation and assignment problem.pptx
OR CH 3 Transportation and assignment problem.pptx
 
Optimal Solution by MODI Method
Optimal Solution by MODI MethodOptimal Solution by MODI Method
Optimal Solution by MODI Method
 
Lecture 7 transportation problem finding initial basic feasible solution
Lecture 7 transportation problem finding initial basic feasible solutionLecture 7 transportation problem finding initial basic feasible solution
Lecture 7 transportation problem finding initial basic feasible solution
 
Presentation%20on%20Transportation%20and%20Assignment%20Problem.pptx
Presentation%20on%20Transportation%20and%20Assignment%20Problem.pptxPresentation%20on%20Transportation%20and%20Assignment%20Problem.pptx
Presentation%20on%20Transportation%20and%20Assignment%20Problem.pptx
 
Transportation problem ppt
Transportation problem pptTransportation problem ppt
Transportation problem ppt
 
OR PPT.pdf
OR PPT.pdfOR PPT.pdf
OR PPT.pdf
 
transporation problem
transporation problemtransporation problem
transporation problem
 
transportationoperationresearch-210111101338.pptx
transportationoperationresearch-210111101338.pptxtransportationoperationresearch-210111101338.pptx
transportationoperationresearch-210111101338.pptx
 
07. Transportation Problem.pptx
07. Transportation Problem.pptx07. Transportation Problem.pptx
07. Transportation Problem.pptx
 
Top school in delhi ncr
Top school in delhi ncrTop school in delhi ncr
Top school in delhi ncr
 
Kuliah teori dan analisis jaringan - linear programming
Kuliah teori dan analisis jaringan - linear programmingKuliah teori dan analisis jaringan - linear programming
Kuliah teori dan analisis jaringan - linear programming
 
Transportation Problem- Initial Basic Feasible Solution
Transportation Problem- Initial Basic Feasible SolutionTransportation Problem- Initial Basic Feasible Solution
Transportation Problem- Initial Basic Feasible Solution
 
Transportation and transshipment problems
Transportation  and transshipment problemsTransportation  and transshipment problems
Transportation and transshipment problems
 
OR 14 15-unit_2
OR 14 15-unit_2OR 14 15-unit_2
OR 14 15-unit_2
 
A NEW APPROACH FOR SOLVING TRANSPORTATION PROBLEM
A NEW APPROACH FOR SOLVING TRANSPORTATION PROBLEMA NEW APPROACH FOR SOLVING TRANSPORTATION PROBLEM
A NEW APPROACH FOR SOLVING TRANSPORTATION PROBLEM
 

Recently uploaded

Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxRoyAbrique
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Educationpboyjonauth
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3JemimahLaneBuaron
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Celine George
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppCeline George
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
MENTAL STATUS EXAMINATION format.docx
MENTAL     STATUS EXAMINATION format.docxMENTAL     STATUS EXAMINATION format.docx
MENTAL STATUS EXAMINATION format.docxPoojaSen20
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
PSYCHIATRIC History collection FORMAT.pptx
PSYCHIATRIC   History collection FORMAT.pptxPSYCHIATRIC   History collection FORMAT.pptx
PSYCHIATRIC History collection FORMAT.pptxPoojaSen20
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon AUnboundStockton
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxOH TEIK BIN
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAssociation for Project Management
 

Recently uploaded (20)

Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
 
Staff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSDStaff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSD
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website App
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
MENTAL STATUS EXAMINATION format.docx
MENTAL     STATUS EXAMINATION format.docxMENTAL     STATUS EXAMINATION format.docx
MENTAL STATUS EXAMINATION format.docx
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
PSYCHIATRIC History collection FORMAT.pptx
PSYCHIATRIC   History collection FORMAT.pptxPSYCHIATRIC   History collection FORMAT.pptx
PSYCHIATRIC History collection FORMAT.pptx
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon A
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptx
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across Sectors
 

Lecture (3) _transportation problem31-10-2020.pdf

  • 2. 2 Slide Transportation, Assignment, and Transshipment Problems  A network model is one which can be represented by a set of nodes, a set of arcs, and functions (e.g. costs, supplies, demands, etc.) associated with the arcs and/or nodes.  Transportation, assignment, problems of this chapter, as well as the shortest route, minimal spanning tree
  • 3. 3 Slide Transportation, Assignment, and Transshipment Problems  Each models of this chapter (transportation, assignment models) can be formulated as linear programs and solved by general purpose linear programming Algorithms (simplex method).
  • 4. 4 Slide Transportation Problem  The transportation problem seeks to minimize the total shipping costs of transporting goods from m origins or sources (each with a supply si) to n destinations (each with a demand dj), when the unit shipping cost from source, i, to a destination, j, is cij.  The network representation for a transportation problem with two sources and three destinations is given on the next slide.
  • 5. 5 Slide Transportation Problem  Network Representation 1 2 3 1 2 c11 c12 c13 c21 c22 c23 d1 d2 d3 s1 s2 SOURCES DESTINATIONS
  • 6. 6 Slide Transportation Problem  LP Formulation The linear programming formulation in terms of the amounts shipped from the sources to the destinations, xij , can be written as: Min cijxij (total transportation cost) i j s.t. xij < si for each source i (supply constraints) j xij = dj for each destination j (demand constraints) i xij > 0 for all i and j (nonnegativity constraints)
  • 7. 7 Slide Transportation Problem  To solve the transportation problem by its special purpose algorithm, it is required that the sum of the supplies at the sources equal the sum of the demands at the destinations. If the total supply is greater than the total demand, a dummy destination is added with demand equal to the excess supply, and shipping costs from all sources are zero. Similarly, if total supply is less than total demand, a dummy source is added.  When solving a transportation problem by its special purpose algorithm, unacceptable shipping routes are given a cost of +M (a large number).
  • 8. 8 Slide Transportation Problem  A transportation tableau is given below. Each cell represents a shipping route (which is an arc on the network and a decision variable in the LP formulation), and the unit shipping costs are given in an upper right hand box in the cell. Supply 30 50 35 20 40 30 30 Demand 10 45 25 S1 S2 D3 D2 D1 15
  • 9. 9 Slide Problem formulation  The LP model for this problem is as follows: Min Z = 15 X11 + 30 X12 + 20 X13 + 30 X21 + 40X22 + 35X23 S.t. X11 + X12 + X13 ≤ 50 Supply constraints X21 + X22 + X23 ≤ 30 X11 + X21 = 25 X12 + X22 = 45 X13 + X23 = 10 demand constraints X11, …, X23  0
  • 10. 10 Slide Transportation Problem  The transportation problem is solved in two phases: • Phase I -- Obtaining an initial feasible solution • Phase II -- Moving toward optimality  In Phase I, the Minimum-Cost Procedure can be used to establish an initial basic feasible solution without doing numerous iterations of the simplex method.  In Phase II, the Stepping Stone, by using the MODI method for evaluating the reduced costs may be used to move from the initial feasible solution to the optimal one.
  • 11. 11 Slide Initial Tableau  There are many method for finding the initial tableau for the transportation problem which are: 1. Northwest corner 2. Minimum cost of the row 3. Minimum cost of the column 4. Least cost 5. Vogle’s approximation method 6. Russell’s approximation method
  • 12. 12 Slide Northwest corner  Northwest corner: Begin by selecting X11 (that is, start in the northwest corner of the transportation tableau). Therefore, if Xij was the last basic variable (occupied cell) selected, then select Xij+1 (that is, move one column to the right) if source I has any supply remaining. Otherwise, next select Xi+1 j (that is, move one row down). Supply 30 50 35 20 40 30 30 Demand 10 45 25 S1 S2 D3 D2 D1 15
  • 19. 19 Slide  Total cost = 25 X15 + 25 X30 + 20 X40 + 10 X35 = $2275 Supply 30 50 25 25 20 10 35 20 40 30 30 Demand 10 45 25 S1 S2 D3 D2 D1 15
  • 20. 20 Slide Transportation Algorithm  Phase I - Minimum-Cost Method • Step 1: Select the cell with the least cost. Assign to this cell the minimum of its remaining row supply or remaining column demand. • Step 2: Decrease the row and column availabilities by this amount and remove from consideration all other cells in the row or column with zero availability/demand. (If both are simultaneously reduced to 0, assign an allocation of 0 to any other unoccupied cell in the row or column before deleting both.) GO TO STEP 1.
  • 27. 27 Slide Supply 30 50 25 15 10 30 35 20 40 30 30 Demand 10 45 25 S1 S2 D3 D2 D1 15 Total cost = 25 X15 + 25 X30 + 10X20 + 30 X40 = $2225
  • 28. 28 Slide Transportation Algorithm  Phase II - Stepping Stone Method • Step 1: For each unoccupied cell, calculate the reduced cost by the MODI method described below. Select the unoccupied cell with the most negative reduced cost. (For maximization problems select the unoccupied cell with the largest reduced cost.) If none, STOP. • Step 2: For this unoccupied cell generate a stepping stone path by forming a closed loop with this cell and occupied cells by drawing connecting alternating horizontal and vertical lines between them. Determine the minimum allocation where a subtraction is to be made along this path.
  • 29. 29 Slide Transportation Algorithm  Phase II - Stepping Stone Method (continued) • Step 3: Add this allocation to all cells where additions are to be made, and subtract this allocation to all cells where subtractions are to be made along the stepping stone path. (Note: An occupied cell on the stepping stone path now becomes 0 (unoccupied). If more than one cell becomes 0, make only one unoccupied; make the others occupied with 0's.) GO TO STEP 1.
  • 30. 30 Slide Transportation Algorithm  MODI Method (for obtaining reduced costs) Associate a number, ui, with each row and vj with each column. • Step 1: Set u1 = 0. • Step 2: Calculate the remaining ui's and vj's by solving the relationship cij = ui + vj for occupied cells. • Step 3: For unoccupied cells (i,j), the reduced cost = cij - ui - vj.
  • 31. 31 Slide Example: BBC Building Brick Company (BBC) has orders for 80 tons of bricks at three suburban locations as follows: Northwood -- 25 tons, Westwood -- 45 tons, and Eastwood -- 10 tons. BBC has two plants, each of which can produce 50 tons per week. How should end of week shipments be made to fill the above orders given the following delivery cost per ton: Northwood Westwood Eastwood Plant 1 24 30 40 Plant 2 30 40 42
  • 32. 32 Slide Example: BBC  Initial Transportation Tableau Since total supply = 100 and total demand = 80, a dummy destination is created with demand of 20 and 0 unit costs. 42 40 0 0 40 30 30 Demand Supply 50 50 20 10 45 25 Dummy Plant 1 Plant 2 Eastwood Westwood Northwood 24
  • 33. 33 Slide Example: BBC  Least Cost Starting Procedure • Iteration 1: Tie for least cost (0), arbitrarily select x14. Allocate 20. Reduce s1 by 20 to 30 and delete the Dummy column. • Iteration 2: Of the remaining cells the least cost is 24 for x11. Allocate 25. Reduce s1 by 25 to 5 and eliminate the Northwood column. • Iteration 3: Of the remaining cells the least cost is 30 for x12. Allocate 5. Reduce the Westwood column to 40 and eliminate the Plant 1 row. • Iteration 4: Since there is only one row with two cells left, make the final allocations of 40 and 10 to x22 and x23, respectively.
  • 34. 34 Slide Example: BBC  Initial tableau 25 5 20 40 10 42 40 0 0 40 30 30 Demand Supply 50 50 20 10 45 25 Dummy Plant 1 Plant 2 Eastwood Westwood Northwood 24 Total transportation cost is $2770
  • 35. 35 Slide Example: BBC  Iteration 1 • MODI Method 1. Set u1 = 0 2. Since u1 + vj = c1j for occupied cells in row 1, then v1 = 24, v2 = 30, v4 = 0. 3. Since ui + v2 = ci2 for occupied cells in column 2, then u2 + 30 = 40, hence u2 = 10. 4. Since u2 + vj = c2j for occupied cells in row 2, then 10 + v3 = 42, hence v3 = 32.
  • 36. 36 Slide Example: BBC  Iteration 1 • MODI Method (continued) Calculate the reduced costs (circled numbers on the next slide) by cij - ui + vj. Unoccupied Cell Reduced Cost (1,3) 40 - 0 - 32 = 8 (2,1) 30 - 24 -10 = -4 (2,4) 0 - 10 - 0 = -10 •Since some of the reduced cost are negative, the current solution is not optimal. • Cell (2,4) has the most negative; therefore, it will be the basic variable that must be occupied in the next iteration.
  • 37. 37 Slide Example: BBC  Iteration 1 Tableau 25 5 -4 +8 20 40 10 -10 42 40 0 0 40 30 30 vj ui 10 0 0 32 30 24 Dummy Plant 1 Plant 2 Eastwood Westwood Northwood 24
  • 38. 38 Slide Example: BBC  Iteration 1 • Stepping Stone Method The stepping stone path for cell (2,4) is (2,4), (1,4), (1,2), (2,2). The allocations in the subtraction cells are 20 and 40, respectively. The minimum is 20, and hence reallocate 20 along this path. Thus for the next tableau: x24 = 0 + 20 = 20 (0 is its current allocation) x14 = 20 - 20 = 0 (blank for the next tableau) x12 = 5 + 20 = 25 x22 = 40 - 20 = 20 The other occupied cells remain the same.
  • 39. 39 Slide Example: BBC 25 25 20 10 20 42 40 0 0 40 30 30 Demand Supply 50 50 20 10 45 25 Dummy Plant 1 Plant 2 Eastwood Westwood Northwood 24 Total transportation cost is $2570 = 2770 – 10 (20) Reduced cost of cell (2,4) New quantity
  • 40. 40 Slide Example: BBC  Iteration 2 • MODI Method The reduced costs are found by calculating the ui's and vj's for this tableau. 1. Set u1 = 0. 2. Since u1 + vj = cij for occupied cells in row 1, then v1 = 24, v2 = 30. 3. Since ui + v2 = ci2 for occupied cells in column 2, then u2 + 30 = 40, or u2 = 10. 4. Since u2 + vj = c2j for occupied cells in row 2, then 10 + v3 = 42 or v3 = 32; and, 10 + v4 = 0 or v4 = -10.
  • 41. 41 Slide Example: BBC  Iteration 2 • MODI Method (continued) Calculate the reduced costs (circled numbers on the next slide) by cij - ui + vj. Unoccupied Cell Reduced Cost (1,3) 40 - 0 - 32 = 8 (1,4) 0 - 0 - (-10) = 10 (2,1) 30 - 10 - 24 = -4 Since there is still negative reduced cost for cell (2,1), the solution is not optimal. Cell (2,1) must be occupied
  • 42. 42 Slide Example: BBC  Iteration 2 Tableau 25 25 -4 +8 +10 20 10 20 42 40 0 0 40 30 30 vj ui 10 0 -6 36 30 24 Dummy Plant 1 Plant 2 Eastwood Westwood Northwood 24
  • 43. 43 Slide Example: BBC  Iteration 2 • Stepping Stone Method The most negative reduced cost is = -4 determined by x21. The stepping stone path for this cell is (2,1),(1,1),(1,2),(2,2). The allocations in the subtraction cells are 25 and 20 respectively. Thus the new solution is obtained by reallocating 20 on the stepping stone path. Thus for the next tableau: x21 = 0 + 20 = 20 (0 is its current allocation) x11 = 25 - 20 = 5 x12 = 25 + 20 = 45 x22 = 20 - 20 = 0 (blank for the next tableau) The other occupied cells remain the same.
  • 44. 44 Slide Example: BBC 5 45 20 10 20 42 40 0 0 40 30 30 Demand Supply 50 50 20 10 45 25 Dummy Plant 1 Plant 2 Eastwood Westwood Northwood 24 Total cost is $2490 = 2570 - 4(20)
  • 45. 45 Slide Example: BBC  Iteration 3 • MODI Method The reduced costs are found by calculating the ui's and vj's for this tableau. 1. Set u1 = 0 2. Since u1 + vj = c1j for occupied cells in row 1, then v1 = 24 and v2 = 30. 3. Since ui + v1 = ci1 for occupied cells in column 2, then u2 + 24 = 30 or u2 = 6. 4. Since u2 + vj = c2j for occupied cells in row 2, then 6 + v3 = 42 or v3 = 36, and 6 + v4 = 0 or v4 = -6.
  • 46. 46 Slide Example: BBC  Iteration 3 • MODI Method (continued) Calculate the reduced costs (circled numbers on the next slide) by cij - ui + vj. Unoccupied Cell Reduced Cost (1,3) 40 - 0 - 36 = 4 (1,4) 0 - 0 - (-6) = 6 (2,2) 40 - 6 - 30 = 4 Since all the reduced cost are nonnegative, the current solution is optimal
  • 47. 47 Slide Example: BBC  Iteration 3 Tableau Since all the reduced costs are non-negative, this is the optimal tableau. 5 45 20 +4 +6 +4 10 20 42 40 0 0 40 30 30 vj ui 6 0 -6 36 30 24 Dummy Plant 1 Plant 2 Eastwood Westwood Northwood 24
  • 48. 48 Slide Example: BBC  Optimal Solution From To Amount Cost Plant 1 Northwood 5 120 Plant 1 Westwood 45 1,350 Plant 2 Northwood 20 600 Plant 2 Eastwood 10 420 Total Cost = $2,490