wmpy.core.polytope.Polytope¶
- class Polytope(expressions, variables, env)[source]¶
Bases:
objectInternal class for convex H-polytopes.
- inequalities¶
list of wmpy.core.Inequality
- N¶
the number of variables
Default constructor for a H-polytope defined on an ordered list of variables (the continuous integration domain).
- Parameters:
expressions (
Collection[FNode]) – list of linear inequalities in pysmt formatvariables (
Collection[FNode]) – the continuous integration domainenv (
Environment) – the pysmt environment
Methods
Converts the polytope to a tuple of numpy arrays.
Returns a pysmt formula (FNode) encoding the polytope.