Skip to content

Assertion Error: zp.remove_dependence_and_compress #6

Closed

Description

@rahulswa08

zp.remove_dependence_and_compress throws an assertion error when tried to get reduced zonotope of more than one dimension.

x_zono: zp.polyZonotope = zp.polyZonotope([[1.0],[1.0]], n_dep_gens=1, id=0, device='cpu') 
y_zono: zp.polyZonotope = zp.polyZonotope([[2.0],[2.0]], n_dep_gens= 1, id=1, device='cpu') 
z_zono: zp.polyZonotope = zp.polyZonotope([[3.0],[3.0]], n_dep_gens= 1, id=2, device='cpu') 
mul_mini = zp.remove_dependence_and_compress(mul_pz, id=np.array([0,1]))
image

Activity

  1. rahulswa08 commented on Mar 22, 2024

    @rahulswa08
    Author

    Solved this by commenting out the assertion (similar to matPolyZonotope case).
    Not sure if its correct

    image
  2. BuildingAtom commented on Mar 22, 2024

    @BuildingAtom
    Collaborator

    mul_pz is not shared so I can't verify for sure that this is the case; however, this assertion is thrown to indicate that a remaining indeterminate is not independently sliceable. This clarification should be addressed with #5 (and perhaps an additional argument to disable this independent slice requirement), so I'll be closing this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions