3. SECTOR ENVASES Y EMBALAJES CASTILLA Y LEÓN
3.2. PROCESOS PRODUCTIVOS GENERADORES DE RESIDUOS
3.2.4. Sector de fabricación de envases y embalajes de plástico
The statistical analysis compares the relative performance for Old, AllC, and Head for RNIC. It shows that, overall, AllC and Head are equivalent and Old has the worst performance. The following holds in general for all benchmarks:
AllC ≡ Head > Old (A.2)
The fact that Old is the worst demonstrates that RNIC’s contribution to the weights of dom/wdeg should not be ignored, thus justifying our investigations.
Table A.5 summarizes the experiments’ results on all the 132 tested benchmarks. AllC is the best strategy on all measures while Old is the worst.
Table A.5: Results of experiments for RNIC
Old AllC Head
# Completion (3,869) 2,420 2,427 2,423
P
CPU sec. (2,416) >1,032,130 >1,010,221 >1,014,635
Average NV (2,432) 77,067 45,696 45,803
We were not able to uncover meaningful categories of benchmarks to distinguish between AllC and Head. Table A.6 summarizes individual benchmark results for the Dimacs category. Within the category, either AllC or Head perform the best by all measures on different benchmarks. Similar results are obtained on the graph coloring category, shown in Table A.7. Having such different results between AllC
and Head explains why the statistical analysis found them to be equivalent. Regard- less, either AllC or Head performs better than Old in a statistically significant manner.
Figure A.2 shows the cumulative number of instances completed by each strategy as CPU time increases. As was the case for POAC, on easy instances (< 100 seconds),
1200 1400 1600 1800 2000 2200 2400 0 100 200 300 400 500 600 700 800 900 1000 1100 1200 1300 1400 1500 1600 1700 1800 1900 2000 2100 2200 2300 2400 2500 2600 2700 2800 2900 3000 3100 3200 3300 3400 3500 3600 # C omp le ti on s CPU Time ALLC HEAD OLD 2350 2360 2370 2380 2390 2400 2410 2420 2430 2300 2350 2400 2450 2500 2550 2600 2650 2700 2750 2800 2850 2900 2950 3000 3050 3100 3150 3200 3250 3300 3350 3400 3450 3500 3550 3600
Figure A.2: Cumulative number of instances completed by CPU time for RNIC
Table A.6: Examples of Dimacs benchmarks where AllC and Head perform best
Benchmark Old AllC Head
pret Completion (8) 4 4 4 ΣCPU (4) 196 28 61 Average NV (4) 1,285,234 125,793 273,736 dubois Completion (13) 6 9 11 ΣCPU (6) >22,041 >10,088 1,348 Average NV (11) 11,222,349 1,522,902 382,329
Table A.7: Two graph coloring benchmarks where AllC and Head perform best
Benchmark Old AllC Head
mug Completion (8) 8 8 8 ΣCPU (8) 5,098 548 2,819 Average NV (8) 1,501,379 189,595 883,130 leighton-15 Completion (26) 5 5 5 ΣCPU (5) 2,219 1,493 1,222 Average NV (5) 25,014 12,461 4,972
the completions of the strategies are similar. Focusing on harder instances, solved between 2,300 and 3,600 seconds, Old becomes dominated by AllC and Head. The curves of AllC and Head remain close to one another. These curves confirm the ranking in Equation A.2.
Summary
This chapter introduces four strategies for incrementing the weight in dom/wdeg for singleton consistencies (POAC) and three strategies for relational consistencies (RNIC). For both consistencies, Old is the worst strategy and a weighting schema involving the higher-level consistency is necessary. We show that for POAC the best method is AllS, which increments the weights at every singleton test. For RNIC, we show AllC and Head are statistically equivalent. Our work is a first step in the right direction, especially given the importance of higher-level consistencies in solving difficult CSPs. Future work may need to investigate more complex strategies for these and other consistencies.
Appendix B
Adaptive Parameterized
Consistency for Non-Binary CSPs
by Counting Supports
Determining the appropriate level of local consistency to enforce on a given instance of a Constraint Satisfaction Problem (CSP) is not an easy task. However, selecting the right level may determine our ability to solve the problem. Adaptive parameterized consistency was recently proposed for binary CSPs as a strategy to dynamically select one of two local consistencies (i.e., AC and maxRPC). In this chapter, we propose a similar strategy for non-binary table constraints to select between enforcing GAC and pairwise consistency. While the former strategy approximates the supports by their rank and requires that the variables domains be ordered, our technique removes those limitations. We empirically evaluate our approach on benchmark problems to establish its advantages. This work has been published [Woodward et al., 2014].
B.1
Introduction
There is an abundance of local consistency techniques of varying cost and pruning power to apply to a Constraint Satisfaction Problem (CSP), but choosing the right one for a given instance remains an open question. In a portfolio approach [Xu et al., 2008; Kadioglu et al., 2011; Geschwender et al., 2013], we typically choose a single consistency level and enforce it on the entire problem (or a subproblem). Heuristic- based methods have been proposed to dynamically switch, at various stages of search and depending on the constraint, between a weak and a strong level of consistency, AC and maxRPC for binary CSPs [Stergiou, 2008] and GAC and maxRPWC for non-binary CSPs [Paparrizou and Stergiou, 2012]. The above-mentioned approaches do not allow us to enforce different levels of consistency on the values in the domain of the same variable. To this end, Balafrej et al. introduced adaptive parameterized
consistency, which selects, for each value in the domain of a variable, one of two
consistency levels based on the value of a parameter [Balafrej et al., 2013]. That parameter is determined by the rank of the support of the value in a constraint (assuming a fixed total ordering of the variables’ domains), and updated depending on the weight of the constraint [Boussemart et al., 2004]. Their study targeted enforcing AC and maxRPC on binary CSPs.
In this chapter, we extend their mechanism to enforcing GAC and pairwise- consistency on non-binary CSPs with table constraints. Our approach is based on
counting the number of supporting tuples, which is automatically provided by the
algorithms that we use. Thus, we remove the restriction on maintaining ordered domains and the approximation of a support’s count by its rank. We establish em- pirically the advantages of our approach.