The linear assignment problem (LAP) is a fundamental problem in combinatorial optimization that involves assigning workers to tasks at minimal costs. In graph theoretic terms, the LAP is equivalent to finding a minimum-weight matching in a weighted bipartite directed graph. In a bipartite graph, the nodes can be divided into two disjoint sets (workers) and (tasks) such that every link connects a node in to a node in . That is, the node sets and are independent. The concept of assigning workers to tasks can be generalized to the assignment of any abstract object from one group to some abstract object from a second group.
The linear assignment problem can be formulated as an integer programming optimization problem. The form of the problem depends on the sizes of the two input sets, and . Let represent the set of possible assignments between sets and . In the bipartite graph, these assignments are the links. If , then the following optimization problem is solved:
This model allows for some elements of set (workers) to go unassigned (if ). However, if , then the following optimization problem is solved:
This model allows for some elements of set (tasks) to go unassigned.
In the network solver, you can invoke the linear assignment problem solver by using the LINEAR_ASSIGNMENT option. The algorithm that the network solver uses for solving a LAP is based on augmentation of shortest paths (Jonker and Volgenant 1987). This algorithm can be applied as long as the graph is bipartite.
The resulting assignment (or matching) is contained in the set that is specified in the ASSIGNMENTS= suboption in the OUT= option.
For a detailed example, see Example 8.3 “Linear Assignment Problem for Minimizing Swim Times.”