Re:Show HN: OSQP: a new first-order solver for large-scale q...
by amelius on Sunday November 26, 2017 @04:51PM
(#15783231)
Is it possible to define whether the x's are real numbers or integers?
[ Parent
| on HN ]
Re:Show HN: OSQP: a new first-order solver for large-scale q...
by sidereus on Sunday November 26, 2017 @05:04PM
(#15783303)
OSQP solves only continuous QPs. For integer variables you need an MIQP solver.
We wrote a Python branch-and-bound wrapper around OSQP to solve MIQPs: https://github.com/oxfordcontrol/miosqp
However, there are more advanced MIQP algorithms out there such as GUROBI or CPLEX.
Re:Show HN: OSQP: a new first-order solver for large-scale q...
by tmyklebu on Sunday November 26, 2017 @06:54PM
(#15783791)
Did you test miosqp against standard MIQPs? For example, in QPLIB, there is a handful of convex mixed-integer QPs.
Re:Show HN: OSQP: a new first-order solver for large-scale q...
by sidereus on Sunday November 26, 2017 @07:50PM
(#15784013)
Haven't tried the MIQP extension against the QPLIB yet. It is just a prototype and it is written in Python. We first need to implement it in C to compare the timings.
Re:Show HN: OSQP: a new first-order solver for large-scale q...
by tmyklebu on Sunday November 26, 2017 @08:49PM
(#15784251)
You could compare number of nodes explored rather than absolute timings to see how inaccuracy solving the relaxations affects branch-and-bound.
Re:Show HN: OSQP: a new first-order solver for large-scale q...
by LolWolf on Sunday November 26, 2017 @05:01PM
(#15783276)
If the variable is constrained to be an integer, the problem becomes NP-hard-as-hell (in both a complexity sense and an approximation sense), sadly. It also stops being convex, so splitting-cone methods can't be directly applied and the solution here goes out the window.
In general, you assume the variables here to be real-valued vectors.