Vectorization of unit modulus constraint

Uncategorized
Jan 16, 2024
S

I have a variable V(T,N), and my constraints are

for i=1:T
for j=1:N
abs(V(i,j))<=1;
end
end

My objective function is convex and my code runs on cvx, however it takes lot of time to produce the output, I would like to know if the above constraint on matrix V, such that each element has magnitude less than or equal to 1 can be vectorized.

M

abs(V) <= 1
or
abs(V(:)) <= 1

S

Thank you very much. it helped me a lot.