Skip to content
New issue

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

toqubo_constraint! do not accept ScalarQuadraticFunction, only ScalarAffineFunction #19

Closed
AndradeTiago opened this issue Feb 10, 2022 · 3 comments · Fixed by #21
Closed
Labels
bug Something isn't working enhancement New feature or request

Comments

@AndradeTiago
Copy link
Collaborator

AndradeTiago commented Feb 10, 2022

Extend the current toqubo_constraint! to accept quadratic constraints should be trivial since there is already a reduce_degree function.

@AndradeTiago AndradeTiago added the enhancement New feature or request label Feb 10, 2022
@bernalde
Copy link
Collaborator

@pedromxavier
Copy link
Member

Thanks for pointing that out! It is included as availble on the coverage table but I think I've lost that chunk of code during some copy/pasting 😵‍💫

@pedromxavier pedromxavier added the bug Something isn't working label Feb 11, 2022
@AndradeTiago
Copy link
Collaborator Author

Oh good to know that it was already implemented. A test case for each accepted constraint type would be good to identify if something stops working.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants