1/20
Looks like no tags are added yet.
Describe how propagators operate
Construct an explanation and checker to justify propagations andverify their correctness, providing a principled safety net against implementation errors.
Decompositions VS Propagators
What are explanations:
A propositional condition that justifies why the propagation is correct in the
current state of the solver
An explanation is a propositional statement that specifies the logical reason why a
propagation or conflict occurred.
Explanations are constructed using atomic constraints, which are elementary predicates involving a single variable.
What are checkers
Small and independent pieces of code that verify the correctness of explanations.Because checkers are intentionally simple,
they can be trusted more readily than the often complex propagators whose behaviour they
verify.
What is a fixed point
A situation where no further propagation is possible.
Correct explanations needs to be … and ….
both valid and applicable.
How can we refine explanations?
By removing implicit redundancies predicates that do not contribute to the reasoning.
Lifted explanations
Explanations which reasoning extends beyond the specific situation in which they are generated.
When is a propagator idempotent
When it is guaranteed to reach a fixed point after a single application.
Domain consistency and Bound consistency
Bound consistency considers only the lower and upper bounds of each variable, ensuring that at a fixed point feasible full assignments exist that contain these bound values.
Domain consistency considers every value in the domain ensuring that each value participates in at least one feasible assignment.
What trade off is there when designing propagators?
Computational efficiency: Propagators should run fast
Propagation strength: Propagators should prune domains aggressively
Since the practical value
of a propagator lies in its ability to reduce the overall runtime of solving a problem, it is
important to strike the right balance between propagation strength and computational effort,
and design careful experiments to measure the effectiveness.
Difference Propagation explanation and conflict explanation
a1 ∧ a2 ∧ · · · ∧ an−1 =⇒ an,
where an is the propagated atomic constraint
vs
a1 ∧ a2 ∧ · · · ∧ an =⇒ ⊥
where ⊥ denotes contradiction.
Lefthandside = reason (or premise)
The reason specifies why the right hand side (the consequent) must hold.
When is an explanation correct?
Validity: When it is logically entailed by the constraint: every feasible assignment of the constraint must satisfy the explanation.
Applicability: when it can be used as a justification given state of the seach.
What do Checkers do?
Independantly verfies the explanations it produces. Implemented separately from the algorithms. The simpler the checker the easier it is to trust. Checkers are tailored to specific propagators, with checker achieving full completeness is sstill difficult. Checkers does not need to validate all possible explanations, only those produced by a specific propagation method,
What is decomposition
Alternative to using propagators, decompose the constraint into typically simpler constraints e.g., into linear inequalities.
Why is propagation better then decomposition?
A propagator may run faster than its decomposition or exploit additional problem struc-ure to achieve stronger propagation.
When is a problem infeasible?
When there is a conflict at decision level 0.
A conflict means some domain has become empty.
At level 0, no decisions have been made, so there is no choice left to undo.
At level 2, the conflict only rules out those two choices together. The solver backtracks and continues.
The solver doesn't test every assignment. One conflict can rule out many at once.
What is a Trail?
A stack that records every explicit change to a domain.
It separates decisions from propagations and keeps their decision levels.
For backtracking: the order and decision level tell the solver what to undo. It also needs the old domain values.
For conflict analysis: each propagation needs its reason, so the solver can trace why it happened
What do bound-consistent and domain-consistent mean? Why does it matter, is it necessary, and can a propagator be neither?
Definitions (once the propagator has nothing left to remove):
Bound-consistent: for every variable, the smallest and the largest value each appear in some feasible solution to the constraint.
Domain-consistent: for every variable, every remaining value appears in some feasible solution to the constraint.
The solutions must use values still in the domains. Domain-consistent always implies bound-consistent, but not the other way around.
Why it matters: it tells you how strong the pruning is guaranteed to be. Stronger pruning means less search, but usually more time per propagation.
Is it necessary? No. The solver stays correct as long as propagators never remove a feasible value and detect a violation once everything is assigned.
Can it be neither? Yes. For some constraints, reaching either level is NP-hard, so practical propagators settle for less.
Propagator | Consistency |
|---|---|
Linear inequality | Bound |
All-different with max flow and SCCs | Domain |
Equality split into two inequalities | Neither |
Cumulative, circuit | Neither |
Explain decomposition and its advantages/disadvantages compared with a dedicated propagator.
What it is: replacing one constraint with several, usually simpler, constraints. The same solutions stay allowed.
Example: all-different(x, y, z) becomes x ≠ y, x ≠ z, y ≠ z.
Advantages
Easy: it reuses propagators the solver already has.
Always possible: it is needed when the solver has no dedicated propagator.
Can help learning: its extra variables can appear in learned nogoods, which may make those nogoods stronger.
Disadvantages
Can prune less: each small constraint sees only part of the problem.
Example: x, y, z ∈ {1, 2} must all differ. No pair fails, but three variables can't share two values.
Can be slow or large: it may create many constraints.
Example: cumulative gets one resource constraint per time point. Making every duration 100 times longer creates 100 times as many. Timetabling's work stays the same.
Watch out: a decomposition is not always weaker.
Constraint | Decomposition compared with the propagator |
|---|---|
All-different | Weaker than the domain-consistent propagator |
Cumulative | Same strength as timetabling, but less efficient |