Computes separating hyperplane between the set and given point.
h = separate(S,x)
h = S.separate(x)
S |
Any set derived from ConvexSet class, e.g. YSet or Polyhedron. Class: ConvexSet |
x |
The point given as vector in the same dimension as ConvexSet. Class: double |
h |
Separating hyperplane defined as ![]() Class: double |
x = sdpvar(2,1);
F = set(0.3*x'*x -0.7*x(1)<=1) + set(-x(1)+2.3*x(2)<=0.5);
S = YSet(x,F);Compute the separating hyperplane from the point v=[-2,2]
v = [-3;2];
h = S.separate(v)
h = 2.01047891957449 -2.21283525231897 -5.98777459338193Construct a new polyhedron out of the hyperplane and plot the sets
P = Polyhedron('He',h);
S.plot; hold on; axis([-4 4 -3 3]); text(v(1),v(2),'x'); P.plot;
Plotting... 28 of 40
◀ | outerapprox | listfunctions | ▶ |
© 2010-2013 Colin Neil Jones: EPF Lausanne, colin.jones@epfl.ch
© 2010-2013 Martin Herceg: ETH Zurich, herceg@control.ee.ethz.ch