10.07.2015 Views

v2007.09.13 - Convex Optimization

v2007.09.13 - Convex Optimization

v2007.09.13 - Convex Optimization

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

666 APPENDIX F. MATLAB PROGRAMSwhile 1cvx_begin % requires CVX Boydvariable X(N,N) symmetric;variable x(N,1);G = [X, x;x’, 1];minimize(trace(G*Y));diag(X) == 1;G == semidefinite(N+1);A*x max(diag(d))*1e-8)oldtrace = traceGY;traceGY = trace(G*Y)if rankG == 1breakenddigits = 1e3;if round((oldtrace - traceGY)*digits) == 0disp(’STALLED’);disp(’ ’);Y = -v(:,2:N+1)*(v(:,2:N+1)’ + randn(N,1)*v(:,1)’);endcount = count + 1;endxcounttocdisp(’Ax

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!