Disciplined convex programming error: Cannot perform the operation: {invalid} .* {real affine}

Hello! I’m solving a convex problem as follow:

And I used CVX as solver, but there are some mistakes. Please see my problem below:

Line 105 is shown as:

I don’t know how to deal with it. If you have any suggestion, please tell me. Thanks a lot.

invalid could be input data having the value nan, which could occur if you use the variable value from a previous failed (maybe infeasible) CVX optimization as input for the current problem.

Hello Mark.
Yes, I used the variable value from previous failed CVX optimization. But how can I deal with this situation?

You’re probably better off using a non-convex nonlinear optimizer, for instance under YALMIP.

Hello max!

I hope that you was able to deal with problems.

I just want to ask if you managed to write (38b) constraint on CVX. I have a constraint similar to it but I can not write the third and fourth term, it keeps give me errors.

So I will appreciate your help, if you can tell me the code of this constraint.

Thank you in advance.