Hello,
I have a problem formulation issue with my simulation.
Depending on my simulation parameters, I need to declare a set of complex vector variables with different dimensions (the dimension also depends on other simulation parameters). So I want to write something like this:
n = [3, 4, 2, 3, 3];
for i = 1:5
% the i-th item in cell x is a vector of dimension n(i)
variable x{i}(n(i)) complex
end
Obviously, this will not compile with CVX because the x{i} is reserved for dual variables. I cannot also use a 3D array since the dimensions of the vector variables can be different and I want to avoid rewriting the formulation when I change my simulation parameters.
Perhaps, a shortest version of my question: is it possible to index primal variables in CVX? If not, can you please suggest a workaround? Thanks.