Update plot examples
[linpy.git] / doc / polyhedra.rst
1 Polyhedra Module
2 ================
3
4 .. py:class:: Polyhedron
5
6 Polyhedron class allows users to build and inspect polyherons.
7
8 .. py:method:: equalities(self)
9
10 Return a list of the equalities in a polyhedron.
11
12 .. py:method:: inequalities(self)
13
14 Return a list of the inequalities in a polyhedron.
15
16 .. py:method:: constraints(self)
17
18 Return ta list of the constraints of a polyhedron.
19
20 .. py:method:: disjoint(self)
21
22 Returns a polyhedron as a disjoint.
23
24 .. py:method:: isuniverse(self)
25
26 Return ``True`` if a polyhedron is the Universe set.
27
28 .. py:method:: subs(self, symbol, expression=None)
29
30 Subsitutes an expression into a polyhedron and returns the result.
31
32 To create a polyhedron, the user must use the folloing functions to define equalities and inequalities as the contraints.
33
34 .. py:function:: Eq(left, right)
35
36 Create a constraint by setting *left* equal to *right*.
37
38 .. py:function:: Ne(left, right)
39
40 Create a constraint by setting *left* not equal to *right*.
41
42 .. py:function:: Lt(left, right)
43
44 Create a constraint by setting *left* less than *right*.
45
46 .. py:function:: Le(left, right)
47
48 Create a constraint by setting *left* less than or equal to *right*.
49
50 .. py:function:: Gt(left, right)
51
52 Create a constraint by setting *left* greater than *right*.
53
54 .. py:function:: Ge(left, right)
55
56 Create a constraint by setting *left* greater than or equal to *right*.