SlideShare a Scribd company logo
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

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
Karlo Maniego
 
ADVANCED ALGORITHMS-UNIT-3-Final.ppt
ADVANCED   ALGORITHMS-UNIT-3-Final.pptADVANCED   ALGORITHMS-UNIT-3-Final.ppt
ADVANCED ALGORITHMS-UNIT-3-Final.ppt
ssuser702532
 
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 problems
Dr. Adinath Damale
 
Data structure and algorithm
Data structure and algorithmData structure and algorithm
Data structure and algorithm
vanmathy1
 
2014 st josephs geelong spec maths
2014 st josephs geelong spec maths2014 st josephs geelong spec maths
2014 st josephs geelong spec maths
Andrew 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).pdf
NaomieAbaoDulayba
 
Calculo Diferencial
Calculo DiferencialCalculo Diferencial
Calculo Diferencial
Juan Alejandro Alvarez Agudelo
 
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
mkmanik
 
unit2 linear programming problem in .pdf
unit2 linear programming problem in .pdfunit2 linear programming problem in .pdf
unit2 linear programming problem in .pdf
bizuayehuadmasu1
 
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
bizuayehuadmasu1
 
Unit.5. transportation and assignment problems
Unit.5. transportation and assignment problemsUnit.5. transportation and assignment problems
Unit.5. transportation and assignment problems
DagnaygebawGoshme
 
Complex Integral
Complex IntegralComplex Integral
Complex Integral
HalmatJalalHassan
 
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
table3252
 
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
JohnstonTBL
 
Question bank Engineering Mathematics- ii
Question bank Engineering Mathematics- ii Question bank Engineering Mathematics- ii
Question bank Engineering Mathematics- ii
Mohammad Imran
 

Similar to MODI_SteppingStone.pptx (20)

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
 
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
 
Unit.5. transportation and assignment problems
Unit.5. transportation and assignment problemsUnit.5. transportation and assignment problems
Unit.5. transportation and assignment problems
 
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
 
Question bank Engineering Mathematics- ii
Question bank Engineering Mathematics- ii Question bank Engineering Mathematics- ii
Question bank Engineering Mathematics- ii
 

More from VivekSaurabh7

Hungarian Assignment Problem
Hungarian Assignment ProblemHungarian Assignment Problem
Hungarian Assignment Problem
VivekSaurabh7
 
Transportation Problem
Transportation ProblemTransportation Problem
Transportation Problem
VivekSaurabh7
 
MODI
MODIMODI
Operations REsearch
Operations REsearchOperations REsearch
Operations REsearch
VivekSaurabh7
 
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
VivekSaurabh7
 
EM GROUP 1.pptx
EM GROUP 1.pptxEM GROUP 1.pptx
EM GROUP 1.pptx
VivekSaurabh7
 
STRATERGIES TO IMPROVE BUSINESS COMMUNICATION.pptx
STRATERGIES TO IMPROVE BUSINESS COMMUNICATION.pptxSTRATERGIES TO IMPROVE BUSINESS COMMUNICATION.pptx
STRATERGIES TO IMPROVE BUSINESS COMMUNICATION.pptx
VivekSaurabh7
 
Job offer.pptx
Job offer.pptxJob offer.pptx
Job offer.pptx
VivekSaurabh7
 
EM-10.pptx
EM-10.pptxEM-10.pptx
EM-10.pptx
VivekSaurabh7
 

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

Fundamentals of Electric Drives and its applications.pptx
Fundamentals of Electric Drives and its applications.pptxFundamentals of Electric Drives and its applications.pptx
Fundamentals of Electric Drives and its applications.pptx
manasideore6
 
ethical hacking-mobile hacking methods.ppt
ethical hacking-mobile hacking methods.pptethical hacking-mobile hacking methods.ppt
ethical hacking-mobile hacking methods.ppt
Jayaprasanna4
 
Runway Orientation Based on the Wind Rose Diagram.pptx
Runway Orientation Based on the Wind Rose Diagram.pptxRunway Orientation Based on the Wind Rose Diagram.pptx
Runway Orientation Based on the Wind Rose Diagram.pptx
SupreethSP4
 
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdf
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdfGoverning Equations for Fundamental Aerodynamics_Anderson2010.pdf
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdf
WENKENLI1
 
ML for identifying fraud using open blockchain data.pptx
ML for identifying fraud using open blockchain data.pptxML for identifying fraud using open blockchain data.pptx
ML for identifying fraud using open blockchain data.pptx
Vijay Dialani, PhD
 
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdfTop 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Teleport Manpower Consultant
 
Standard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - NeometrixStandard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - Neometrix
Neometrix_Engineering_Pvt_Ltd
 
The Benefits and Techniques of Trenchless Pipe Repair.pdf
The Benefits and Techniques of Trenchless Pipe Repair.pdfThe Benefits and Techniques of Trenchless Pipe Repair.pdf
The Benefits and Techniques of Trenchless Pipe Repair.pdf
Pipe Restoration Solutions
 
Railway Signalling Principles Edition 3.pdf
Railway Signalling Principles Edition 3.pdfRailway Signalling Principles Edition 3.pdf
Railway Signalling Principles Edition 3.pdf
TeeVichai
 
MCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdfMCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdf
Osamah Alsalih
 
power quality voltage fluctuation UNIT - I.pptx
power quality voltage fluctuation UNIT - I.pptxpower quality voltage fluctuation UNIT - I.pptx
power quality voltage fluctuation UNIT - I.pptx
ViniHema
 
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Dr.Costas Sachpazis
 
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&BDesign and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Sreedhar Chowdam
 
Gen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdfGen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdf
gdsczhcet
 
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdfHybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
fxintegritypublishin
 
Planning Of Procurement o different goods and services
Planning Of Procurement o different goods and servicesPlanning Of Procurement o different goods and services
Planning Of Procurement o different goods and services
JoytuBarua2
 
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
AJAYKUMARPUND1
 
road safety engineering r s e unit 3.pdf
road safety engineering  r s e unit 3.pdfroad safety engineering  r s e unit 3.pdf
road safety engineering r s e unit 3.pdf
VENKATESHvenky89705
 
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
Amil Baba Dawood bangali
 
Cosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdfCosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdf
Kamal Acharya
 

Recently uploaded (20)

Fundamentals of Electric Drives and its applications.pptx
Fundamentals of Electric Drives and its applications.pptxFundamentals of Electric Drives and its applications.pptx
Fundamentals of Electric Drives and its applications.pptx
 
ethical hacking-mobile hacking methods.ppt
ethical hacking-mobile hacking methods.pptethical hacking-mobile hacking methods.ppt
ethical hacking-mobile hacking methods.ppt
 
Runway Orientation Based on the Wind Rose Diagram.pptx
Runway Orientation Based on the Wind Rose Diagram.pptxRunway Orientation Based on the Wind Rose Diagram.pptx
Runway Orientation Based on the Wind Rose Diagram.pptx
 
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdf
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdfGoverning Equations for Fundamental Aerodynamics_Anderson2010.pdf
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdf
 
ML for identifying fraud using open blockchain data.pptx
ML for identifying fraud using open blockchain data.pptxML for identifying fraud using open blockchain data.pptx
ML for identifying fraud using open blockchain data.pptx
 
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdfTop 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
 
Standard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - NeometrixStandard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - Neometrix
 
The Benefits and Techniques of Trenchless Pipe Repair.pdf
The Benefits and Techniques of Trenchless Pipe Repair.pdfThe Benefits and Techniques of Trenchless Pipe Repair.pdf
The Benefits and Techniques of Trenchless Pipe Repair.pdf
 
Railway Signalling Principles Edition 3.pdf
Railway Signalling Principles Edition 3.pdfRailway Signalling Principles Edition 3.pdf
Railway Signalling Principles Edition 3.pdf
 
MCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdfMCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdf
 
power quality voltage fluctuation UNIT - I.pptx
power quality voltage fluctuation UNIT - I.pptxpower quality voltage fluctuation UNIT - I.pptx
power quality voltage fluctuation UNIT - I.pptx
 
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
 
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&BDesign and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
 
Gen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdfGen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdf
 
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdfHybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
 
Planning Of Procurement o different goods and services
Planning Of Procurement o different goods and servicesPlanning Of Procurement o different goods and services
Planning Of Procurement o different goods and services
 
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
 
road safety engineering r s e unit 3.pdf
road safety engineering  r s e unit 3.pdfroad safety engineering  r s e unit 3.pdf
road safety engineering r s e unit 3.pdf
 
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
 
Cosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdfCosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdf
 

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++