Binary constraint

From HandWiki
Revision as of 21:11, 6 February 2024 by Steve2012 (talk | contribs) (over-write)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

A binary constraint, in mathematical optimization, is a constraint that involves exactly two variables. For example, consider the n-queens problem, where the goal is to place n chess queens on an n-by-n chessboard such that none of the queens can attack each other (horizontally, vertically, or diagonally). The formal set of constraints are therefore "Queen 1 can't attack Queen 2", "Queen 1 can't attack Queen 3", and so on between all pairs of queens. Each constraint in this problem is binary, in that it only considers the placement of two individual queens.[1]

Linear programs in which all constraints are binary can be solved in strongly polynomial time, a result that is not known to be true for more general linear programs.[2]

References

  1. Marriott, Kim; Stuckey, Peter J. (1998), Programming with Constraints: An Introduction, MIT Press, p. 282, ISBN 9780262133418, https://books.google.com/books?id=jBYAleHTldsC&pg=PA282 .
  2. "Towards a genuinely polynomial algorithm for linear programming", SIAM Journal on Computing 12 (2): 347–353, 1983, doi:10.1137/0212022 .