Skip to content

Commit

Permalink
use monomial variable, not the fixed variable
Browse files Browse the repository at this point in the history
  • Loading branch information
NikolajBjorner committed Jan 14, 2025
1 parent a08a3ee commit 89ed4d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/math/lp/monomial_bounds.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ namespace nla {
}
vector<std::pair<lp::mpq, lpvar>> coeffs;
coeffs.push_back({coeff, free_var});
coeffs.push_back({mpq(-1), v});
coeffs.push_back({mpq(-1), m.var()});
lpvar j = lra.add_term(coeffs, UINT_MAX);
lra.update_column_type_and_bound(j, llc::EQ, mpq(0), d);
}
Expand Down

0 comments on commit 89ed4d6

Please sign in to comment.