sdpt3 "Only scalar terms can be added to a logdet term"

15 views
Skip to first unread message

Wanming Hao

unread,
Jul 19, 2018, 4:09:15 AM7/19/18
to YALMIP
I would like to solve the following plroblem:

X=sdpvar(4,4,'hermitian','complex')
Obj=logdet(X+1)+X
F=[trace(X)<=10]
ops = sdpsettings('solver','sdpt3','verbose',1);
sol = solvesdp(F,-Obj,ops);


But the results show that "Only scalar terms can be added to a logdet term", if there is any method can be used   to solve the above problem? Thank you.

Johan Löfberg

unread,
Jul 19, 2018, 4:34:02 AM7/19/18
to YALMIP
well, as it says, the objective makes no sense. What does it mean to minimize X when X is a matrix?? Perhaps you mean trace(X)
Reply all
Reply to author
Forward
0 new messages