Aaai06 Poster

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 2

Evaluation of Solving Methods for Conditional Constraint Satisfaction Problems

Mihaela Sabin
Department of Mathematics and Computer Science, Rivier College
420 Main Street, Nashua, NH 03060, U.S.A., msabin@rivier.edu

Esther Gelle
ABB Switzerland Ltd, Corporate Research
CH-5405 Baden, Switzerland, esther.gelle@ch.abb.com

Abstract Ambite et al. 2005; Miguel, Jarvis, & Shen 2000) and hard-
ware test generation (Geller & Veksler 2005).
Conditional constraint satisfaction problems (CondCSPs) ad- Each application domain has produced specialized al-
equately capture problem change at solving time by condi-
tionally identifying those variables and constraints that are
gorithms for solving CondCSPs. Following the example
relevant to final solutions. Real-world tasks with dynamic of standard CSP solving, local consistency methods have
behavior, such as configuration, design, diagnosis, planning, been incorporated in CondCSP solvers and improved perfor-
and hardware test generation, have been modeled more nat- mance results have been reported. Although this solving ap-
urally with CondCSPs. Such interest has been matched by proach has been observed across application domains, little
the development of more effective algorithms that depart is known about the algorithms’ relative performance. More-
from classical backtracking and incorporate local consistency over, in striking contrast with the state-of-the-art of standard
checking. Although performance results have been reported CSP solving, CondCSP class lacks systematic findings with
for these specialized algorithms, the experimental analysis regard to how algorithm efficiency correlates with problem
has been conducted separately, using different test suites, and topology, such as density, satisfiability, and conditionality.
little is known about the algorithms’ relative performance. In
this abstract we present a CondCSP solver that implements
This challenge is compounded by an almost inexistent li-
direct and reformulation-based algorithms, each of which us- brary of CondCSP benchmark problems.
ing forward checking and maintaining local consistency. In To address these challenges, we have developed a Cond-
our experimental analysis we have considered randomly gen- CSP solver that includes two representative algorithms that
erated CondCSPs of diverse topologies in terms of problem have initially been proposed, implemetned, and evaluated
density and satisfiability of the standard and conditional prob- separately. One algorithm has direct solving methods that
lem components. Execution time results show that there is not adapt standard consistency checking, such as forward check-
one winner but that reformulation solving in conjunction with ing and maintaining arc consistency, to the special con-
forward checking performs better on problems with larger so-
straints that enforce conditionality in a CondCSP (Sabin
lution sets, while direct solving in conjunction with maintain-
ing arc consistency is always preferred over direct solving us- 2003; Sabin, Freuder, & Wallace 2003). The other algorithm
ing forward checking. reformulates the original problem into intermediate Cond-
CSPs with incrementally lesser conditionality as they are
A conditional constraint satisfaction problem (CondCSP) ultimately transformed into standard CSPs. Standard con-
extends the standard CSP with a condition-based component sistency checking is interleaved with problem reformulation
that models problem change by allowing for “on-the-fly” se- to eliminate inconsistent subproblems and solve the result-
lection of subsets of variables that participate in problem so- ing standard CSPs (Gelle 1998; Gelle & Faltings 2003). To
lutions. The formalism, introduced by (Mittal & Falken- overcome the lack of publicly known benchmark problems,
hainer 1990) under the name of dynamic CSP, has been re- we have used random CondCSPs and designed test suites for
named to conditional CSP (Sabin & Freuder 1998) to qualify both direct and reformulation solving algorithms.
the control component that models dynamic changes of the The first complete description of CondCSP backtrack
solution space with predefined conditions. The original ap- search (Gelle 1998) solves a partially reformulated Cond-
plication domain in (Mittal & Falkenhainer 1990) is product CSP, in which activity constraints of exclusion are rewritten
configuration, in which a changing rather than fixed number as compatibility constraints. (Sabin 2003) proposed Cond-
of components are part of final solutions. Selecting optional CSP analogs to CSP backtrack (CondBt), forward checking
components to assemble configuration variants is naturally (CondF c), and maintaining arc consistency (CondM ac)
represented in CondCSP with condition-based constraints. search algorithms. CondM ac interleaves backtrack search
More recently, conditional constraint satisfaction has been with maintaining arc consistency (M ac) adapted to propa-
adapted to the planning domain (Do & Kambhampati 2000; gate consistency checking on both compatibility and activity
constraints in the original CondCSP. Experimental evalua-
Copyright
c 2006, American Association for Artificial Intelli- tion on random CondCSPs (Wallace 1996) shows up to two
gence (www.aaai.org). All rights reserved. orders of magnitude of efficiency improvement over plain
backtrack search. CSP’s compatibility density, since all activity constraints
A different solving approach is to successively process ac- have been reformulated into compatibility constraints. Over-
tivation conditions of inclusion into an equivalent reformu- all, the pruning power of M acCompatibility is overcome
lation (Gelle 1998; Gelle & Faltings 2003). The reformula- by the implementation overhead which, in the end, does not
tion algorithm, Gt, generates a tree whose internal nodes always pay off.
are CondCSPs and the leaves are standard CSPs. Gt re- Another observation is that GtF c has the best perfor-
formulates inclusion activity constraints into compatibility mance, thus outperforming CondM ac, in the second test
constraints by creating intermediate CondCSPs with lesser suite for problems with higher density and satisfiability of
conditionality until the leaves level is reached. Standard compatibility. Finally, we observe that, in general, de-
consistency checking is interleaved with tree generation to creasing satisfiability of activity costs both CondF c and
eliminate inconsistent subproblems and to solve in the end CondM ac more, while just the opposite is seen for Gt al-
the resulting standard CSPs. Experimental evaluation results gorithms. Our test suites show that the number of solutions
for Gt using forward checking were reported for solving a increases with decreasing satisfiability of activity. Gt’s ad-
bridge design problem. vantage of pruning whole subproblems during reformulation
These algorithms contribute to CondCSP solving, but copes better with larger solution spaces (in the tens of thou-
their development and evaluation took place separately and sands) than the direct solving methods.
used different implementation frameworks (C++ vs. Lisp)
and different experimental test suites. For the purpose of References
examining these algorithms’ relative performance and how Ambite, J.; Knoblock, C.; Muslea, M.; and Minton, S.
problem topology impacts performance we have integrated 2005. Conditional constraint networks for interleaved plan-
both implementations within the same solver. ning and information gathering. Intelligent Systems, IEEE
We have analyzed experimentally the relative perfor- [see also IEEE Intelligent Systems and Their Applications]
mance of the two types of algorithms by using randomly 20(2):25–33.
generated CondCSPs. The random CondCSP generator
Do, M. B., and Kambhampati, S. 2000. Solving planning-
(Wallace 1996) extends the random standard CSP generator
graph by compiling it into CSP. In Artificial Intelligence
with activity parameters. In addition to the standard param-
Planning Systems, 82–91.
eters of density and satisfiability of the problem compati-
bility constraints, dc and sc , we have da , density of activity, Gelle, E., and Faltings, B. 2003. Solving mixed and con-
the probability of generating a non-initial variable as a target ditional constraint satisfaction problems. In Constraints,
variable, and sa , satisfiability of activity, the probability of 8(2):107–141, 2003.
generating a value in a domain as a condition variable. The Gelle, E. 1998. On the generation of locally consistent so-
test suites we designed generated different problem topolo- lution spaces. Ph.D. Thesis, Ecole Polytechnique Fédérale
gies with a problem size of number of variables n = 10, de Lausanne, Switzerland.
and number of values per domain dsize = 10. Density and Geller, F., and Veksler, M. 2005. Assumption-based prun-
satisfiability of compatibility and activity were varied. ing in conditional CSP. In Principles and Practice of Con-
We designed two test suites for our experiments. We straint Programming.
compared the execution time, in number of seconds, for Miguel, I.; Jarvis, P.; and Shen, Q. 2000. Flexible graph-
CondF c, CondM ac, GtF c and GtM ac. In the first test plan. In Proceedings of the Fourteenth European Confer-
suite density parameters were kept constant, dc = 0.3 and ence on Artificial Intelligence, 506–510.
da = 0.5, while satisfiability parameters varied: sc ∈
[0.2 . . . 0.4], and sa ∈ [0.5 . . . 0.8] (increments of 0.1). In Mittal, S., and Falkenhainer, B. 1990. Dynamic constraint
the second test suite compatibility density was increased to satisfaction problems. In Proceedings of the 8th National
dc = 0.5, and the variation of the compatibility satisfiability Conference on Artificial Intelligence, 25–32. The MIT
was shifted up into the interval sc ∈ [0.5 . . . 0.7]. The activ- Press.
ity parameters were maintained the same as in the first test Sabin, M., and Freuder, E. 1998. Detecting and resolv-
suite. ing inconsistency and redundancy in conditional constraint
The problems in the first test suite have lower density of satisfaction problems. In CP’98 Workshop on Constraint
compatibility and variable satisfiability of compatibility in Problem Reformulation.
a lower range than the problems in the second suite. We Sabin, M.; Freuder, E. C.; and Wallace, R. J. 2003. Greater
observe that in all cases CondM ac outperforms CondF c efficiency for conditional constraint satisfaction. In Princi-
while GtF c outperforms GtM ac in most cases. There are ples and Practice of Constraint Programming, 649–663.
two contributing factors in support of the latter observation. Sabin, M. 2003. Towards Improving Solving of Conditional
First, Gt transforms all exclusion constraints into compat- Constraint Satisfaction Problems. Ph.D. Dissertation, Uni-
ibility constraints prior to the tree generation. Thus, the versity of New Hampshire, Durham, NH, U.S.A.
advantage of M acActivity pruning in detecting activation
conflicts does not manifest in Gt. Secondly, it is known Wallace, R. 1996. Random CSP Generator. Con-
that M ac’s performance deteriorates with increasing prob- straint Computation Center, University of New Hampshire,
lem density. In the case of Gt, the compatibility density of Durham, NH, U.S.A.
the resulting standard CSPs is larger than the original Cond-

You might also like