Assignment Problem
Assignment Problem
In many business situations, management needs to assign - personnel to jobs, - jobs to machines, machines to job locations, or - salespersons to territories. Consider the situation of assigning n jobs to n machines. When a job i (=1,2,....,n) is assigned to machine j (=1,2, .....n) that incurs a cost Cij. The objective is to assign the jobs to machines at the least possible total cost.
This situation is a special case of the Transportation Model And it is known as the assignment problem. Here, jobs represent sources and machines represent destinations. The supply available at each source is 1 unit And demand at each destination is 1 unit.
The assignment model can be expressed mathematically as follows: Xij= 0, if the job j is not assigned to machine i 1, if the job j is assigned to machine i
Ballston Electronics manufactures small electrical devices. Products are manufactured on five different assembly lines (1,2,3,4,5). When manufacturing is finished, products are transported from the assembly lines to one of the five different inspection areas (A,B,C,D,E). Transporting products from five assembly lines to five inspection areas requires different times (in minutes)
Under current arrangement, assignment of inspection areas to the assembly lines are 1 to A, 2 to B, 3 to C, 4 to D, and 5 to E. This arrangement requires 10+7+12+17+19 = 65 man minutes.
Management would like to determine whether some other assignment of production lines to inspection areas may result in less cost. This is a typical assignment problem. n = 5 And each assembly line is assigned to each inspection area. It would be easy to solve such a problem when n is 5, but when n is large all possible alternative solutions are n!, this becomes a hard problem.
Assignment problem can be either formulated as a linear programming model, or it can be formulated as a transportation model. However, An algorithm known as Hungarian Method has proven to be a quick and efficient way to solve such problems. This technique is programmed into many computer modules such as the one in WINQSB.
Step 1: Select the smallest value in each row. Subtract this value from each value in that row Step 2: Do the same for the columns that do not have any zero value.
A feasible assignment is not possible at this moment. In such a case, The procedure is to draw a minimum number of lines through some of the rows and columns, Such that all zero values are crossed out.
The next step is to select the smallest uncrossed out element. This element is subtracted from every uncrossed out element and added to every element at the intersection of two lines.
We can now easily assign to the zero values. Solution is to assign (1 to 1), (2 to 3), (3 to 2) and (4 to 4). If drawing lines do not provide an easy solution, then we should perform the task of drwaing lines one more time. Actually, we should continue drawing lines until a feasible assignment is possible.
In the traveling salesman problem, there are m locations (or nodes) And unit costs (Cij) are associated with traveling between locations i and j. The goal is to find the cycle that minimizes the total (traveling) distance required to visit all locations (nodes) without visiting any location twice. The Traveling salesman begins its journey from his/her home city And visits other cities (in no particular order) before returning home.
The director wishes to visit each local office and return to home office in the shortest time. This is a Symmetric traveling salesman problem Because the travel time between each pair of offices is the same in either direction.
Here, there are 5 nodes, m=5, therefore there are (5-1)! / 2= 4! / 2 = 12 possible cycles for this problem. As the table indicates, the optimal cycle is H-O1-O2O4-O3-H with a traveling time of 195 minutes. Of course, This trial approach can only be used for small problems. For example, the number of possible cycles is 181,440 for a problem with 10 nodes. For a problem with 15 nodes, it is 840 trillion. (A typical NP hard problem)
Basically, the traveling salesman problem can be considered as being similar to the Assignment Problem. Each node is assigned to another, and there is only 1 assignment for each node.
However, when solved in this way, instead of resulting in a Single Cycle, the solution is in the form of separated cycles. The optimum result is two cycles: (H-O2-O1-H) and (O3-O4-O3)
However, as we said before, using this assignment approach alone Will result in separate cycles. To prevent separate cycles, additional constraints must be added to the model given above.
For example, to state that the sub-cycle (H-O2-O1-H) is not feasible, the single connections of (H-O2); (O2-O1) and (O1-H) are not allowed to enter the solution at the same time. If we give the index number 5 for the Home office, the following constraint makes sure that the sub-cycle of (H-O2-O1-H) is not feasible: X52 + X21 + X15 2 (because this sub-cycle can only be feasible if X52, X21, and X15 are all equal to 1 at the same time. This constraint makes this occasion impossible)
As another example, to state that sub-cycle of (O1-O2O3-O4-O1) is not feasible: X12 + X23 + X34 + X41 3 To develop the LP model for traveling salesman problem, all possible unfeasible sub-cycles should be eliminated by employing additional constraints in the similar manner. For our example problem we should add the following constraints, accordingly: For single node sub-cycles: X11 0, X22 0, X33 0, X44 0, X55 0.
The WinQSB software can solve traveling salesman problems that have relatively few nodes (< 10). It uses assignment and Branch and Bound approaches in combination. To solve this problem, we may use the Network Modeling Module of WinQSB. Its result is the same: That is 195 minutes with the cycle of (H-O1-O2-O4-O3-H)