jonls / qsopt-ex

QSopt_ex - an exact linear programming solver. This is a fork adding improvements to the build system, library and a Python interface.
GNU General Public License v3.0
21 stars 12 forks source link

Cython module #1

Closed jonls closed 9 years ago

jonls commented 9 years ago

Add Cython-based Python module to access the exact solver library. The module wraps the C API in a pythonic interface based on the Cython extension types. Numeric values are automatically converted from Python int/rationals to the GnuMP rational type that the library uses, and the result is converted back to Python int/rationals without loss of precision.