5.170. ith_pos_different_from_0

DESCRIPTIONLINKSAUTOMATON
Origin

Used for defining the automaton of min_n.

Constraint

ith_pos_different_from_0(ITH,POS,VARIABLES)

Argument(s)
ITHint
POSdvar
VARIABLEScollection(vardvar)
Restriction(s)
ITH1
ITH|VARIABLES|
POSITH
POS|VARIABLES|
required(VARIABLES,var)
Purpose

POS is the position of the ITHth non-zero item of the sequence of variables VARIABLES.

Example
(2,4,3,0,0,8,6)

The ith_pos_different_from_0 constraint holds since 4 corresponds to the position of the 2th non-zero item of the sequence 30086.

See also

min_n.

Key words

characteristic of a constraint: joker value, automaton, automaton with counters.

constraint network structure: alpha-acyclic constraint network(3).

constraint type: data constraint.

modelling: table.


Automaton

Figure 5.170.1 depicts the automaton associated with the ith_pos_different_from_0 constraint. To each variable VARi of the collection VARIABLES corresponds a 0-1 signature variable Si. The following signature constraint links VARi and Si: VARi=0Si.

Figure 5.170.1. Automaton of the ith_pos_different_from_0 constraint
ctrs/ith_pos_different_from_01
Figure 5.170.2. Hypergraph of the reformulation corresponding to the automaton of the ith_pos_different_from_0 constraint
ctrs/ith_pos_different_from_02