Skip to content

Mathematics and Statistics · Ch 15 — Assignment Problem and Sequencing

Maximisation Assignment Problems

3

Maximisation Assignment Problems

The Hungarian method is built to minimise. Many real problems instead ask us to maximise — assign salesmen to territories to make total profit (or sales, output, efficiency) as large as possible. We do not need a new algorithm; we simply convert the maximisation problem into an equivalent minimisation problem and then run the ordinary Hungarian method.

Two equivalent conversions (use either):

  1. Subtract-from-largest (the "regret" or loss matrix). Find the single largest entry MM in the whole profit matrix and replace every entry pijp_{ij} by M−pijM - p_{ij}. Each new entry is a loss of opportunity — how much profit we forgo at that cell compared with the best cell anywhere. Minimising total opportunity loss is exactly the same as maximising total profit.

  2. Negate the matrix. Replace each pijp_{ij} by −pij-p_{ij} and minimise; but since the Hungarian method assumes non-negative entries, method (1) is the one used in practice.

After the conversion, apply Steps 1–5 of the Hungarian method exactly as before. Crucially, the final answer — the total profit — is read from the original profit matrix, not from the converted one.

Important

Read the objective before you start …

Definition 1Maximisation assignment problem

An assignment problem whose objective is to maximise a total (profit, sales, output), solved by first converting to an equivalen …

Definition 2Opportunity-loss (regret) matrix

The matrix [M−pij][M - p_{ij}] obtained by subtracting every profit from the largest profit MM; minimising its total is equivalent to …