Solver: Ensure multi conflict rules still get added to learned pool
parent
de3931c742
commit
3f5dde9873
|
@ -473,6 +473,7 @@ class Solver
|
||||||
// there is only ever exactly one positive decision in a multiconflict rule
|
// there is only ever exactly one positive decision in a multiconflict rule
|
||||||
foreach ($rule->getLiterals() as $literal) {
|
foreach ($rule->getLiterals() as $literal) {
|
||||||
if (!isset($seen[abs($literal)]) && $this->decisions->satisfy(-$literal)) {
|
if (!isset($seen[abs($literal)]) && $this->decisions->satisfy(-$literal)) {
|
||||||
|
$this->learnedPool[\count($this->learnedPool) - 1][] = $rule;
|
||||||
$l = $this->decisions->decisionLevel($literal);
|
$l = $this->decisions->decisionLevel($literal);
|
||||||
if (1 === $l) {
|
if (1 === $l) {
|
||||||
$l1num++;
|
$l1num++;
|
||||||
|
|
Loading…
Reference in New Issue