CVX optimization of semidefinite relaxation (SDR) with complex matrix
7 次查看(过去 30 天)
显示 更早的评论
I need to optimize the following semidefinite relaxation problem
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1103030/image.png)
Here is my code with CVX tool
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1103035/image.png)
where N is the size of matrix W. There is an error say "Expressions in objective functions must be real." I don't know how to solve it.
0 个评论
回答(1 个)
Shivani Dixit
2022-8-24
Hello,
From the code provided it seems that you are calculating the traces of a complex valued matrix and then comparing it with some value. To my understanding such an operation is not meaningful since complex comparison is not valid.
If this is the case you need to ensure that the values are real before comparison.
If this is not the case please do let me know the values that your matrix is using to figure out the issue.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Introduction to Installation and Licensing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!