Modeling Mutual Exclusion with Binaries
Learn to translate mutual-exclusion rules — pairwise incompatibility, group-level 'at most one' or 'exactly one' selection, and logical implications of the form 'if A then not B' — into linear constraints on binary variables.
Tutorial
Pairwise Mutual Exclusion
Two decisions are mutually exclusive if at most one of them may be selected. Using binary variables (where means option is selected and means it is not), the mutual-exclusion rule is captured by
The constraint forbids the combination , whose sum is . The other three binary combinations all satisfy the inequality.
Notice that the 'do nothing' outcome remains feasible. If the problem instead requires that exactly one of the two options be selected, we use the equality form
For instance, if a company must choose between supplier and supplier but cannot use both, and is allowed to use neither, the constraint is with .