Every now and then when my algortihm calls the cvx I get this error. (The one on the title)
It doesn’t always display the error, only sometimes. If I re-run the algorithm once again it will most likely not display the message again.
It points to the line where I declare the variable on cvx, such as
variable x(n)
Judging by the message it seems matlab doesn’t recognize that I’m on cvx environment for some reason even though I called cvx_begin on the previous line. Yeah, I’m sure I did the correct sintax because once again, if I re-run it turns out well.
Basically re-running solves the problem, however I never know when I’m gonna get the error again and if I call cvx a lot of times inside an algorithm the risk of getting this error raises…
Any idea of why does this happen?