meedshit

s6p1d_template

Jun 26th, 2017
36
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. clear; close all; clc;
  2.  
  3. run s6p1a_template
  4.  
  5. % your solution
  6.  
  7. cvx_begin
  8. variables lambda(6) eta(7) nu(7);
  9. maximize(-eta'*d);
  10. subject to
  11. (c + lambda'*A - nu'*M + eta'*M) == 0;
  12. nu>=0;
  13. eta>=0;
  14.  
  15. cvx_end
Add Comment
Please, Sign In to add comment