Skip to content

Commit

Permalink
Fix off-by-one error in Model to Solver literal translation
Browse files Browse the repository at this point in the history
  • Loading branch information
Dekker1 committed May 28, 2024
1 parent 1ac9d31 commit 27dd5a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/huub/src/model/reformulate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ impl VariableMap {
bool::BoolView::IntGreater(v, i) => get_int_lit(slv, v, LitMeaning::GreaterEq(i + 1)),
bool::BoolView::IntGreaterEq(v, i) => get_int_lit(slv, v, LitMeaning::GreaterEq(*i)),
bool::BoolView::IntLess(v, i) => get_int_lit(slv, v, LitMeaning::Less(*i)),
bool::BoolView::IntLessEq(v, i) => get_int_lit(slv, v, LitMeaning::Less(i - 1)),
bool::BoolView::IntLessEq(v, i) => get_int_lit(slv, v, LitMeaning::Less(i + 1)),
bool::BoolView::IntNotEq(v, i) => get_int_lit(slv, v, LitMeaning::NotEq(*i)),
}
}
Expand Down

0 comments on commit 27dd5a7

Please sign in to comment.