Python is addictive, GLPK is very cute, and PyMathProg is both :).
See, that's why I am rolling out another revision in just one day. Well, sort of. This revision is mainly for maintenance: documentation is relatively complete now (comments and questions are welcome), one small bug fix, that's all.
What is PyMathProg?
PyMathProg: easy GLPK in Python!
PyMathProg is a Python reincarnation of AMPL and GNU MathProg modeling language, implemented in pure Python, connecting to GLPK via PyGLPK. Create, optimize, report, change and re-optimize your model with Python, which offers numerous handy goodies.
With more than 80% of code rewritten, this release is much better and mature now. New features are also added, such as parameterized bounds with automatic updates, access to primal/dual values of constraints. Please find more at
PyMathProg: easy GLPK in Python!
PyMathProg is a Python reincarnation of AMPL and GNU MathProg modeling language, implemented in pure Python, connecting to GLPK via PyGLPK. Create, optimize, report, change and re-optimize your model with Python, which offers numerous handy goodies.
This release enables solver options, and you can actually utilize different methods to solve your problems.
If you wish, you can now setup pymprog into your python onsite packages.
You can either download the zip or the tgz archive.
Documentations are also online at:http://pymprog.sf.net
Improved API, new parameter definition. new examples are available. Documentation includes how to setup, a dive-in tutorial, many advanced examples to show the features of PyMathProg. Documentations are also online at:
Thanks!
Now it has directions on how to setup, a small tutorial and some advanced example. You can go there through "Summary->Web Site"
This file explains how to install pyglpk on windows.
For linux, assuming you have python and glpk already,
just skip step 1 and goto step 2.
1) make sure you have installed gnuwin32 glpk package into
C:\Program Files\GnuWin32
You can get gnuwin32 glpk from here:
http://gnuwin32.sourceforge.net/packages/glpk.htm
If you did that right, you should have both files below:
C:\Program Files\GnuWin32\bin\glpk.dll
C:\Program Files\GnuWin32\include\glpk.h
Otherwise, you can manually set a different path in setup.py.... read more
Initial release. Assume you have Python 2.5, GLPK 4.4 or later and PyGLPK 0.3 in place, just unzip this into a folder and issue command:
python gbasic.py
to play with the gbasic example.
For how to set up PyGLPK 0.3, here is an excellent document:
http://www.cs.cornell.edu/~tomf/pyglpk/building.html
Help in the following ways are more than welcome:
1. tutorials and samples.
2. bug reports
3. feature request
4. code contribution... read more