Assignment Problem

Work in progress. This note is still being written and incomplete.

A special case of the transportation problem: assign nn agents to nn tasks one-to-one, minimizing total cost, given a cost cijc_{ij} for assigning agent ii to task jj.

minimize z=i=1nj=1ncijxij\text{minimize } z = \sum_{i=1}^{n} \sum_{j=1}^{n} c_{ij} x_{ij}

Subject to jxij=1\sum_j x_{ij} = 1 for every agent, ixij=1\sum_i x_{ij} = 1 for every task, and xij{0,1}x_{ij} \in \{0, 1\}.

Every supply and demand equals 1, so every basic feasible solution is inherently degenerate (nn occupied cells needed for a non-degenerate BFS, but only nn assignments exist against 2n12n - 1 required).

Balanced and Unbalanced

Balanced when the number of agents equals the number of tasks. If unequal, add dummy agents or tasks with 0 cost to rebalance.

Maximization Assignment Problem

Convert to minimization by subtracting every cost from the largest cost in the matrix, then solve as usual.

Restricted Assignment Problem

A prohibited agent-task pair is assigned a very large cost MM, driving it out of the optimal assignment.

Written by September 16, 2026 1 min read
Was this helpful?