Learning: from CP to SAT and back again
Ian Gent University of St Andrews
Learning: from CP to SAT and back again Ian Gent University of St - - PowerPoint PPT Presentation
Learning: from CP to SAT and back again Ian Gent University of St Andrews Topics in this Series Why SAT & Constraints? SAT basics Constraints basics Encodings between SAT and Constraints Watched Literals in SAT and
Ian Gent University of St Andrews
Theories
find out
in the rest of search
state ever again
the specifics of this case?
backjumping
good)
approaches
set, and arbitrary values elsewhere
are in the problem
assigned variable x in conflict set
could lead to a solution
values, then x=a is impossible
(conflict sets) from propagators?
from propagators?
C ...
SAT Instances”, 1997
research
Constraints
mind
what SAT does
disassignment (x != a) is
the unit propagation to happen
invite a Francophone ambassador so his daughter can practice her French:
ambassadors are badly behaved when they get together, so they mustn’t all be invited:
ambassador, you must also invite the Belgian ambassador:
invite a Francophone ambassador so his daughter can practice her French:
ambassadors are badly behaved when they get together, so they mustn’t all be invited:
ambassador, you must also invite the Belgian ambassador:
invite a Francophone ambassador so his daughter can practice her French:
ambassadors are badly behaved when they get together, so they mustn’t all be invited:
ambassador, you must also invite the Belgian ambassador: 1. B ∨ N ∨ F ∨ G 2. B ∨ F 3. ¬B ∨ ¬G ∨ ¬N. 4. ¬N ∨ B
for the current state of variables is a directed acyclic graph where
true literal, e.g. v when variable v ← 1, and
to v iff u appears in the explanation for v.
G ¬B N B
is a partition (S, T ) of vertices such that
belong to S,
consistency level as the explanations were built with will lead to the same failure.
G ¬B N B
something we can learn
cut
mistake in the future
G ¬B N B
Z Y W c ¬X ¬W 4.1 5.3 6.0 6.2 6.1 C B A
branching
decisions
contradictory literals forced by branching decision and nothing else at this depth
Neil Moore, PhD thesis
Z Y W c ¬X ¬W 4.1 5.3 6.0 6.2 6.1 C B A
branching
decisions
contradictory literals forced by branching decision and nothing else at this depth
Neil Moore, PhD thesis
Z Y W c ¬X ¬W 4.1 5.3 6.0 6.2 6.1 C B A
search
propagation
Y=1, W=0
Neil Moore, PhD thesis
Z Y W c ¬X ¬W 4.1 5.3 6.0 6.2 6.1 C B A
UIP cut
N with predecessors in S
Neil Moore, PhD thesis
Z Y W c ¬X ¬W 4.1 5.3 6.0 6.2 6.1 C B A
conflict c
predecessors in S
UIP cut
Neil Moore, PhD thesis
Z Y W c ¬X ¬W 4.1 5.3 6.0 6.2 6.1 C B A
Neil Moore, PhD thesis
Z Y W c ¬X ¬W 4.1 5.3 6.0 6.2 6.1 C B A
Neil Moore, PhD thesis
Z Y W c ¬X ¬W 4.1 5.3 6.0 6.2 6.1 C B A
Neil Moore, PhD thesis
Z Y W c ¬X ¬W 4.1 5.3 6.0 6.2 6.1 C B A
Y to T
Neil Moore, PhD thesis
Z Y W c ¬X ¬W 4.1 5.3 6.0 6.2 6.1 C B A
Y to T
Neil Moore, PhD thesis
Z Y W c ¬X ¬W 4.1 5.3 6.0 6.2 6.1 C B A
Neil Moore, PhD thesis
Z Y W c ¬X ¬W 4.1 5.3 6.0 6.2 6.1 C B A
assignment Y=1
propagate and set Y=0
Neil Moore, PhD thesis
forgotten
in some sense
Chaff patent
the legal position
techniques scientifically
Dechter, Prosser, Ginsberg, Stallmann & Sussmann)
constraints
failure/propagation
variables
same thing
disassignment as different things
and disassignments of variable/value pairs
explanation is justifying
backjumping, learning, etc
propagation
(but not others)
1.0 10.0 100.0 1000.0 0.0001 0.0100 1.0000 100.0000 10000.0000 Minion solve time [s] Minion solve time over Minion−lazy solve time
10,000 times
1000 times
Gent, Jefferson, Kotthoff, Miguel, Moore, Nightingale, Petrie, 2010
above y=1 means lazy learning better