1 Polyhedra Module

2 ================

4 .. py:class:: Polyhedron

6 Polyhedron class allows users to build and inspect polyherons. The following methods provide the properties of a polyhedron.

8 .. py:method:: equalities(self)

10 Return a list of the equalities in a polyhedron.

12 .. py:method:: inequalities(self)

14 Return a list of the inequalities in a polyhedron.

16 .. py:method:: constraints(self)

18 Return ta list of the constraints of a polyhedron.

20 The following unary operations can be used to inspect a polyhedron.

22 .. py:method:: disjoint(self)

24 Returns a polyhedron as a disjoint.

26 .. py:method:: isuniverse(self)

28 Return ``True`` if a polyhedron is the Universe set.

30 .. py:method:: subs(self, symbol, expression=None)

32 Subsitutes an expression into a polyhedron and returns the result.

34 To create a polyhedron, the user must use the folloing functions to define the equalities and inequalities which are the contraints of a polyhedron.

36 .. py:function:: Eq(left, right)

38 Create a constraint by setting *left* equal to *right*.

40 .. py:function:: Ne(left, right)

42 Create a constraint by setting *left* not equal to *right*.

44 .. py:function:: Lt(left, right)

46 Create a constraint by setting *left* less than *right*.

48 .. py:function:: Le(left, right)

50 Create a constraint by setting *left* less than or equal to *right*.

52 .. py:function:: Gt(left, right)

54 Create a constraint by setting *left* greater than *right*.

56 .. py:function:: Ge(left, right)

58 Create a constraint by setting *left* greater than or equal to *right*.