[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Help-glpk] ANNOUNCEMENT: PyMathProg 1.0 released

From: Yingjie Lan
Subject: [Help-glpk] ANNOUNCEMENT: PyMathProg 1.0 released
Date: Mon, 12 Dec 2016 08:23:15 +0000 (UTC)

Hi All:

PyMathProg 1.0 has just been released.


An easy and flexible mathematical programming environment for Python.

PyMathProg is a Python reincarnation of AMPL and GNU MathProg modeling language, implemented in pure Python, connecting to GLPK via swiglpk. Create, optimize, report, change and re-optimize your model with Python, easily integrate database, plotting, etc.

PyMathProg provides an easy and flexible modelling syntax using Python to create and optimize mathematical programming models. Optimization is done by open source optimization packages such as the GNU Linear Programming Kit (GLPK) that is made available to PyMathProg by swiglpk.
The great features offered by PyMathProg include:


pip install pymprog
That’s it. Since it is a pure Python project that only depends on swiglpk, it can be installed this way wherever swiglpk can be installed. Currently, swiglpk comes with binary wheels for Windows, Mac, and Linux. If you’d like to have PyMathProg installed on other platforms, the only hurdle to overcome is to get swiglpk installed there first.


Below is a small example taken from the dive-in turorial in the PyMathProg Documentation:
from pymprog import *
begin('bike production')
x, y = var('x, y') # variables
maximize(15 * x + 10 * y, 'profit')
x <= 3 # mountain bike limit
y <= 4 # racer production limit
x + y <= 5 # metal finishing limit
Help in the following ways are more than welcome:
  1. tutorials and samples.
  2. bug reports
  3. feature requests
  4. code contribution
I hope you will find it useful. Thank you!

reply via email to

[Prev in Thread] Current Thread [Next in Thread]