dmcp icon indicating copy to clipboard operation
dmcp copied to clipboard

How to write tr(A^TLA)?

Open xpuoxford opened this issue 5 years ago • 1 comments

The following can be recognized by dmcp.

A = Variable((2,2))
L = Variable((2,2))
Y = Variable((2,2))
expr = trace(Y.T * A)
prob = Problem(Minimize(expr), [Y == L.T * A])

Thanks; but this returns an error stating 'Problem does not follow DCP rules' in prob.solve(). also:print(prob.is_dcp()) return False.

  • still not working.

Originally posted by @xinyueshen in https://github.com/cvxgrp/dmcp/issues/14#issuecomment-665299829

xpuoxford avatar Jul 29 '20 22:07 xpuoxford

@xpuoxford print(prob.is_dcp()) returns False, because it is not DCP. It is DMCP, so print(is_dmcp(prob)) returns True. To call the DMCP method, please run prob.solve(method='bcd').

xinyueshen avatar Jul 29 '20 23:07 xinyueshen