Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions pypolycontain/operations.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down Expand Up @@ -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
return list_zon