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.