About the "diag" function

Uncategorized
Aug 14, 2022
N

ā€œVā€ of size M \times M is a hermitian semidefinite variable.
Given a vector ā€œaā€ of size M \times 1, the constraint is written as follows:
diag(V)<=a.

Does the CVX support the above constraint?

J

Yes. test it you will know. just make sure their dimensions coincide.

N
Replying to #2

Thanks. I will test it.