Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to write tr(A^TLA)? #15

Open
xpuoxford opened this issue Jul 29, 2020 · 1 comment
Open

How to write tr(A^TLA)? #15

xpuoxford opened this issue Jul 29, 2020 · 1 comment

Comments

@xpuoxford
Copy link

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 #14 (comment)

@xinyueshen
Copy link
Member

@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').

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants