Skip to content

Mathematics and Statistics · Ch 15 — Assignment Problem and Sequencing

What is an Assignment Problem?

1

What is an Assignment Problem?

Suppose a workshop has four machines and four jobs waiting to be processed. Each machine can do any of the jobs, but the cost (or time) of doing a particular job differs from machine to machine — one machine is fast at drilling but slow at grinding, another is the reverse. In how many ways, and at what cost, can we hand out the jobs so that each job goes to exactly one machine and each machine gets exactly one job, and the total cost is as small as possible? This is the assignment problem.

An assignment problem is a special kind of allocation problem in which a set of nn agents (workers, machines, salesmen, teams) must be matched one-to-one with a set of nn tasks (jobs, territories, routes). The data is an n×nn \times n cost matrix [cij][c_{ij}], where cijc_{ij} is the cost of assigning agent ii to task jj. Because the matching is one-to-one, choosing an assignment amounts to choosing one entry in every row and every column, no two in the same row or column.

The three standing assumptions.

  1. The number of agents equals the number of tasks (the matrix is square, n×nn \times n) — a problem where they differ is unbalanced and is first made square (§4).
  2. Each agent is assigned to one and only one task, and each task to one and only one agent.
  3. The cost figures cijc_{ij} are known constants and are additive — the total cost of an assignment is just the sum of the chosen entries.

Why not just try every possibility? With nn agents and nn tasks there are n!n! possible assignments. For n=5n = 5 that is 120120; for n=10n = 10 it is already 3 628 8003\,628\,800. Enumerating them is hopeless for anything but the tiniest problem, so we need a systematic algorithm — the Hungarian method (§2).

Note

Assignment problem vs. transportation problem

The assignment problem is a special case of the transportation problem in which every supply and every demand equals 11 and the matrix is square. That special structure is exactly what lets the compact Hungarian method work, instead of the heavier transportation algorithm.

These are the standard operations-research allocation principles that underpin the national mathematics-and-statistics curriculum as well as this Std XII (HSC) Commerce course; the treatment here follows the level and notation of the Maharashtra Std XII syllabus.

Definition 1Assignment problem

An allocation problem in which nn agents are matched one-to-one with nn tasks so as to optimise (usually minimise) the total cost, given the n×nn \times n cost matrix [cij][c_{ij}].

Definition 2Cost matrix

The square table [cij][c_{ij}] whose entry in row ii, column jj is the cost (or time) of assigning agent ii to task jj.

Definition 3Balanced assignment problem

An assignment problem in which the number of agents equals the number of tasks, so the cost matrix is square (n×nn \times n).