"There is no display at all,


I have a question. If the CVX constraints are not satisfied or the optimization fails, it should give an error or display a failure message, but why does my code not produce any output after applying CVX? I have already tested and successfully installed CVX, and the constraints are valid.I have also switched the solver.

Remove all disp statements, from your code, then run it and show us all the output. If there is no output of any kind, something would appear to be wrong with your CVX or MAATLAB installation; unless you used the quiet option, which is not in the code you showed.