Skip to content

Commit f3f48d0

Browse files
committed
Merging changes into master
2 parents 418824f + 48db09e commit f3f48d0

File tree

3 files changed

+25
-3
lines changed

3 files changed

+25
-3
lines changed

src/grumpy/examples/DrawPolyhedron.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
except ImportError:
1212
CYLP_INSTALLED = False
1313

14-
import MIP4 as LP
14+
import LP6 as LP
1515

1616
def disp_polyhedron(A = None, b = None, points = None, rays = None, c = None, obj_val = None,
1717
opt = None, loc = None):
@@ -85,4 +85,3 @@ def disp_polyhedron(A = None, b = None, points = None, rays = None, c = None, ob
8585
print LP.b
8686

8787
disp_polyhedron(A = p.hrep.A, b = p.hrep.b)
88-

src/grumpy/examples/LP2.py

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,32 @@
11
numVars = 2
2+
numCons = 4
3+
points = None
4+
rays = []
25
A = [[-9, 5],
36
[1, -13],
47
[5, -1],
58
[-1, 5]]
69
#b = [0, 0, 32, 20]
710
b = [0, 0, 16, 10]
811
c = [1, 1]
12+
13+
sense = ('Max', '<=')
14+
integerIndices = [0, 1]
15+
16+
cuts = [
17+
[4, .00000000008],
18+
[.0000000008, 4],
19+
[3, 1],
20+
[1, 3],
21+
[2, .0000000004],
22+
[.0000000004, 2]
23+
]
24+
25+
rhs = [
26+
14,
27+
10,
28+
12,
29+
10,
30+
6,
31+
4
32+
]

src/grumpy/examples/LP3.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,3 @@
77
[-3, 7]]
88
b = [0, 0, 18, 8]
99
c = [1, 1]
10-

0 commit comments

Comments
 (0)