savesdpafile

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);
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.

If you have equalities in your model, you can circumvent this by telling YALMIP to eliminate them by using the option ‘removeequalities’ (see details sdpsettings)