Hello everyone,
I am trying to solve a linear program (see below) with the
cvxopt.solvers.conelp routine.
The standard solver says the problem is infeasable - even though there
are valid solutions and the problem is bounded through the last line.
Changing the accuracy of the solver to e-12 did not help.
Solving the lp with the glpk solver works just fine, so I think there
might be a problem inside the conelp routine.
I would really appreciate some help on this problem,
thanks
Jens
#KKT G
G= matrix(
[[ -1.0 , 0.0 , 0.0 , 1.0 , 0.0 , 0.0 ],
[ 0.0 , 0.0 , 0.0 , -1.0 , 0.0 , 0.0 ],
[ -0.278682443725 , 0.527903820525 , -1.0 , 0.0 , 0.0 , 0.0 ],
[ -0.629908785553 , 0.793667931539 , -1.0 , 0.0 , 0.0 , 0.0 ],
[ -0.0432155557167 , 0.207883514779 , -1.0 , 0.0 , 0.0 , 0.0 ],
[ -0.476176535661 , 0.690055458395 , -1.0 , 0.0 , 0.0 , 0.0 ],
[ -0.751636649095 , 0.866969808641 , -1.0 , 0.0 , 0.0 , 0.0 ],
[ 0.0 , 0.0 , 0.0 , 0.278682443725 , -0.527903820525 , 1.0 ],
[ 0.0 , 0.0 , 0.0 , 0.629908785553 , -0.793667931539 , 1.0 ],
[ 0.0 , 0.0 , 0.0 , 0.0432155557167 , -0.207883514779 , 1.0 ],
[ 0.0 , 0.0 , 0.0 , 0.476176535661 , -0.690055458395 , 1.0 ],
[ 0.0 , 0.0 , 0.0 , 0.751636649095 , -0.866969808641 , 1.0 ],
[ -11.6202697633 , 18.7959477155 , -32.612823776 ,
1.16202697633 ,
-1.87959477155 , 3.2612823776 ]])
#aim min c*x
c = matrix([11.
6202697633 , -18.7959477155 , 32.612823776 ,
-
1.16202697633 , 1.87959477155 , -3.2612823776] )
#constraints h
h = matrix([-1e-07 , 0.0 , 1.49717290861 , -0.460428075304 ,
0.875609571921 , -0.171607719008 , -0.744622917015 , -1.49717290861 ,
0.460428075304 , -0.875609571921 , 0.171607719008 , 0.744622917015 ,
0.9999999 ])
sol = solvers.lp(c, G.T, h )