5.149. gt

DESCRIPTIONLINKS
Origin

Arithmetic.

Constraint

𝚐𝚝(𝚅𝙰𝚁1,𝚅𝙰𝚁2)

Synonyms

𝚛𝚎𝚕, 𝚡𝚐𝚝𝚢.

Arguments
𝚅𝙰𝚁1𝚍𝚟𝚊𝚛
𝚅𝙰𝚁2𝚍𝚟𝚊𝚛
Purpose

Enforce the fact that the first variable is strictly greater than the second variable.

Example
(8,1)

The 𝚐𝚝 constraint holds since 8 is strictly greater than 1.

Symmetries
  • 𝚅𝙰𝚁1 can be replaced by any value >𝚅𝙰𝚁2.

  • 𝚅𝙰𝚁2 can be replaced by any value <𝚅𝙰𝚁1.

Systems

gt in Choco, rel in Gecode, xgty in JaCoP, #> in SICStus.

See also

common keyword: 𝚎𝚚 (binary constraint,arithmetic constraint).

implies: 𝚐𝚎𝚚, 𝚗𝚎𝚚.

implies if swap arguments: 𝚕𝚝.

negation: 𝚕𝚎𝚚.

Keywords

constraint arguments: binary constraint.

constraint type: predefined constraint, arithmetic constraint.

filtering: arc-consistency.