Skip to content

constrained formulation code with CVX doesn't work #4

@MohamedOmar2014

Description

@MohamedOmar2014

I tried to run this code on my data but it doesn't work
for iter=1:N
% Run the optimization
cvx_begin quiet
variable xi(m,m)
minimize(norm(Theta-Theta*xi));
subject to
diag(xi)==zeros(m,1);
if iter>1
xi(smallinds)==0;
end
cvx_end
% Use thresholding
fprintf('\n Iteration %d\n',iter)
Xi=full(xi)
smallinds = (abs(Xi)<lambda);
end
This message usually appears
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions