Assignment models
Assignment matches each agent with one task and each task with one agent. It is a unit-supply, unit-demand transportation model. Its objective is the sum of the assigned costs, not the elapsed time of parallel work.
7.1 Assignment formulation and transformations
Past papers · ME 2020–2026 (10 papers): 1 question, 2 marks
For a square table of size , let when agent takes task , otherwise zero. is cost or processing time for that pairing.
Add dummy rows or columns to make a rectangular table square; their costs must represent idle agents or unassigned jobs correctly. For maximisation, minimise ; the original total profit is . Exclude prohibited pairings. For a travelling-salesman interpretation, one-to-one assignment alone permits disconnected subtours and is insufficient; that additional problem is not developed here.
7.2 Hungarian method
Work with a minimisation table after balancing. Subtract each row minimum from its row, then each column minimum from its column. These reductions preserve the best assignment by Section 7.1's shift rule.
- Find a maximum set of independent zeros: no two may share a row or column.
- If there are such zeros, read off the complete assignment.
- Otherwise cover all zeros using the minimum number of horizontal/vertical lines. A mechanical construction starts from unmatched rows, marks columns with zeros in marked rows, then marks rows matched to marked columns, and repeats; cover unmarked rows and marked columns.
- Let be the smallest uncovered entry. Subtract from every uncovered entry and add at every intersection of two covering lines. Leave singly covered entries unchanged.
- Repeat the independent-zero search. At completion, compute cost from the original table.
The minimum zero-cover size equals the maximum number of independent zeros. A greedy zero choice may fail even when a full matching exists; use reassignment along alternating matched/unmatched zero links before declaring failure.
Last-minute recall
- Each row and each column contributes exactly one selected cell.
- Balance rectangular tables with meaningful dummy costs.
- Row/column shifts preserve optimal matchings.
- Independent zeros share neither row nor column.
- A minimum cover, not any cover, drives the Hungarian adjustment.
- Recover the final objective from the original costs.