CVX inside Nested loops


(ali) #1

Hi,
Can i use CVX inside nested loops? For example
for i = 1: 10
for j = 1: 4
while n < 100



cvx_begin


cvx_end
end
end
end


(Mark L. Stone) #2

CVX can be used inside nested for and while loops. Do you have a more specific question?


(ali) #3

hi,
Thanks for your answer
When i run my program, it doesn’t work well. It works only for first i, and first j, and whole while loop;
i thought it’s because of CVX, but it wasn’t. I fixed it now.
Thanks a lot