Skip to content

Commit

Permalink
fix(planning): Allow multiple events in conflict based search.
Browse files Browse the repository at this point in the history
  • Loading branch information
arbimo committed Apr 6, 2024
1 parent 05a0a54 commit 7509e13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion solver/src/solver/search/conflicts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ impl ConflictBasedBrancher {
if self.is_decision_variable(x.affected_bound.variable()) {
// TODO: this assume the variable is binary (and thus set on the first event)
self.conflicts.conflict_since_assignment.fill_with(v, || 0);
assert!(!self.conflicts.assignment_time.contains(v));
// if a variable is touched more than once, assume the latest time is the one of interest
self.conflicts.assignment_time.insert(v, self.conflicts.num_conflicts);
self.conflicts.conflict_since_assignment[v] = 0;
self.conflicts.assignments.trail.push(v);
Expand Down

0 comments on commit 7509e13

Please sign in to comment.