mkoeppe / cutgeneratingfunctionology

Python code for computation and experimentation with cut-generating functions, in particular the Gomory-Johnson infinite group problem. By M. Köppe, Y. Zhou, C.Y. Hong, J. Wang with contributions by undergrad programmers
GNU General Public License v2.0
12 stars 11 forks source link

Use multivariate polynomial rings throughout #73

Closed yuan-zhou closed 3 years ago

yuan-zhou commented 3 years ago

Call the PolynomialRing factory function in a way that ensures multivariate polynomial rings are created even when there is only a single variable. This is a workaround for the inconsistent/incomplete API of univariate polynomial rings in Sage.

Some doctests are adjusted to account for the different sorting order of elements after this change.

Also, a py3 fix for use of lrslib.