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
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.
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.