Reading a Simplex Solver Log
Learn to interpret the diagnostic output produced by a simplex LP solver — the header with problem statistics, the per-iteration log of objective and infeasibility values, and the final termination status — and synthesize all three to extract optimal value, phase counts, and matrix density from a full log.
Tutorial
Anatomy of a Solver Log
A simplex solver log is the diagnostic text a solver prints while running. It is organized into three blocks:
- Header — problem dimensions after preprocessing.
- Iteration log — one line per recorded pivot, showing progress.
- Termination message — a one-line verdict.
A typical header line is
The rows count is the number of constraints in the LP, the columns count is the number of decision variables, and non-zeros is the count of nonzero entries in the constraint matrix
The density of is
For the header above, the density is Real-world LPs are usually far sparser — often well under — which is precisely why revised simplex stores and factors using sparse data structures.