Y = cvx.Variable((n,n))
obj = cvx.Maximize(cvx.log_det(Y))
constraints = []
F = np.array([
[Y, Y@(A-B@L).T],
[(A-B@L)@Y, Y ]])
for i in range(m):
constraints+= [L[i,:]@Y@L[i,:].T<=1]
constraints+= [F>>0] //F should be positive semidefinite
p = cvx.Problem(obj,constraints)
res = p.solve() //error showing line
When I use this function, I get the error:
AttributeError: 'numpy.ndarray' object has no attribute 'parameters'.
What am I missing in the formulation? Can someone please help me out?
Thank you
Sandeep