Now I have a high-dimension QCQP problem.
x is a high-dimension matrix.
I need to solve this problem so I can have different row matrix.
But the result is a matrix which each row is same.
x=[1,0.5;1,0.5]
This is my code.
cvx_clear
m=4;
f=1;
k=2;
z = 10*rand(m,k);
data=[0,0;1,1;0,1;1,2];
cvx_begin
variable x(k,f+1)
variable y(m,k+1)
minimize( sum(y(:,1)) + sum(sum(power(y(:,2:k+1),2)-z)) + sum(sum(power((x(:,1:f)*data(:,1:f)'+repmat(x(:,f+1),1,m)-repmat(data(:,f+1)',k,1)),2)-z')) )
subject to
power(y(:,2:k+1),2)-z<=0;
power((x(:,1:f)*(data(:,1:f)')+repmat(x(:,f+1),1,m)-repmat(data(:,f+1)',k,1)),2)-z'<=0;
(-1)*y(:,1)<=0;
repmat(y(:,1),1,k)-y(:,2:k+1)<=0;
cvx_end
