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:: Lt(left, right)

38 Assert first set is less than the second set.

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

42 Assert first set is less than or equal to the second set.

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

46 Assert first set is equal to the second set.

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

50 Assert first set is not equal to the second set.

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

54 Assert first set is greater than the second set.

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

58 Assert first set is greater than or equal to the second set.