Skip to content
This repository has been archived by the owner on Dec 7, 2021. It is now read-only.

Fix problem in qp.from_docplex when no explicit varnames are given. #963

Merged

Conversation

stefan-woerner
Copy link
Contributor

When creating a docplex model without explicit variable names qp.from_docplex did crash in case of linear equality constraints, which is fixed by this PR.

@woodsp-ibm
Copy link
Member

Since this seems to have not been caught by unit tests it would seem prudent to have a unit test that covers this aspect of use to ensure it works and stays working under any changes,

@stefan-woerner
Copy link
Contributor Author

Since this seems to have not been caught by unit tests it would seem prudent to have a unit test that covers this aspect of use to ensure it works and stays working under any changes,

@woodsp-ibm done!

@manoelmarques manoelmarques merged commit 8d2b1fa into qiskit-community:master May 8, 2020
@stefan-woerner stefan-woerner deleted the fix-fromdocplex-varnames branch May 10, 2020 09:40
manoelmarques pushed a commit to qiskit-community/qiskit-optimization that referenced this pull request Jan 14, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants