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

Optimizers should allow to set the penalty factor for the linear constraint to penalty conversion #982

Closed
stefan-woerner opened this issue May 14, 2020 · 3 comments · Fixed by #1043

Comments

@stefan-woerner
Copy link
Contributor

Qiskit allows to add linear equality constraint to the objective as quadratic penalty terms, multiplied by a large constant, the penalty factor.
Currently, not all optimizers allow to manually set this factor upfront.
This needs to be adjusted accordingly.

@Cryoris Cryoris added this to the 0.8 milestone May 16, 2020
@dlyongemallo
Copy link

I might be interested in looking into this. Is this change intended to be made to the base optimizer class or to specific optimizers only? Can you give more details?

@t-imamichi
Copy link
Contributor

t-imamichi commented Jun 10, 2020

In the previous version, docplex translator can compute the minimum penalty factor automatically. It would be nice to import the logic to the new optimization stack.
https://github.com/Qiskit/qiskit-aqua/blob/bae0ec35dfdbd68a03a0c1db82a3655a7c28d2ea/qiskit/optimization/ising/docplex.py#L237

@a-matsuo
Copy link
Contributor

Created PR #1043 for this issue.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
5 participants