Created
October 12, 2020 08:52
-
-
Save iglesias/8d682c7a1b36143c25b6700845f1edb2 to your computer and use it in GitHub Desktop.
CVX experiment
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
c_num_simulations = 1000; | |
for n = 1:c_num_simulations | |
cvx_begin | |
variable Z(66, 7); | |
rho = 1; tau = 0.5; | |
objective = rho*norm_nuc(Z) + tau*sum(norms(Z, 2, 2)); | |
minimize(objective); | |
subject to | |
% y is an observation | |
% A and V are model matrices | |
y == V*A*vec(Z); | |
cvx_end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment