13.07.2015 Views

The Deviation Constraint - Université catholique de Louvain

The Deviation Constraint - Université catholique de Louvain

The Deviation Constraint - Université catholique de Louvain

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

1. RD(X , m) ≤ Dmax22. LD(X , m) ≤ Dmax23. RD(X , m) ≥ Dmin24. LD(X , m) ≥ Dmin25. [ LD(X , m), LD(X , m) ] ∩ [ RD(X , m), RD(X , m) ] ≠ φProof. 1. If RD(X , m) > Dmax2then ∑ DmaxX>m(X − m) >2(Property 1).Hence ∑ ni=1 |X i − m| > D max (by <strong>The</strong>orem 1).2., 3. and 4. similar to 1.5. Direct consequence of <strong>The</strong>orem 1 and Property 1. 3 Naive implementationThis section explains why a naive implementation of DEVIATION by <strong>de</strong>compositioninto more elementary constraints is not optimal in terms of filtering.As stated in Definition 1, DEVIATION(X , m, D) holds if and only if n.m =∑ ni=1 X i and D = ∑ ni=1 |X i −m|. This suggests a natural implementation of theconstraint by <strong>de</strong>composing it into two SUM constraints. Figure 2 illustrates thatthe filtering obtained with the <strong>de</strong>composition is not optimal.Dom X 2∣X 1−m∣∣X 2−m∣D maxD maxm , mX 1 X 2=2mDom X 1Fig. 2. Filtering of X 1 with <strong>de</strong>composition and with DEVIATION.Assume two variables X 1 , X 2 with unboun<strong>de</strong>d finite domains and the constraintDEVIATION({X 1 , X 2 }, m, D ∈ [0, D max ]).<strong>The</strong> diagonally sha<strong>de</strong>d square (see Figure 2) <strong>de</strong>limits the set of points such that|X 1 − m| + |X 2 − m| ≤ D max . <strong>The</strong> diagonal line is the set of points such thatX 1 + X 2 = 2.m. <strong>The</strong> unboun<strong>de</strong>d domains for X 1 and X 2 are bound-consistentfor the mean constraint. <strong>The</strong> vertically sha<strong>de</strong>d rectangle <strong>de</strong>fines the domain of6

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!