May 18, 2022, 1:28am
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.
This is my code.
z = 10*rand(m,k);
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')) )
It might have nothing to do with high dimension or low dimension, CVX will solve them anyway. Maybe it should be the same, we don’t know your problem too well and your data are randomly generated. and please re-format your code in Markdown format (per
How do I include Matlab source code in forum posts?) so it be runnable.
May 18, 2022, 6:20am
Thanks for your reply. I have finished it so you can run it.
[ 1.8047 0.0886;
you’ll get a different result.
Note that y and x are un-related variables in your problem. and your problem looks simple, I’m not sure if there is a close-form solution to it.
May 18, 2022, 7:49am
Thank you very much. It helps me a lot. Besides, How did you find the value of Z?
Run your program 3 times.