Skip to content

Commit

Permalink
fix(search): set default value for conflict based brancher
Browse files Browse the repository at this point in the history
  • Loading branch information
Shi-Raida committed Nov 4, 2024
1 parent 18404ea commit 3b6b38e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions solver/src/solver/search/conflicts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -346,9 +346,8 @@ impl ConflictBasedBrancher {
}
}

pub fn set_default_value(&mut self, _var: VarRef, _val: IntCst) {
todo!()
// self.default_assignment.values.insert(var, val);
pub fn set_default_value(&mut self, var: VarRef, val: IntCst) {
self.default_assignment.set_from_phase(var, val)
}

/// Increase the activity of the variable and perform an reordering in the queue.
Expand Down

0 comments on commit 3b6b38e

Please sign in to comment.