Chapter 7

Assignment modelsME

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 transformationsME

Past papers · ME 2020–2026 (10 papers): 1 question, 2 marks

For a square table of size nn, let xij=1x_{ij}=1 when agent ii takes task jj, otherwise zero. cijc_{ij} 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 K−cijK-c_{ij}; the original total profit is nK−Z′nK-Z'. 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 methodME

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.

  1. Find a maximum set of independent zeros: no two may share a row or column.
  2. If there are nn such zeros, read off the complete assignment.
  3. 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.
  4. Let hh be the smallest uncovered entry. Subtract hh from every uncovered entry and add hh at every intersection of two covering lines. Leave singly covered entries unchanged.
  5. 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.

Revise offline: the whole Operations Research handbook as one PDF

45 pages · 2.0 MBFree to read online. Sign in to download the PDF.We save the handbook, version and request time in My downloads. Privacy policy

All chapters · Corrections