Skip to content

Commit

Permalink
fix(cp): Substitution was not done for linear eq.
Browse files Browse the repository at this point in the history
  • Loading branch information
arbimo committed Jun 12, 2023
1 parent 0da7c1f commit 299483b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion planning/planning/src/chronicles/constraints.rs
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,8 @@ impl Substitute for ConstraintType {
lb: substitution.sub_linear_sum(lb),
ub: substitution.sub_linear_sum(ub),
}),
InTable(_) | Lt | Eq | Neq | Or | LinearEq(_) => self.clone(), // no variables in those variants
LinearEq(sum) => LinearEq(substitution.sub_linear_sum(sum)),
InTable(_) | Lt | Eq | Neq | Or => self.clone(), // no variables in those variants
}
}
}
Expand Down

0 comments on commit 299483b

Please sign in to comment.