Exemple #1
0
 def compute_dual_hrep(self):
     """Compute halfspaces of the dual cones."""
     for (stance_id, cone_vertices) in enumerate(self.dual_vrep):
         B, c = Polytope.hrep(cone_vertices)
         self.dual_hrep.append((B, c))
 def compute_dual_hrep(self):
     """Compute halfspaces of the dual cones."""
     for (stance_id, cone_vertices) in enumerate(self.dual_vrep):
         B, c = Polytope.hrep(cone_vertices)
         self.dual_hrep.append((B, c))
Exemple #3
0
 def compute_primal_hrep(self):
     """Compute halfspaces of the primal tube."""
     try:
         self.full_hrep = (Polytope.hrep(self.full_vrep))
     except RuntimeError as e:
         raise Exception("Could not compute primal hrep: %s" % str(e))
 def compute_primal_hrep(self):
     """Compute halfspaces of the primal tube."""
     try:
         self.full_hrep = (Polytope.hrep(self.full_vrep))
     except RuntimeError as e:
         raise Exception("Could not compute primal hrep: %s" % str(e))