Assignment Problem Using Excel
Assignment Problem Using Excel
Assignment Problem Using Excel
Use the solver in Excel to find the assignment of persons to tasks that minimizes the total cost.
1. To formulate this assignment problem, answer the following three questions. a. What are the decisions to be made? For this problem, we need Excel to find out which person to assign to which task (Yes=1, No=0). For example, if we assign Person 1 to Task 1, cell C10 equals 1. If not, cell C10 equals 0. b. What are the constraints on these decisions? Each person can only do one task (Supply=1). Each task needs to be executed once (Demand=1). c. What is the overall measure of performance for these decisions? The overall measure of performance is the total cost of the assignment, so the objective is to minimize this quantity. 2. To make the model easier to understand, name the following ranges.
Explanation: The SUM functions calculte the total number of tasks assigned to each person (Total Assignments) and the number of persons assigned to each task (Total Assigned). Total Cost equals thesumproduct of Cost and Assignment.
It is not necessary to use trial and error. We shall describe next how the Excel Solver can be used to quickly find the optimal solution.
Note: can't find the Solver button? Click here to load the Solver add-in. Enter the solver parameters (read on). The result should be consistent with the picture below.
You have the choice of typing the range names or clicking on the cells in the spreadsheet. 2. Enter TotalCost for the Objective. 3. Click Min. 4. Enter Assignment for the Changing Variable Cells. 5. Click Add to enter the following constraint.
Note: binary variables are either 0 or 1. 6. Click Add to enter the following constraint.
8. Check 'Make Unconstrained Variables Non-Negative' and select 'Simplex LP'. 9. Finally, click Solve. Result:
Conclusion: it is optimal to assign Person 1 to task 2, Person 2 to Task 3 and Person 3 to Task 1. This solution gives the minimum cost of 129. All constraints are satisfied. Did you find this information helpful? Please vote for us.