1f2756b7f4c7a5357c3e82a72dc5e354d2f8ca60

1 Polyhedra Module

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

4 Polyhedron class allows users to build and inspect polyherons.

6 .. py:class:: Polyhedron

8 .. py:property:: equalities

10 Returns a list of the equalities in a polyhedron.

12 .. py:property:: inequalities

14 Returns a list of the inequalities in a polyhedron.

16 .. py:property:: constraints

18 Returns a list of the constraints of a polyhedron.

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

22 Returns a polyhedron as a disjoint.

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

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

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

30 Substitutes an expression into a polyhedron and returns the result.

32 To create a polyhedron, the user can use the following functions to define equalities and inequalities as the constraints.

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

36 Returns a Polyhedron instance with a single constraint as *left* equal to *right*.

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

40 Returns a Polyhedron instance with a single constraint as *left* not equal to *right*.

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

44 Returns a Polyhedron instance with a single constraint as *left* less than *right*.

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

48 Returns a Polyhedron instance with a single constraint as *left* less than or equal to *right*.

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

52 Returns a Polyhedron instance with a single constraint as *left* greater than *right*.

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

56 Returns a Polyhedron instance with a single constraint as *left* greater than or equal to *right*.