File: example.py

package info (click to toggle)
python-glpk 0.4.45-1
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 308 kB
  • sloc: python: 1,002; ansic: 873; makefile: 49
file content (9 lines) | stat: -rw-r--r-- 204 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
import glpk

print "starting..."
example = glpk.glpk("example.mod")
example.update()
example.solve()
print "solution:", example.solution()
print "solution is also here: x =", example.x, "y =", example.y