You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This problem is fully determined by its constraints, that is, the cost function is irrelevant. The condition number of the constraints matrix is $1/\alpha$, which can trip some solvers off depending on their algorithm.
For instance, OSQP solves the problem for $\alpha=10^{-3}$:
In [14]: P, q, A, b=get_problem(1e-3)
...: solve_qp(P, q, A=A, b=b, solver="osqp")
/home/frankd/src/qpsolvers/qpsolvers/solvers/conversions/warnings.py:35: UserWarning: ConvertedPtoscipy.sparse.csc.csc_matrixForbestperformance, buildPasascipy.sparse.csc_matrixratherthanasanumpy.ndarraywarnings.warn(
/home/frankd/src/qpsolvers/qpsolvers/solvers/conversions/warnings.py:35: UserWarning: ConvertedAtoscipy.sparse.csc.csc_matrixForbestperformance, buildAasascipy.sparse.csc_matrixratherthanasanumpy.ndarraywarnings.warn(
Out[14]: array([-1.29069624e-09, 1.00000000e+03])
But it wrongly asserts that the problem is unfeasible for $\alpha=10^{-4}$:
In [15]: P, q, A, b=get_problem(1e-4)
...: solve_qp(P, q, A=A, b=b, solver="osqp")
/home/frankd/src/qpsolvers/qpsolvers/solvers/conversions/warnings.py:35: UserWarning: ConvertedPtoscipy.sparse.csc.csc_matrixForbestperformance, buildPasascipy.sparse.csc_matrixratherthanasanumpy.ndarraywarnings.warn(
/home/frankd/src/qpsolvers/qpsolvers/solvers/conversions/warnings.py:35: UserWarning: ConvertedAtoscipy.sparse.csc.csc_matrixForbestperformance, buildAasascipy.sparse.csc_matrixratherthanasanumpy.ndarraywarnings.warn(
/home/frankd/src/qpsolvers/qpsolvers/solvers/osqp_.py:192: UserWarning: OSQPexitedwithstatus'primal infeasible'warnings.warn(f"OSQP exited with status '{res.info.status}'")
Solution
The solution $(x^*, y^*)$ to this problem is $x^* = 0$, $y^* = \frac{1}{\alpha}$.
I propose to add the following problem to the
github_ffa
test set. The problem can be constructed as follows:Motivation
This problem is fully determined by its constraints, that is, the cost function is irrelevant. The condition number of the constraints matrix is$1/\alpha$ , which can trip some solvers off depending on their algorithm.
For instance, OSQP solves the problem for$\alpha=10^{-3}$ :
But it wrongly asserts that the problem is unfeasible for$\alpha=10^{-4}$ :
Solution
The solution$(x^*, y^*)$ to this problem is $x^* = 0$ , $y^* = \frac{1}{\alpha}$ .
References
This problem is inspired from Geometric and numerical aspects of redundancy. GHFFA01 is a relaxed version of this problem.
The text was updated successfully, but these errors were encountered: