This is a python implementation of an algorithm to compute the exact Hoffman constant of system of linear inequalities as described in Section 3.2 of the Math Programming article "New characterizations of Hoffman constants for systems of linear constraints", by Pena, Vera, Zuluaga.
The code takes as input a matrix
For ease of computation, we assume that
As described in Section 3.2 of the article, the code computes
The syntax for the code is
H, FF, II, numitns = hoffman(A,maxiter)
The output numitns records the total number of main iterations. This output is maxiter is reached. In that case the value of H is only a lower bound on
The main files are in the python file "Hoffman.py" This notebook illustrates the code in some instances of Examples 1, 2, and 3 from the above article.