Dynamic-Calibration/utils/YALMIP-master/extras/@lmi/sosd.m

8 lines
226 B
Mathematica
Raw Permalink Normal View History

2019-12-18 11:25:45 +00:00
function [h,parvar,Q,v] = sosd(X)
% SOSD Returns sum-of-squares decomposition (if available)
if ~is(X,'sos')
error('SOS decompositions are only available for SOS objects');
else
[h,parvar,Q,v] = sosd(sdpvar(X));
end