SlideShare a Scribd company logo
1 of 27
Presentation Topics-
Optimality test, MODI,
Stepping Stone Method
Group 3 Members-
Harsh, Nishant, Sakshi,
Shivansh, Soumya
Submitted To-
Dr. Harsh Pradhan Sir
Table of Contents
1. Introduction
2. MODI
3. Stepping Stone
4. Degeneracy
5. LPP Transformation
6. R code-Optimal solution
7. lp.transport function
8. Codes
Test for Optimality
● Optimality is the condition where there is no other
set of transportation routes that will further reduce
the transportation cost.
● To test optimality,Evaluate each unoccupied cell
in the transportation table in terms of an
opportunity of reducing total transportation cost.
How do the Modi and stepping stone methods differ?
In the stepping stone method, we have to draw as many closed paths as equal to the unoccupied
cells for their evaluation. To the contrary, in MODI method, only closed path for the unoccupied cell
with highest opportunity cost is drawn.
Application of these tests-
Both of these tests are used to find the optimal solution but the prior condition is to have a feasible solution
to use these test.
So, one can use VAM/NW/LC method to find feasible solution solution first and then check for the
optimality.
Techniques of
Optimality
MODI/U-V
Method
Stepping
Stone Method
Modified Distribution(MODI)
Transportation Problem
Step 1- Calculate Initial Basic Feasible Solution(IBFS) using
any of the three methods
(m+n-1 = 6 = No. of allocated cells) So, Solution is non-degenerate
Transportation cost = 19x5+10x2+40x7+60x2+8x8+20x10 = Rs 779
Step 2- Find out set of ui & vj for each rows and column
satisfying Cij,=ui+ vj for each occupied cell
Assign v4= 0, we get
u1+ v4 = C14 — u1 + 0 = 10 or u1= 10
u2+ v4 = C24 — u2 + 0 = 60 or u2= 60
u3+ v4 = C34 — u3 + 0 = 20 or u3= 20
u1+ v1 = C11 — 10 +v1 = 19 or v1= 9
u3+ v2 = C32 — 20 +v2= 8 or v2= -12
u2 + v3 = C23 — 60 +v3= 40 or v3= -20
Step 3 - Find the cell evaluations dij = Cij – (ui + vj) for each
unoccupied cell (i,j)
d12= 30-[10+(-12)] = 32
d13= 50-[10+(-20)] = 60
d21= 70-[60+9] = 1
d22= 30-[60+(-12)]=-18
d31= 40-[20+9] = 11
d33 = 70-[20-(-20)] = 70
If all the values of dij >0 then solution is optimum. If any one value of dij <0 then solution
is not optimum. Then we go to step 4
Step-4 Making loop
Select the empty cell having the most
negative value of dij.
From the cell drawn a closed loop by
drawing horizontal and vertical lines and
take a turn from allocated cells only.
Step 5 - Making new iteration
Now chose the least negative
occupied value from traced path
and make new iteration by adding
least negative value where there
is plus and subtract least negative
value where there is minus in the
traced path and go to step 2
again.
Min(2,8) =2
Step 5 - New Iteration
Now chose the least negative
occupied value from traced path
and make new iteration by
adding least negative value
where there is plus and subtract
least negative value where there
is minus in the traced path and
go to step 2 again.
Min(2,8) =2
Step 6: Calculate ui+vj = Cij for the occupied cells again
Assume u2= 0
C23=u2+v3=40 —> 0+v3= 40 —> v3= 40
C22=u2+v2=30 —> 0+v2= 30 —> v2= 30
C32=u3+v2=8 —> u3+30= 8 —> u3= -22
C34=u3+v4=20 —> -22+v4= 20 —> v4= 42
C14=u1+v4=10 —> u1+42= 10 —> u1= -32
C11=u1+v1=19 —> -32+v1= 19 —> v1= 51
u1 =-32
u2=0
u3=-22
v1=13 v2=30 v3=40 v4=42
Calculate dij = Cij – (ui + vj) for unoccupied cells
d12= 30-[30+(-32)] = 32
d13= 50-[-32+40] = 42
d21= 70-(0+51) = 19
d24=60-(0+42) = 18
d31=40-(-22+51) = 11
d33=70-(-22+40) = 52
Transportation Cost = 19x5+30x2+10x2+40x7+8x6+20x12 = Rs 743
Stepping Stone
Step 1:Calculate Initial Basic Feasible Solution(IBFS) using any of
the three methods (Vogel’s)
(m+n-1 = 6 = No. of allocated cells) So, Solution is non-degenerate
Transportation cost = 19x5+10x2+40x7+60x2+8x8+20x10 = Rs 779
Step 2: Now make a closed loop for all unoccupied cells to
calculate net change for unoccupied cells
C(1,2) = 30-8+20-10 = 32
C(1,3) = 50-40+60-10 = 60
C(2,1) = 70-60+10-19 = 1
C(2,2) = 30-8+20-60 = -18
C(3,1) = 40 -20+10-19 = 11
C(3,3) = 70-20+60-40 = 70
If C(i ,j) > 0 , solution is optimum but
here C(2,2) is negative.
19 5 30 + 50 10 - 2
70 30 40 7 60 2
40 8 - 8 70 20 + 10
Step 3:
Choose cell (2,2) and make a
closed loop and assign alternate
plus minus sign at turning point
Step-4
Now choose the least negative
allocated value from the traced path and
make a new iteration.
Step-5 Now, repeat step 2.
C(1,2)= 30-10+20-8 = 32
C(1,3)= 50-40+30-8+20-10 = 42
C(2,1) = 70-30+8-20+10-19 = 19
C(2,4)= 60-20+8-30 = 18
C(3,1)= 40-20+10-19 = 11
C(3,3)= 70-8+30-40 = 52
Since, all values of C(i,j)>0, the solution is optimum.
Transportation cost = 19x5+30x2+10x2+8x6+40x7+20x12= Rs.743
Degeneracy in transportation problem
Phase 1 : Find the initial basic feasible solution using NWCN , Least cost or
VAM.
Phase 2: Optimising the basic feasible solution using UV Method.
Step 1: Check whether m+n-1 = (no. of allocated cell) , If no , go to step 2; If yes
, go to step 3.
Step 2: Convert the necessary no. of
unallocated cell into allocated cell to
satisfy the above condition.
● starting from the least value of
the unoccupied cell
● There should be no closed loop
formation.
● Select that cell as a new
allocated cell and assign ‘ε’.
60
20
ε
80
50
Step 3: Calculate Cij= ui + vj ,
assume v3=0
● Calculate dij= Cij - (ui+vj)
d11= 8-(-6+3) = 11
d12= 7-(-2+3) = 6
d22 =8-(9-2) =1
d31 =11-(-6+5) =12
Since all dij >0 ,solution is optimum.
Transportation cost = 3x50 + 3x60 + 9x20 + 3x80 + 5xε = 750 + 5ε = 750
LPP TRANSFORMATION
Let, F1 transport a units to warehouse W1,
F1 transport b units to warehouse W2,
F1 transport c units to warehouse W3,
F1 transport d units to warehouse W4,
F2 transport e units to warehouse W1,
F2 transport f units to warehouse W2,
F2 transport g units to warehouse W3,
F2 transport h units to warehouse W4,
F3 transport k units to warehouse W1,
F3 transport l units to warehouse W2,
F3 transport m units to warehouse W3, and
F3 transport n units to warehouse W4
LPP TRANSFORMATION
Equations become like-
a+b+c+d <= 7
e+f+g+h <= 9
k+l+m+n <= 18
a+e+k = 5
b+f+l = 8
c+g+m = 7
d+h+n = 14
There are 8 equations and 12 variables.
We need to minimize our objective function, Z=
19a+30b+50c+10d+70e+30f+40g+60h+40k+8l+70m+20n
EXCEL LINK-
R CODES FOR TRANSPORTATION PROBLEM (OPTIMAL SOL.)
# Import lpSolve package
library(lpSolve)
# Set transportation costs matrix
costs <- matrix(c(19, 30, 50, 10,
70, 30, 40, 60,
40, 8 , 70, 20), nrow = 3, byrow = TRUE)
# Set Inequality/equality signs for factories
row.signs <- rep("<=", 3)
# Set right hand side coefficients for factories
row.rhs <- c(7, 9, 18)
# Set Inequality/equality signs for warehouses
col.signs <- rep("=", 4)
# Set right hand side coefficients for warehouses
col.rhs <- c(5, 8, 7, 14)
# Final value (z)
lp.transport(costs, "min", row.signs, row.rhs, col.signs, col.rhs)
# Variables final values
lp.transport(costs, "min", row.signs, row.rhs, col.signs,
col.rhs)$solution
#solution matrix
sol = lp.transport(costs, "min", row.signs, row.rhs, col.signs,
col.rhs)$solution
#set column names and row names
rownames(sol) <- c("Factory 1", "Factory 2", "Factory 3")
colnames(sol) <- c("Warehouse 1", "Warehouse 2",
"Warehouse 3", "Warehouse 4")
sol
lp.transport Function
https://rdrr.io/cran/lpSolve/src/R/lp.transport.R
CODES
MODI METHOD IN C++
STEPPING STONE METHOD IN C++

More Related Content

Similar to MODI_SteppingStone.pptx

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
 
VAM and MODI Method in Solving Transportation Problems
VAM and MODI Method in Solving Transportation ProblemsVAM and MODI Method in Solving Transportation Problems
VAM and MODI Method in Solving Transportation ProblemsKarlo Maniego
 
ADVANCED ALGORITHMS-UNIT-3-Final.ppt
ADVANCED   ALGORITHMS-UNIT-3-Final.pptADVANCED   ALGORITHMS-UNIT-3-Final.ppt
ADVANCED ALGORITHMS-UNIT-3-Final.pptssuser702532
 
Modified distribution method (modi method)
Modified distribution method (modi method)Modified distribution method (modi method)
Modified distribution method (modi method)Dinesh Suthar
 
Equation and inequalities
Equation and inequalitiesEquation and inequalities
Equation and inequalitiesRione Drevale
 
Transportation and transshipment problems
Transportation  and transshipment problemsTransportation  and transshipment problems
Transportation and transshipment problemsDr. Adinath Damale
 
Data structure and algorithm
Data structure and algorithmData structure and algorithm
Data structure and algorithmvanmathy1
 
2014 st josephs geelong spec maths
2014 st josephs geelong spec maths2014 st josephs geelong spec maths
2014 st josephs geelong spec mathsAndrew Smith
 
Episode 50 : Simulation Problem Solution Approaches Convergence Techniques S...
Episode 50 :  Simulation Problem Solution Approaches Convergence Techniques S...Episode 50 :  Simulation Problem Solution Approaches Convergence Techniques S...
Episode 50 : Simulation Problem Solution Approaches Convergence Techniques S...SAJJAD KHUDHUR ABBAS
 
MAT060_24 Techniques of Integration (part 1).pdf
MAT060_24 Techniques of Integration (part 1).pdfMAT060_24 Techniques of Integration (part 1).pdf
MAT060_24 Techniques of Integration (part 1).pdfNaomieAbaoDulayba
 
Modi Method to find least cost in Trasportation Problem
Modi Method to find least cost in Trasportation ProblemModi Method to find least cost in Trasportation Problem
Modi Method to find least cost in Trasportation Problemmkmanik
 
Unit.5. transportation and assignment problems
Unit.5. transportation and assignment problemsUnit.5. transportation and assignment problems
Unit.5. transportation and assignment problemsDagnaygebawGoshme
 
unit2 linear programming problem in .pdf
unit2 linear programming problem in .pdfunit2 linear programming problem in .pdf
unit2 linear programming problem in .pdfbizuayehuadmasu1
 
unit-5 Transportation problem in operation research ppt.pdf
unit-5 Transportation problem in operation research ppt.pdfunit-5 Transportation problem in operation research ppt.pdf
unit-5 Transportation problem in operation research ppt.pdfbizuayehuadmasu1
 
Solutions manual for engineering mechanics dynamics 13th edition by hibbeler
Solutions manual for engineering mechanics dynamics 13th edition by hibbelerSolutions manual for engineering mechanics dynamics 13th edition by hibbeler
Solutions manual for engineering mechanics dynamics 13th edition by hibbelertable3252
 
College algebra real mathematics real people 7th edition larson solutions manual
College algebra real mathematics real people 7th edition larson solutions manualCollege algebra real mathematics real people 7th edition larson solutions manual
College algebra real mathematics real people 7th edition larson solutions manualJohnstonTBL
 

Similar to MODI_SteppingStone.pptx (20)

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
 
VAM and MODI Method in Solving Transportation Problems
VAM and MODI Method in Solving Transportation ProblemsVAM and MODI Method in Solving Transportation Problems
VAM and MODI Method in Solving Transportation Problems
 
ADVANCED ALGORITHMS-UNIT-3-Final.ppt
ADVANCED   ALGORITHMS-UNIT-3-Final.pptADVANCED   ALGORITHMS-UNIT-3-Final.ppt
ADVANCED ALGORITHMS-UNIT-3-Final.ppt
 
Modi method
Modi methodModi method
Modi method
 
Modified distribution method (modi method)
Modified distribution method (modi method)Modified distribution method (modi method)
Modified distribution method (modi method)
 
Equation and inequalities
Equation and inequalitiesEquation and inequalities
Equation and inequalities
 
Maths 301 key_sem_1_2007_2008
Maths 301 key_sem_1_2007_2008Maths 301 key_sem_1_2007_2008
Maths 301 key_sem_1_2007_2008
 
Transportation and transshipment problems
Transportation  and transshipment problemsTransportation  and transshipment problems
Transportation and transshipment problems
 
Data structure and algorithm
Data structure and algorithmData structure and algorithm
Data structure and algorithm
 
2014 st josephs geelong spec maths
2014 st josephs geelong spec maths2014 st josephs geelong spec maths
2014 st josephs geelong spec maths
 
Episode 50 : Simulation Problem Solution Approaches Convergence Techniques S...
Episode 50 :  Simulation Problem Solution Approaches Convergence Techniques S...Episode 50 :  Simulation Problem Solution Approaches Convergence Techniques S...
Episode 50 : Simulation Problem Solution Approaches Convergence Techniques S...
 
MAT060_24 Techniques of Integration (part 1).pdf
MAT060_24 Techniques of Integration (part 1).pdfMAT060_24 Techniques of Integration (part 1).pdf
MAT060_24 Techniques of Integration (part 1).pdf
 
Calculo Diferencial
Calculo DiferencialCalculo Diferencial
Calculo Diferencial
 
Modi Method to find least cost in Trasportation Problem
Modi Method to find least cost in Trasportation ProblemModi Method to find least cost in Trasportation Problem
Modi Method to find least cost in Trasportation Problem
 
Unit.5. transportation and assignment problems
Unit.5. transportation and assignment problemsUnit.5. transportation and assignment problems
Unit.5. transportation and assignment problems
 
unit2 linear programming problem in .pdf
unit2 linear programming problem in .pdfunit2 linear programming problem in .pdf
unit2 linear programming problem in .pdf
 
unit-5 Transportation problem in operation research ppt.pdf
unit-5 Transportation problem in operation research ppt.pdfunit-5 Transportation problem in operation research ppt.pdf
unit-5 Transportation problem in operation research ppt.pdf
 
Complex Integral
Complex IntegralComplex Integral
Complex Integral
 
Solutions manual for engineering mechanics dynamics 13th edition by hibbeler
Solutions manual for engineering mechanics dynamics 13th edition by hibbelerSolutions manual for engineering mechanics dynamics 13th edition by hibbeler
Solutions manual for engineering mechanics dynamics 13th edition by hibbeler
 
College algebra real mathematics real people 7th edition larson solutions manual
College algebra real mathematics real people 7th edition larson solutions manualCollege algebra real mathematics real people 7th edition larson solutions manual
College algebra real mathematics real people 7th edition larson solutions manual
 

More from VivekSaurabh7

Hungarian Assignment Problem
Hungarian Assignment ProblemHungarian Assignment Problem
Hungarian Assignment ProblemVivekSaurabh7
 
Transportation Problem
Transportation ProblemTransportation Problem
Transportation ProblemVivekSaurabh7
 
OR PPT 280322 maximin final - nikhil tiwari.pptx
OR PPT 280322 maximin final - nikhil tiwari.pptxOR PPT 280322 maximin final - nikhil tiwari.pptx
OR PPT 280322 maximin final - nikhil tiwari.pptxVivekSaurabh7
 
STRATERGIES TO IMPROVE BUSINESS COMMUNICATION.pptx
STRATERGIES TO IMPROVE BUSINESS COMMUNICATION.pptxSTRATERGIES TO IMPROVE BUSINESS COMMUNICATION.pptx
STRATERGIES TO IMPROVE BUSINESS COMMUNICATION.pptxVivekSaurabh7
 

More from VivekSaurabh7 (9)

Hungarian Assignment Problem
Hungarian Assignment ProblemHungarian Assignment Problem
Hungarian Assignment Problem
 
Transportation Problem
Transportation ProblemTransportation Problem
Transportation Problem
 
MODI
MODIMODI
MODI
 
Operations REsearch
Operations REsearchOperations REsearch
Operations REsearch
 
OR PPT 280322 maximin final - nikhil tiwari.pptx
OR PPT 280322 maximin final - nikhil tiwari.pptxOR PPT 280322 maximin final - nikhil tiwari.pptx
OR PPT 280322 maximin final - nikhil tiwari.pptx
 
EM GROUP 1.pptx
EM GROUP 1.pptxEM GROUP 1.pptx
EM GROUP 1.pptx
 
STRATERGIES TO IMPROVE BUSINESS COMMUNICATION.pptx
STRATERGIES TO IMPROVE BUSINESS COMMUNICATION.pptxSTRATERGIES TO IMPROVE BUSINESS COMMUNICATION.pptx
STRATERGIES TO IMPROVE BUSINESS COMMUNICATION.pptx
 
Job offer.pptx
Job offer.pptxJob offer.pptx
Job offer.pptx
 
EM-10.pptx
EM-10.pptxEM-10.pptx
EM-10.pptx
 

Recently uploaded

Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)Suman Mia
 
Coefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxCoefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxAsutosh Ranjan
 
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).pptssuser5c9d4b1
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSKurinjimalarL3
 
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Call Girls in Nagpur High Profile
 
Introduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxIntroduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxupamatechverse
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Dr.Costas Sachpazis
 
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Dr.Costas Sachpazis
 
Processing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxProcessing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxpranjaldaimarysona
 
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxpurnimasatapathy1234
 
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Serviceranjana rawat
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escortsranjana rawat
 
Porous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingPorous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingrakeshbaidya232001
 
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSMANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSSIVASHANKAR N
 
Extrusion Processes and Their Limitations
Extrusion Processes and Their LimitationsExtrusion Processes and Their Limitations
Extrusion Processes and Their Limitations120cr0395
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCall Girls in Nagpur High Profile
 
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINEMANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINESIVASHANKAR N
 
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...Call Girls in Nagpur High Profile
 

Recently uploaded (20)

Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
 
Coefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxCoefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptx
 
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
 
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
 
Introduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxIntroduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptx
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
 
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
 
Processing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxProcessing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptx
 
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptx
 
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
 
Porous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingPorous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writing
 
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSMANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
 
Extrusion Processes and Their Limitations
Extrusion Processes and Their LimitationsExtrusion Processes and Their Limitations
Extrusion Processes and Their Limitations
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
 
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINEMANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
 
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
 
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
 

MODI_SteppingStone.pptx

  • 1. Presentation Topics- Optimality test, MODI, Stepping Stone Method Group 3 Members- Harsh, Nishant, Sakshi, Shivansh, Soumya Submitted To- Dr. Harsh Pradhan Sir
  • 2. Table of Contents 1. Introduction 2. MODI 3. Stepping Stone 4. Degeneracy 5. LPP Transformation 6. R code-Optimal solution 7. lp.transport function 8. Codes
  • 3. Test for Optimality ● Optimality is the condition where there is no other set of transportation routes that will further reduce the transportation cost. ● To test optimality,Evaluate each unoccupied cell in the transportation table in terms of an opportunity of reducing total transportation cost.
  • 4. How do the Modi and stepping stone methods differ? In the stepping stone method, we have to draw as many closed paths as equal to the unoccupied cells for their evaluation. To the contrary, in MODI method, only closed path for the unoccupied cell with highest opportunity cost is drawn. Application of these tests- Both of these tests are used to find the optimal solution but the prior condition is to have a feasible solution to use these test. So, one can use VAM/NW/LC method to find feasible solution solution first and then check for the optimality. Techniques of Optimality MODI/U-V Method Stepping Stone Method
  • 6. Step 1- Calculate Initial Basic Feasible Solution(IBFS) using any of the three methods (m+n-1 = 6 = No. of allocated cells) So, Solution is non-degenerate Transportation cost = 19x5+10x2+40x7+60x2+8x8+20x10 = Rs 779
  • 7. Step 2- Find out set of ui & vj for each rows and column satisfying Cij,=ui+ vj for each occupied cell Assign v4= 0, we get u1+ v4 = C14 — u1 + 0 = 10 or u1= 10 u2+ v4 = C24 — u2 + 0 = 60 or u2= 60 u3+ v4 = C34 — u3 + 0 = 20 or u3= 20 u1+ v1 = C11 — 10 +v1 = 19 or v1= 9 u3+ v2 = C32 — 20 +v2= 8 or v2= -12 u2 + v3 = C23 — 60 +v3= 40 or v3= -20
  • 8. Step 3 - Find the cell evaluations dij = Cij – (ui + vj) for each unoccupied cell (i,j) d12= 30-[10+(-12)] = 32 d13= 50-[10+(-20)] = 60 d21= 70-[60+9] = 1 d22= 30-[60+(-12)]=-18 d31= 40-[20+9] = 11 d33 = 70-[20-(-20)] = 70 If all the values of dij >0 then solution is optimum. If any one value of dij <0 then solution is not optimum. Then we go to step 4
  • 9. Step-4 Making loop Select the empty cell having the most negative value of dij. From the cell drawn a closed loop by drawing horizontal and vertical lines and take a turn from allocated cells only.
  • 10. Step 5 - Making new iteration Now chose the least negative occupied value from traced path and make new iteration by adding least negative value where there is plus and subtract least negative value where there is minus in the traced path and go to step 2 again. Min(2,8) =2
  • 11. Step 5 - New Iteration Now chose the least negative occupied value from traced path and make new iteration by adding least negative value where there is plus and subtract least negative value where there is minus in the traced path and go to step 2 again. Min(2,8) =2
  • 12. Step 6: Calculate ui+vj = Cij for the occupied cells again Assume u2= 0 C23=u2+v3=40 —> 0+v3= 40 —> v3= 40 C22=u2+v2=30 —> 0+v2= 30 —> v2= 30 C32=u3+v2=8 —> u3+30= 8 —> u3= -22 C34=u3+v4=20 —> -22+v4= 20 —> v4= 42 C14=u1+v4=10 —> u1+42= 10 —> u1= -32 C11=u1+v1=19 —> -32+v1= 19 —> v1= 51 u1 =-32 u2=0 u3=-22 v1=13 v2=30 v3=40 v4=42
  • 13. Calculate dij = Cij – (ui + vj) for unoccupied cells d12= 30-[30+(-32)] = 32 d13= 50-[-32+40] = 42 d21= 70-(0+51) = 19 d24=60-(0+42) = 18 d31=40-(-22+51) = 11 d33=70-(-22+40) = 52 Transportation Cost = 19x5+30x2+10x2+40x7+8x6+20x12 = Rs 743
  • 14. Stepping Stone Step 1:Calculate Initial Basic Feasible Solution(IBFS) using any of the three methods (Vogel’s) (m+n-1 = 6 = No. of allocated cells) So, Solution is non-degenerate Transportation cost = 19x5+10x2+40x7+60x2+8x8+20x10 = Rs 779
  • 15. Step 2: Now make a closed loop for all unoccupied cells to calculate net change for unoccupied cells C(1,2) = 30-8+20-10 = 32 C(1,3) = 50-40+60-10 = 60 C(2,1) = 70-60+10-19 = 1 C(2,2) = 30-8+20-60 = -18 C(3,1) = 40 -20+10-19 = 11 C(3,3) = 70-20+60-40 = 70 If C(i ,j) > 0 , solution is optimum but here C(2,2) is negative. 19 5 30 + 50 10 - 2 70 30 40 7 60 2 40 8 - 8 70 20 + 10
  • 16. Step 3: Choose cell (2,2) and make a closed loop and assign alternate plus minus sign at turning point
  • 17. Step-4 Now choose the least negative allocated value from the traced path and make a new iteration.
  • 18. Step-5 Now, repeat step 2. C(1,2)= 30-10+20-8 = 32 C(1,3)= 50-40+30-8+20-10 = 42 C(2,1) = 70-30+8-20+10-19 = 19 C(2,4)= 60-20+8-30 = 18 C(3,1)= 40-20+10-19 = 11 C(3,3)= 70-8+30-40 = 52 Since, all values of C(i,j)>0, the solution is optimum. Transportation cost = 19x5+30x2+10x2+8x6+40x7+20x12= Rs.743
  • 19. Degeneracy in transportation problem Phase 1 : Find the initial basic feasible solution using NWCN , Least cost or VAM. Phase 2: Optimising the basic feasible solution using UV Method. Step 1: Check whether m+n-1 = (no. of allocated cell) , If no , go to step 2; If yes , go to step 3.
  • 20. Step 2: Convert the necessary no. of unallocated cell into allocated cell to satisfy the above condition. ● starting from the least value of the unoccupied cell ● There should be no closed loop formation. ● Select that cell as a new allocated cell and assign ‘ε’. 60 20 ε 80 50
  • 21. Step 3: Calculate Cij= ui + vj , assume v3=0 ● Calculate dij= Cij - (ui+vj) d11= 8-(-6+3) = 11 d12= 7-(-2+3) = 6 d22 =8-(9-2) =1 d31 =11-(-6+5) =12 Since all dij >0 ,solution is optimum. Transportation cost = 3x50 + 3x60 + 9x20 + 3x80 + 5xε = 750 + 5ε = 750
  • 22.
  • 23. LPP TRANSFORMATION Let, F1 transport a units to warehouse W1, F1 transport b units to warehouse W2, F1 transport c units to warehouse W3, F1 transport d units to warehouse W4, F2 transport e units to warehouse W1, F2 transport f units to warehouse W2, F2 transport g units to warehouse W3, F2 transport h units to warehouse W4, F3 transport k units to warehouse W1, F3 transport l units to warehouse W2, F3 transport m units to warehouse W3, and F3 transport n units to warehouse W4
  • 24. LPP TRANSFORMATION Equations become like- a+b+c+d <= 7 e+f+g+h <= 9 k+l+m+n <= 18 a+e+k = 5 b+f+l = 8 c+g+m = 7 d+h+n = 14 There are 8 equations and 12 variables. We need to minimize our objective function, Z= 19a+30b+50c+10d+70e+30f+40g+60h+40k+8l+70m+20n EXCEL LINK-
  • 25. R CODES FOR TRANSPORTATION PROBLEM (OPTIMAL SOL.) # Import lpSolve package library(lpSolve) # Set transportation costs matrix costs <- matrix(c(19, 30, 50, 10, 70, 30, 40, 60, 40, 8 , 70, 20), nrow = 3, byrow = TRUE) # Set Inequality/equality signs for factories row.signs <- rep("<=", 3) # Set right hand side coefficients for factories row.rhs <- c(7, 9, 18) # Set Inequality/equality signs for warehouses col.signs <- rep("=", 4) # Set right hand side coefficients for warehouses col.rhs <- c(5, 8, 7, 14) # Final value (z) lp.transport(costs, "min", row.signs, row.rhs, col.signs, col.rhs) # Variables final values lp.transport(costs, "min", row.signs, row.rhs, col.signs, col.rhs)$solution #solution matrix sol = lp.transport(costs, "min", row.signs, row.rhs, col.signs, col.rhs)$solution #set column names and row names rownames(sol) <- c("Factory 1", "Factory 2", "Factory 3") colnames(sol) <- c("Warehouse 1", "Warehouse 2", "Warehouse 3", "Warehouse 4") sol
  • 27. CODES MODI METHOD IN C++ STEPPING STONE METHOD IN C++