We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Description #1319 introduced a bug in `dimod::ConstrainedQuadraticModel::fix_variables()``.
Steps To Reproduce
#include "dimod/constrained_quadratic_model.h" auto cqm = dimod::ConstrainedQuadraticModel<double>(); cqm.add_variables(dimod::Vartype::BINARY, 5); auto c = cqm.add_linear_constraint({3, 1, 4, 0}, {1, 2, 3, 4}, dimod::Sense::LE, 5); cqm.constraint_ref(c).add_quadratic(3, 1, -15); cqm.constraint_ref(c).add_quadratic(4, 0, 14); cqm.constraint_ref(c).add_quadratic(4, 3, 17); std::vector<int> variables{1, 2, 3}; std::vector<double> values{1, 1, 1}; cqm.fix_variables(variables.begin(), variables.end(), values.begin());
will cause memory corruption.
The text was updated successfully, but these errors were encountered:
Fix Expression::fix_variables() for quadratic expressions
0d6b1c9
Closes dwavesystems#1351
4128012
Fix the handling of quadratic constraints in presolve
24e2bf5
The error was fixed in dimod 0.12.10. See dwavesystems/dimod#1351
Successfully merging a pull request may close this issue.
Description
#1319 introduced a bug in `dimod::ConstrainedQuadraticModel::fix_variables()``.
Steps To Reproduce
will cause memory corruption.
The text was updated successfully, but these errors were encountered: