I am trying to solve a convex optimization problem wherein the coefficients can be complex. The native implementation in cvxopt QP doest not seem to support that. I always get the following error:
TypeError: 'q' must be a 'd' matrix with one column
Here's the sample code.
Q = 2*cvxopt.matrix([ [2, .5], [.5, 1] ])
p = cvxopt.matrix([(1.0+1.0j), (1.0+2.0j)])
G = cvxopt.matrix([[-1.0,0.0],[0.0,-1.0]])
h = cvxopt.matrix([0.0,0.0])
A = cvxopt.matrix([1.0, 1.0], (1,2))
b = cvxopt.matrix(1.0)
sol=cvxopt.solvers.qp(Q, p, G, h, A, b)
Can there be a workaround to resolve this? Thanks