Add or tweak a converter to deal with trivial variables and constraints
See original GitHub issueWhat is the expected enhancement?
QuadraticProgram
may include trivial variables and constraints.
For example, #227 includes a trivial variable (lower bound and upper bound are equal).
Here is an example of a trivial constraint.
from qiskit_optimization.problems import QuadraticProgram
qp = QuadraticProgram()
qp.linear_constraint(sense='==', rhs=1) # constraint: 0 == 1
It is good to eliminate such trivial cases in some existing converters or a new converter.
Fixes #227
Issue Analytics
- State:
- Created 2 years ago
- Comments:10 (4 by maintainers)
Top Results From Across the Web
qiskit_optimization encounters an exception when trying to ...
from qiskit_optimization.problems import QuadraticProgram from ... Add or tweak a converter to deal with trivial variables and constraints # ...
Read more >Lecture notes for CMU's course on Linear Programming ...
First, we can add slack variables for each constraint aix ≥ bi to get equality constraints aix − si = bi. Second,.
Read more >Cplex Error: Adding trivial infeasible linear constraint
The error messages tells you what happens: you added a constraint that is trivially infeasible, i.e., that can obviously not be satisfied.
Read more >My Constraint Programming Blog: October 2010 Archives
This was a straight forward conversion from other implementations. The thing that got me confused somewhat was to convert the 1-based MiniZinc ...
Read more >Automatically Mapping DTO to Entity on Spring Boot APIs
Let's learn how ModelMapper can help us automate the mapping process of DTOs into entities on Spring Boot APIs.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@t-imamichi - if you are already working on a PR for another fix in the int2bin code, please go ahead and include the fix for this issue in your other PR. Thank you!
@t-imamichi and @atulanand206 - Thank you again for your quick response and for investigating this issue and working on a fix!
@atulanand206 - are you thinking about a fix that looks something like this?