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
example from the docstring to test which function and kept everything else the same.
hsquare.which_function(Polyhedron(vertices=[(5,1),(5,3/2),(11/2,3/2)]))
I took out the vertex argument x here and it threw an error on mod_Zk(x).
This function works when Polyhedron=None, but x cant be None.
example from the docstring to test which function and kept everything else the same. hsquare.which_function(Polyhedron(vertices=[(5,1),(5,3/2),(11/2,3/2)])) I took out the vertex argument x here and it threw an error on mod_Zk(x). This function works when Polyhedron=None, but x cant be None.