16 lines
234 B
Mathematica
16 lines
234 B
Mathematica
|
|
function sys = double(X)
|
||
|
|
%double Overloaded.
|
||
|
|
|
||
|
|
X = flatten(X);
|
||
|
|
nlmi = length(X.LMIid);
|
||
|
|
|
||
|
|
if (nlmi == 0)
|
||
|
|
sys = NaN;
|
||
|
|
end
|
||
|
|
|
||
|
|
if nlmi>1
|
||
|
|
error('Double not applicable on list of constraints')
|
||
|
|
end
|
||
|
|
|
||
|
|
sys = double(X.clauses{1}.data);
|