Skip to content

Commit

Permalink
preprocess 0 to false
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexandreDubray committed Jun 10, 2024
1 parent ce47406 commit 31c4868
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/preprocess.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ where
if self.problem[variable].is_probabilitic() && self.problem[variable].weight().unwrap() == 1.0 {
self.propagator.add_to_propagation_stack(variable, true, 0, None);
}
if self.problem[variable].is_probabilitic() && self.problem[variable].weight().unwrap() == 0.0 {
self.propagator.add_to_propagation_stack(variable, false, 0, None);
}
}

// Find unit clauses
Expand Down

0 comments on commit 31c4868

Please sign in to comment.