Polyhedra Module ================ Polyhedron class allows users to build and inspect polyherons. .. py:class:: Polyhedron .. py:property:: equalities Returns a list of the equalities in a polyhedron. .. py:property:: inequalities Returns a list of the inequalities in a polyhedron. .. py:property:: constraints Returns a list of the constraints of a polyhedron. .. py:method:: disjoint(self) Returns a polyhedron as a disjoint. .. py:method:: isuniverse(self) Return ``True`` if a polyhedron is the Universe set. .. py:method:: subs(self, symbol, expression=None) Substitutes an expression into a polyhedron and returns the result. To create a polyhedron, the user can use the following functions to define equalities and inequalities as the constraints. .. py:function:: Eq(left, right) Returns a Polyhedron instance with a single constraint as *left* equal to *right*. .. py:function:: Ne(left, right) Returns a Polyhedron instance with a single constraint as *left* not equal to *right*. .. py:function:: Lt(left, right) Returns a Polyhedron instance with a single constraint as *left* less than *right*. .. py:function:: Le(left, right) Returns a Polyhedron instance with a single constraint as *left* less than or equal to *right*. .. py:function:: Gt(left, right) Returns a Polyhedron instance with a single constraint as *left* greater than *right*. .. py:function:: Ge(left, right) Returns a Polyhedron instance with a single constraint as *left* greater than or equal to *right*.