SlideShare una empresa de Scribd logo
1 de 13
Submitted by: MUZAMMIL IRSHAD
Enrollment no.: 72215601723
Branch/Sem: BBA 2nd Sem
Section: B
ASSIGNMENT PROBLEM
WHAT IS ASSIGNMENT PROBLEM?
• It involves assignment of people to pro jobs to machines, workers to jobs and teachers to classes etc.,
while minimizing the total assignment costs.
• One of the important characteristics of assignment problem is that only one job (or worker) is assigned to
one machine (or project). An assignment problem is a special type of linear programming problem where
the objective is to minimize the cost or time of completing a number of jobs by a number of persons.
• This method was developed by D. Kon Hungarian mathematician and is there known as the Hungarian
method of assignment problem.
• In order to use this method, one needs to know only the cost of making all the possible assignments.
• Each assignment problem has a matrix (table) associated with it. Normally, the objects (or people) one
wishes to assign are expressed in rows, whereas the columns represent the tasks (or things) assigned to
them.
• The number in the table would then be the costs associated with each particular assignment.
HUNGARIAN METHOD
• Top Banner The Hungarian method is a computational optimization technique that addresses
the assignment problem in polynomial time and foreshadows following primal-dual alternatives.
In 1955, Harold Kuhn used the term “Hungarian method” to honour two Hungarian
mathematicians, Dénes Kőnig and Jenő Egerváry. Let’s go through the steps of the Hungarian
method with the help of a solved example..
HUNGARIAN METHOD TO SOLVE ASSIGNMENT PROBLEMS
• The Hungarian method is a simple way to solve assignment problems. Let us first discuss
the assignment problems before moving on to learning the Hungarian method
HUNGARIAN METHOD STEPS
• Check to see if the number of rows and columns are equal; if they are, the assignment problem is considered to be balanced. Then go to step 1. If it is not balanced, it should be balanced before the algorithm is
applied.
• Step 1 – In the given cost matrix, subtract the least cost element of each row from all the entries in that row. Make sure that each row has at least one zero.
• Step 2 – In the resultant cost matrix produced in step 1, subtract the least cost element in each column from all the components in that column, ensuring that each column contains at least one zero.
• Step 3 – Assign zeros Analyse the rows one by one until you find a row with precisely one unmarked zero. Encircle this lonely unmarked zero and assign it a task. All other zeros in the column of this circular zero
should be crossed out because they will not be used in any future assignments. Continue in this manner until you’ve gone through all of the rows.Examine the columns one by one until you find one with precisely
one unmarked zero. Encircle this single unmarked zero and cross any other zero in its row to make an assignment to it. Continue until you’ve gone through all of the columns.
• Step 4 – Perform the Optimal TestThe present assignment is optimal if each row and column has exactly one encircled zero.The present assignment is not optimal if at least one row or column is missing an
assignment (i.e., if at least one row or column is missing one encircled zero). Continue to step 5. Subtract the least cost element from all the entries in each column of the final cost matrix created in step 1 and
ensure that each column has at least one zero.
• Step 5 – Draw the least number of straight lines to cover all of the zeros as follows:(a) Highlight the rows that aren’t assigned.(b) Label the columns with zeros in marked rows (if they haven’t already been
marked).(c) Highlight the rows that have assignments in indicated columns (if they haven’t previously been marked). (d) Continue with (b) and (c) until no further marking is needed.(f) Simply draw the lines
through all rows and columns that are not marked. If the number of these lines equals the order of the matrix, then the solution is optimal; otherwise, it is not..
• Step 6 – Find the lowest cost factor that is not covered by the straight lines. Subtract this least-cost component from all the uncovered elements and add it to all the elements that are at the intersection of these
straight lines, but leave the rest of the elements alone.
• Step 7 – Continue with steps 1 – 6 until you’ve found the highest suitable assignment
TYPE OF ASSIGNMENT PROBLEM
Balanced Assignment Problem:
• Balanced Assignment Problem is an assignment problem where the number of facilities is equal
to the number of jobs.
Unbalanced Assignment Problem:
• Unbalanced Assignment problem is an assignment problem where the number of facilities is not
equal to the number of jobs. To make unbalanced assignment problem, a balanced one, a dummy
facility(s) or a dummy job(s) (as the case may be) is introduced with zero cost or time.
Dummy Job/Facility:
• A dummy job or facility is an imaginary job/facility with zero cost or time introduced to make an
unbalanced assignment problem balanced.
Infeasible Assignment:
An Infeasible Assignment occurs in the cell (i, j) of the assignment cost matrix if ith person is
unable to perform jth job. It is sometimes possible that a particular person is incapable of doing certain
work or a specific job cannot be performed on a particular machine. The solution of the assignment
problem should take into account these restrictions so that the infeasible assignments can be avoided.
This can be achieved by assigning a very high cost to the cells where assignments are prohibited.
UNBALANCED ASSIGNMENT PROBLEMS
• Whenever the cost matrix of an assignment problem is not a square matrix, that
is, whenever the number of sources is not equal to the number of destinations, the
assignment problem is called an unbalanced assignment problem. In such
problems, dummy rows (or columns) are added in the matrix so as to complete it to
form a square matrix. The dummy rows or columns will contain all costs elements
as zeroes. The Hungarian method may be used to solve the problem.
RESTRICTION IN ASSIGNMENT
• It is sometimes possible that a particular person is incapable of doing certain work
or a specific job cannot be performed on a particular machine. The solution of the
assignment problem should take into account these restrictions so that the
restricted (infeasible) assignment can be avoided. This can be achieved by assigning
a very high cost (say ∞ or M)to the cells where assignments are prohibited, thereby
restricting the entry of this pair of job-machine or resource-activity into the final
solution.
TRAVELLING SALESMAN MODEL
Given a set of cities and distances between every pair of cities, the problem is
to find the shortest possible route that visits every city exactly once and
returns to the starting point.
Note the difference between Hamiltonian Cycle and TSP. The Hamiltonian
cycle problem is to find if there exists a tour that visits every city exactly
once. Here we know that Hamiltonian Tour exists (because the graph is
complete) and in fact, many such tours exist, the problem is to find a
minimum weight Hamiltonian Cycle.
Muzammil irshad.pptxhdududududiufufufufu
Muzammil irshad.pptxhdududududiufufufufu

Más contenido relacionado

Similar a Muzammil irshad.pptxhdududududiufufufufu

qadm-ppt-150918102124-lva1-app6892.pdf
qadm-ppt-150918102124-lva1-app6892.pdfqadm-ppt-150918102124-lva1-app6892.pdf
qadm-ppt-150918102124-lva1-app6892.pdf
Hari31856
 

Similar a Muzammil irshad.pptxhdududududiufufufufu (20)

Assignment Problem
Assignment ProblemAssignment Problem
Assignment Problem
 
qadm-ppt-150918102124-lva1-app6892.pdf
qadm-ppt-150918102124-lva1-app6892.pdfqadm-ppt-150918102124-lva1-app6892.pdf
qadm-ppt-150918102124-lva1-app6892.pdf
 
Assignment problem method
Assignment problem methodAssignment problem method
Assignment problem method
 
Solving ONE’S interval linear assignment problem
Solving ONE’S interval linear assignment problemSolving ONE’S interval linear assignment problem
Solving ONE’S interval linear assignment problem
 
04-Unit Four - OR.pptx
04-Unit Four - OR.pptx04-Unit Four - OR.pptx
04-Unit Four - OR.pptx
 
Asssignment problem
Asssignment problemAsssignment problem
Asssignment problem
 
Quantitative Math
Quantitative MathQuantitative Math
Quantitative Math
 
Assignment problems
Assignment problemsAssignment problems
Assignment problems
 
Algorithm for Hungarian Method of Assignment
Algorithm for Hungarian Method of AssignmentAlgorithm for Hungarian Method of Assignment
Algorithm for Hungarian Method of Assignment
 
Assignment problem ppt
Assignment problem ppt Assignment problem ppt
Assignment problem ppt
 
Mba Ebooks ! Edhole
Mba Ebooks ! EdholeMba Ebooks ! Edhole
Mba Ebooks ! Edhole
 
Hungarian Method
Hungarian MethodHungarian Method
Hungarian Method
 
Linear Programing.pptx
Linear Programing.pptxLinear Programing.pptx
Linear Programing.pptx
 
Hungarian Assignment Problem
Hungarian Assignment ProblemHungarian Assignment Problem
Hungarian Assignment Problem
 
Undecidable Problems and Approximation Algorithms
Undecidable Problems and Approximation AlgorithmsUndecidable Problems and Approximation Algorithms
Undecidable Problems and Approximation Algorithms
 
Quantitativeanalysisfordecisionmaking 13427543542352-phpapp02-120719222252-ph...
Quantitativeanalysisfordecisionmaking 13427543542352-phpapp02-120719222252-ph...Quantitativeanalysisfordecisionmaking 13427543542352-phpapp02-120719222252-ph...
Quantitativeanalysisfordecisionmaking 13427543542352-phpapp02-120719222252-ph...
 
Divide and Conquer / Greedy Techniques
Divide and Conquer / Greedy TechniquesDivide and Conquer / Greedy Techniques
Divide and Conquer / Greedy Techniques
 
A study on solving Assignment Problem
A study on solving Assignment ProblemA study on solving Assignment Problem
A study on solving Assignment Problem
 
Minimization of Boolean Functions
Minimization of Boolean FunctionsMinimization of Boolean Functions
Minimization of Boolean Functions
 
A brief study on linear programming solving methods
A brief study on linear programming solving methodsA brief study on linear programming solving methods
A brief study on linear programming solving methods
 

Último

一比一原版阿德莱德大学毕业证成绩单如何办理
一比一原版阿德莱德大学毕业证成绩单如何办理一比一原版阿德莱德大学毕业证成绩单如何办理
一比一原版阿德莱德大学毕业证成绩单如何办理
pyhepag
 
NO1 Best Kala Jadu Expert Specialist In Germany Kala Jadu Expert Specialist I...
NO1 Best Kala Jadu Expert Specialist In Germany Kala Jadu Expert Specialist I...NO1 Best Kala Jadu Expert Specialist In Germany Kala Jadu Expert Specialist I...
NO1 Best Kala Jadu Expert Specialist In Germany Kala Jadu Expert Specialist I...
Amil baba
 
一比一原版纽卡斯尔大学毕业证成绩单如何办理
一比一原版纽卡斯尔大学毕业证成绩单如何办理一比一原版纽卡斯尔大学毕业证成绩单如何办理
一比一原版纽卡斯尔大学毕业证成绩单如何办理
cyebo
 
一比一原版加利福尼亚大学尔湾分校毕业证成绩单如何办理
一比一原版加利福尼亚大学尔湾分校毕业证成绩单如何办理一比一原版加利福尼亚大学尔湾分校毕业证成绩单如何办理
一比一原版加利福尼亚大学尔湾分校毕业证成绩单如何办理
pyhepag
 
Fuzzy Sets decision making under information of uncertainty
Fuzzy Sets decision making under information of uncertaintyFuzzy Sets decision making under information of uncertainty
Fuzzy Sets decision making under information of uncertainty
RafigAliyev2
 
Data Analytics for Digital Marketing Lecture for Advanced Digital & Social Me...
Data Analytics for Digital Marketing Lecture for Advanced Digital & Social Me...Data Analytics for Digital Marketing Lecture for Advanced Digital & Social Me...
Data Analytics for Digital Marketing Lecture for Advanced Digital & Social Me...
Valters Lauzums
 

Último (20)

Supply chain analytics to combat the effects of Ukraine-Russia-conflict
Supply chain analytics to combat the effects of Ukraine-Russia-conflictSupply chain analytics to combat the effects of Ukraine-Russia-conflict
Supply chain analytics to combat the effects of Ukraine-Russia-conflict
 
Data Visualization Exploring and Explaining with Data 1st Edition by Camm sol...
Data Visualization Exploring and Explaining with Data 1st Edition by Camm sol...Data Visualization Exploring and Explaining with Data 1st Edition by Camm sol...
Data Visualization Exploring and Explaining with Data 1st Edition by Camm sol...
 
一比一原版阿德莱德大学毕业证成绩单如何办理
一比一原版阿德莱德大学毕业证成绩单如何办理一比一原版阿德莱德大学毕业证成绩单如何办理
一比一原版阿德莱德大学毕业证成绩单如何办理
 
2024 Q1 Tableau User Group Leader Quarterly Call
2024 Q1 Tableau User Group Leader Quarterly Call2024 Q1 Tableau User Group Leader Quarterly Call
2024 Q1 Tableau User Group Leader Quarterly Call
 
basics of data science with application areas.pdf
basics of data science with application areas.pdfbasics of data science with application areas.pdf
basics of data science with application areas.pdf
 
Slip-and-fall Injuries: Top Workers' Comp Claims
Slip-and-fall Injuries: Top Workers' Comp ClaimsSlip-and-fall Injuries: Top Workers' Comp Claims
Slip-and-fall Injuries: Top Workers' Comp Claims
 
Pre-ProductionImproveddsfjgndflghtgg.pptx
Pre-ProductionImproveddsfjgndflghtgg.pptxPre-ProductionImproveddsfjgndflghtgg.pptx
Pre-ProductionImproveddsfjgndflghtgg.pptx
 
Easy and simple project file on mp online
Easy and simple project file on mp onlineEasy and simple project file on mp online
Easy and simple project file on mp online
 
NO1 Best Kala Jadu Expert Specialist In Germany Kala Jadu Expert Specialist I...
NO1 Best Kala Jadu Expert Specialist In Germany Kala Jadu Expert Specialist I...NO1 Best Kala Jadu Expert Specialist In Germany Kala Jadu Expert Specialist I...
NO1 Best Kala Jadu Expert Specialist In Germany Kala Jadu Expert Specialist I...
 
一比一原版纽卡斯尔大学毕业证成绩单如何办理
一比一原版纽卡斯尔大学毕业证成绩单如何办理一比一原版纽卡斯尔大学毕业证成绩单如何办理
一比一原版纽卡斯尔大学毕业证成绩单如何办理
 
The Significance of Transliteration Enhancing
The Significance of Transliteration EnhancingThe Significance of Transliteration Enhancing
The Significance of Transliteration Enhancing
 
社内勉強会資料  Mamba - A new era or ephemeral
社内勉強会資料   Mamba - A new era or ephemeral社内勉強会資料   Mamba - A new era or ephemeral
社内勉強会資料  Mamba - A new era or ephemeral
 
一比一原版加利福尼亚大学尔湾分校毕业证成绩单如何办理
一比一原版加利福尼亚大学尔湾分校毕业证成绩单如何办理一比一原版加利福尼亚大学尔湾分校毕业证成绩单如何办理
一比一原版加利福尼亚大学尔湾分校毕业证成绩单如何办理
 
Generative AI for Trailblazers_ Unlock the Future of AI.pdf
Generative AI for Trailblazers_ Unlock the Future of AI.pdfGenerative AI for Trailblazers_ Unlock the Future of AI.pdf
Generative AI for Trailblazers_ Unlock the Future of AI.pdf
 
2024 Q2 Orange County (CA) Tableau User Group Meeting
2024 Q2 Orange County (CA) Tableau User Group Meeting2024 Q2 Orange County (CA) Tableau User Group Meeting
2024 Q2 Orange County (CA) Tableau User Group Meeting
 
AI Imagen for data-storytelling Infographics.pdf
AI Imagen for data-storytelling Infographics.pdfAI Imagen for data-storytelling Infographics.pdf
AI Imagen for data-storytelling Infographics.pdf
 
Machine Learning for Accident Severity Prediction
Machine Learning for Accident Severity PredictionMachine Learning for Accident Severity Prediction
Machine Learning for Accident Severity Prediction
 
Formulas dax para power bI de microsoft.pdf
Formulas dax para power bI de microsoft.pdfFormulas dax para power bI de microsoft.pdf
Formulas dax para power bI de microsoft.pdf
 
Fuzzy Sets decision making under information of uncertainty
Fuzzy Sets decision making under information of uncertaintyFuzzy Sets decision making under information of uncertainty
Fuzzy Sets decision making under information of uncertainty
 
Data Analytics for Digital Marketing Lecture for Advanced Digital & Social Me...
Data Analytics for Digital Marketing Lecture for Advanced Digital & Social Me...Data Analytics for Digital Marketing Lecture for Advanced Digital & Social Me...
Data Analytics for Digital Marketing Lecture for Advanced Digital & Social Me...
 

Muzammil irshad.pptxhdududududiufufufufu

  • 1. Submitted by: MUZAMMIL IRSHAD Enrollment no.: 72215601723 Branch/Sem: BBA 2nd Sem Section: B ASSIGNMENT PROBLEM
  • 2. WHAT IS ASSIGNMENT PROBLEM? • It involves assignment of people to pro jobs to machines, workers to jobs and teachers to classes etc., while minimizing the total assignment costs. • One of the important characteristics of assignment problem is that only one job (or worker) is assigned to one machine (or project). An assignment problem is a special type of linear programming problem where the objective is to minimize the cost or time of completing a number of jobs by a number of persons. • This method was developed by D. Kon Hungarian mathematician and is there known as the Hungarian method of assignment problem. • In order to use this method, one needs to know only the cost of making all the possible assignments. • Each assignment problem has a matrix (table) associated with it. Normally, the objects (or people) one wishes to assign are expressed in rows, whereas the columns represent the tasks (or things) assigned to them. • The number in the table would then be the costs associated with each particular assignment.
  • 3. HUNGARIAN METHOD • Top Banner The Hungarian method is a computational optimization technique that addresses the assignment problem in polynomial time and foreshadows following primal-dual alternatives. In 1955, Harold Kuhn used the term “Hungarian method” to honour two Hungarian mathematicians, Dénes Kőnig and Jenő Egerváry. Let’s go through the steps of the Hungarian method with the help of a solved example.. HUNGARIAN METHOD TO SOLVE ASSIGNMENT PROBLEMS • The Hungarian method is a simple way to solve assignment problems. Let us first discuss the assignment problems before moving on to learning the Hungarian method
  • 4. HUNGARIAN METHOD STEPS • Check to see if the number of rows and columns are equal; if they are, the assignment problem is considered to be balanced. Then go to step 1. If it is not balanced, it should be balanced before the algorithm is applied. • Step 1 – In the given cost matrix, subtract the least cost element of each row from all the entries in that row. Make sure that each row has at least one zero. • Step 2 – In the resultant cost matrix produced in step 1, subtract the least cost element in each column from all the components in that column, ensuring that each column contains at least one zero. • Step 3 – Assign zeros Analyse the rows one by one until you find a row with precisely one unmarked zero. Encircle this lonely unmarked zero and assign it a task. All other zeros in the column of this circular zero should be crossed out because they will not be used in any future assignments. Continue in this manner until you’ve gone through all of the rows.Examine the columns one by one until you find one with precisely one unmarked zero. Encircle this single unmarked zero and cross any other zero in its row to make an assignment to it. Continue until you’ve gone through all of the columns. • Step 4 – Perform the Optimal TestThe present assignment is optimal if each row and column has exactly one encircled zero.The present assignment is not optimal if at least one row or column is missing an assignment (i.e., if at least one row or column is missing one encircled zero). Continue to step 5. Subtract the least cost element from all the entries in each column of the final cost matrix created in step 1 and ensure that each column has at least one zero. • Step 5 – Draw the least number of straight lines to cover all of the zeros as follows:(a) Highlight the rows that aren’t assigned.(b) Label the columns with zeros in marked rows (if they haven’t already been marked).(c) Highlight the rows that have assignments in indicated columns (if they haven’t previously been marked). (d) Continue with (b) and (c) until no further marking is needed.(f) Simply draw the lines through all rows and columns that are not marked. If the number of these lines equals the order of the matrix, then the solution is optimal; otherwise, it is not.. • Step 6 – Find the lowest cost factor that is not covered by the straight lines. Subtract this least-cost component from all the uncovered elements and add it to all the elements that are at the intersection of these straight lines, but leave the rest of the elements alone. • Step 7 – Continue with steps 1 – 6 until you’ve found the highest suitable assignment
  • 5.
  • 6. TYPE OF ASSIGNMENT PROBLEM Balanced Assignment Problem: • Balanced Assignment Problem is an assignment problem where the number of facilities is equal to the number of jobs. Unbalanced Assignment Problem: • Unbalanced Assignment problem is an assignment problem where the number of facilities is not equal to the number of jobs. To make unbalanced assignment problem, a balanced one, a dummy facility(s) or a dummy job(s) (as the case may be) is introduced with zero cost or time. Dummy Job/Facility: • A dummy job or facility is an imaginary job/facility with zero cost or time introduced to make an unbalanced assignment problem balanced. Infeasible Assignment: An Infeasible Assignment occurs in the cell (i, j) of the assignment cost matrix if ith person is unable to perform jth job. It is sometimes possible that a particular person is incapable of doing certain work or a specific job cannot be performed on a particular machine. The solution of the assignment problem should take into account these restrictions so that the infeasible assignments can be avoided. This can be achieved by assigning a very high cost to the cells where assignments are prohibited.
  • 7. UNBALANCED ASSIGNMENT PROBLEMS • Whenever the cost matrix of an assignment problem is not a square matrix, that is, whenever the number of sources is not equal to the number of destinations, the assignment problem is called an unbalanced assignment problem. In such problems, dummy rows (or columns) are added in the matrix so as to complete it to form a square matrix. The dummy rows or columns will contain all costs elements as zeroes. The Hungarian method may be used to solve the problem.
  • 8.
  • 9. RESTRICTION IN ASSIGNMENT • It is sometimes possible that a particular person is incapable of doing certain work or a specific job cannot be performed on a particular machine. The solution of the assignment problem should take into account these restrictions so that the restricted (infeasible) assignment can be avoided. This can be achieved by assigning a very high cost (say ∞ or M)to the cells where assignments are prohibited, thereby restricting the entry of this pair of job-machine or resource-activity into the final solution.
  • 10.
  • 11. TRAVELLING SALESMAN MODEL Given a set of cities and distances between every pair of cities, the problem is to find the shortest possible route that visits every city exactly once and returns to the starting point. Note the difference between Hamiltonian Cycle and TSP. The Hamiltonian cycle problem is to find if there exists a tour that visits every city exactly once. Here we know that Hamiltonian Tour exists (because the graph is complete) and in fact, many such tours exist, the problem is to find a minimum weight Hamiltonian Cycle.