diff --git a/pypolycontain/operations.py b/pypolycontain/operations.py index 3d7b3cb..1a97b77 100644 --- a/pypolycontain/operations.py +++ b/pypolycontain/operations.py @@ -525,7 +525,7 @@ def convex_hull_of_point_and_polytope(x, Q): new_h=np.zeros((Q.P.h.shape[0]+2,1)) new_h[Q.P.h.shape[0],0],new_h[Q.P.h.shape[0]+1,0]=1,0 new_P=pp.H_polytope(new_H,new_h) - return pp.AH_polytope(new_T,new_t,new_P) + return pp.AH_polytope(t=new_t,T=new_T,P=new_P) def minkowski_sum(P1,P2): @@ -817,4 +817,4 @@ def decompose(zonotope,dimensions): G_i_result = [result.GetSolution(G_i[i]) for i in range(len(dimensions))] list_zon = [pp.zonotope(G = G_i_result[i],x = x_i_result[i]) for i in range(len(dimensions))] - return list_zon \ No newline at end of file + return list_zon