My optimization variable is embedded in a very complex and lengthy formula, making it impossible for me to directly present real(trace(V*X)) after maximize. What should I do? Should I use an expression?The variable I need to optimize, highlighted in green, is embedded in a very complex formula, as shown in the figure.The second image shows my idea.
Expressions are just a shorthand for writing your model. They don’t fundamentally do anything you can;t do without them. Expressions might make the program easier to write or understand, but their use is usually optional.
If you write a program using expressions, and CVX accepts it and the program does what you want, then declare victory and be happy.
I have no idea what you did. The problem you showed is non-convex. Yet you show some CVX output, which indicated CVX’s Successive Approximation Method was used (and perhaps failed).