Hi

I’m kind of new to using cvx so please bare with me if my question is silly

If I have a matrix variable that needs to be found in the optimization process and the constraint is that all the values in that matrix are in a specific range [a, b] how should I write this in cvx?

Could I have two for loops in the constraint?

variable B(m,n)

…

subject to

for i

for j

a<B(i,j)<b

end

end

does this make sense?