savesdpafile exports a YALMIP model to SDPA ASCII format
Syntax
savesdpafile(F,h,filename)
Examples
Export SDP problem to ASCII file.
A = randn(3,3);A = -A*A';
P = sdpvar(3,3);
F = [P>0, A'*P+P*A <= -eye(3)];
savesdpafile(F,trace(P),'mysdpamodel');
P = sdpvar(3,3);
F = [P>0, A'*P+P*A <= -eye(3)];
savesdpafile(F,trace(P),'mysdpamodel');
Comments
The SDPA ASCII format is limited (equalities and second order cones are not supported), hence many YALMIP models will fail to be saved.