Dynamic-Calibration/utils/YALMIP-master/extras/@constraint/hull.m

22 lines
612 B
Matlab
Executable File

function [Fhull,t,y] = hull(varargin)
% HULL Construct a model of the convex hull
%
% H = hull(F1,F2,...)
%
% OUTPUT
% H : SET object describing the convex hull of the input constraints
%
% INPUT
% Fi : SET objects with constraints
%
% Note that the convex representation of the convex hull requires a lifting
% (introduction of new variables). Hence, if you have many set of
% constraints, your problem rapidly grows large.
for i = 1:nargin
if isa(varargin{i},'constraint')
varargin{i} = lmi(varargin{i});
end
end
% Call the hull operator from the set
[Fhull,t,y] = hull(varargin{:});