5.221. lex_alldifferent_except_0

DESCRIPTIONLINKS
Origin

H.Β Simonis

Constraint

πš•πšŽπš‘_πšŠπš•πš•πšπš’πšπšπšŽπš›πšŽπš—πš_πšŽπš‘πšŒπšŽπš™πš_0(πš…π™΄π™²πšƒπ™Ύπšπš‚)

Synonyms

πš•πšŽπš‘_πšŠπš•πš•πšπš’πšπš_πšŽπš‘πšŒπšŽπš™πš_0, πš•πšŽπš‘_πšŠπš•πš•πšπš’πšœπšπš’πš—πšŒπš_πšŽπš‘πšŒπšŽπš™πš_0, πšŠπš•πš•πšπš’πšπš_πš˜πš—_πšπšžπš™πš•πšŽπšœ_πšŽπš‘πšŒπšŽπš™πš_0, πšŠπš•πš•πšπš’πšπšπšŽπš›πšŽπš—πš_πš˜πš—_πšπšžπš™πš•πšŽπšœ_πšŽπš‘πšŒπšŽπš™πš_0, πšŠπš•πš•πšπš’πšœπšπš’πš—πšŒπš_πš˜πš—_πšπšžπš™πš•πšŽπšœ_πšŽπš‘πšŒπšŽπš™πš_0.

Type
πš…π™΄π™²πšƒπ™ΎπšπšŒπš˜πš•πš•πšŽπšŒπšπš’πš˜πš—(πšŸπšŠπš›-πšπšŸπšŠπš›)
Argument
πš…π™΄π™²πšƒπ™Ύπšπš‚πšŒπš˜πš•πš•πšŽπšŒπšπš’πš˜πš—(𝚟𝚎𝚌-πš…π™΄π™²πšƒπ™Ύπš)
Restrictions
|πš…π™΄π™²πšƒπ™Ύπš|β‰₯1
πš›πšŽπššπšžπš’πš›πšŽπš(πš…π™΄π™²πšƒπ™Ύπš,πšŸπšŠπš›)
πš›πšŽπššπšžπš’πš›πšŽπš(πš…π™΄π™²πšƒπ™Ύπšπš‚,𝚟𝚎𝚌)
πšœπšŠπš–πšŽ_πšœπš’πš£πšŽ(πš…π™΄π™²πšƒπ™Ύπšπš‚,𝚟𝚎𝚌)
Purpose

All the non null vectors of the collection πš…π™΄π™²πšƒπ™Ύπšπš‚ are distinct. A vector is null if all its components are equal to zero. Two non null vectors (u 1 ,u 2 ,β‹―,u n ) and (v 1 ,v 2 ,β‹―,v n ) are distinct if and only if there exists i∈[1,n] such that u i β‰ v i .

Example
𝚟𝚎𝚌-0,0,0,𝚟𝚎𝚌-5,2,0,𝚟𝚎𝚌-5,8,0,𝚟𝚎𝚌-0,0,0

The πš•πšŽπš‘_πšŠπš•πš•πšπš’πšπšπšŽπš›πšŽπš—πš_πšŽπš‘πšŒπšŽπš™πš_0 constraint holds since its two non null vectors, i.e.Β the second and third vectors are distinct (the vectors 〈5,2,0βŒͺ and 〈5,8,0βŒͺ differ in their second component.

Typical
|πš…π™΄π™²πšƒπ™Ύπš|>1
|πš…π™΄π™²πšƒπ™Ύπšπš‚|>1
Arg. properties

Contractible wrt. πš…π™΄π™²πšƒπ™Ύπšπš‚.

See also

implied by: πš•πšŽπš‘_πšŠπš•πš•πšπš’πšπšπšŽπš›πšŽπš—πš.

Keywords

characteristic of a constraint: vector, joker value.

modelling: difference between pairs of variables.