Skip to content

Commit

Permalink
fix missing removal of x in solve_mod
Browse files Browse the repository at this point in the history
  • Loading branch information
NikolajBjorner committed Aug 17, 2022
1 parent b3f4d3f commit cb272bd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/math/simplex/model_based_opt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1256,6 +1256,8 @@ namespace opt {

for (unsigned ri : mod_rows) {
rational a = get_coefficient(ri, x);
replace_var(ri, x, rational::zero());

// add w = b mod K
vector<var> coeffs = m_rows[ri].m_vars;
rational coeff = m_rows[ri].m_coeff;
Expand Down

0 comments on commit cb272bd

Please sign in to comment.