Menu

[r118]: / featest.py  Maximize  Restore  History

Download this file

14 lines (13 with data), 237 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
from pymprog import *
xid = xrange(3)
beginModel()
x = var(xid)
k = par(xid)
for i in xid:
x[i] <= k[i]
print x[i].bounds
c = st([x[i] for i in xid]) #convert to constraints
for i in xid:
print c[i]
print repr(c[i])
endModel()