Skip to content

Forbidden Assignment

Definition

A forbidden assignment is an agent-task pair that is not allowed. In the course's Hungarian cost matrix, represent this pair by ∞\infty and leave that entry infinite during all transformations.


Interpretation

A forbidden assignment excludes one agent-task pair. The infinite cost turns the pair into a prohibition rather than an expensive option: no complete assignment that uses it can compete with one that avoids it.

A 3 by 3 cost matrix with an infinite cost for the forbidden pair A2 to T2, before and after row and column reduction; the infinite entry stays infinite, and the optimal assignment has cost 12.

The entry for A2→T2A_2\to T_2 is ∞\infty before and after the row and column reductions, since subtracting a finite number from ∞\infty leaves ∞\infty. The highlighted optimal assignment avoids that cell: A1→T1A_1\to T_1, A2→T3A_2\to T_3, A3→T2A_3\to T_2 with cost 2+4+6=122+4+6=12.

A large finite number MM works only if it is large enough: here the cheapest assignment through A2→T2A_2\to T_2 costs 2+M+22+M+2, so MM must exceed 88. In the Hungarian algorithm, an infinite entry is never a zero, so it is never selected; in the binary formulation, the same ban is the constraint xij=0x_{ij}=0.


Key Results


Examples

In the figure, prohibiting (2,2)(2,2) gives the highlighted assignment A1→T1A_1\to T_1, A2→T3A_2\to T_3, A3→T2A_3\to T_2 with cost 2+4+6=122+4+6=12. A finite penalty MM represents a prohibition only if it is sufficiently large and an allowed complete assignment exists; x22=0x_{22}=0 enforces the ban directly.

  • A machine unable to process job 3 receives an infinite entry in that job's column.
  • A feasible assignment must choose another machine for that job.

Prerequisites

Sources

Symbols: infinity

Last updated: 20 October 2026 03:02