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

9 lines
249 B
Mathematica
Raw Normal View History

2019-12-18 11:25:45 +00:00
function sys = flatten(sys)
% Go from an internal format which is hierarchical and performs better
% when adding many constraint objects.
if length(sys.clauses)>0
if isa(sys.clauses{1},'cell')
sys.clauses = [sys.clauses{:}];
end
end