miplog
Parse MIP/LP solver log files into a unified, machine-readable format.
Every solver writes its log differently — different column names, different ways
to say "optimal", different units. miplog reads any supported solver's log
and gives you back the same shape, so you can analyze runs across solvers
without writing one parser per format.
Supported solvers: SCIP 10–11, Gurobi 11–13, Xpress 9, HiGHS 1.12–14, CPLEX 12.7–12.8, CBC 2.9, COPT 8.0, OptVerse 2.0, Mosek 11.0.
Python
= # plain or gzipped, solver auto-detected
# B&B progress is stored columnar — drop straight into pandas/numpy
=
Available functions: parse_file(path, solver=None), parse_text(text),
split_concatenated(text) for Mittelmann-style bundled runs.
Command line
Requires the Rust toolchain (install via rustup.rs):
|
Sample output (a SCIP run hitting a time limit on glass4):
solver: scip 11.0.0
problem: glass4
status: time-limit in 2.00s
primal: 4350038500
dual: 800004879.356464
gap: 443.75%
sols: 2
presolve: 396→393 rows, 322→317 cols
convergence: ████████████████████
time nodes dual primal gap event
0.00 1 8.000024e8 - -
0.00 1 8.000024e8 4.450042e9 456.2% H
… same for 4 more rows …
0.00 1 8.000031e8 4.450042e9 456.2%
0.10 1 8.000033e8 4.450042e9 456.2%
0.10 1 8.000044e8 4.450042e9 456.2%
0.10 1 8.000046e8 4.450042e9 456.2%
… same for 5 more rows …
0.60 1 8.000049e8 4.450042e9 456.2%
0.90 1 8.000049e8 4.350038e9 443.8% H
… same for 3 more rows …
1.70 1 8.000049e8 4.350038e9 443.8%
Identical-looking rows are elided. Incumbent updates (H for heuristic,
* for branch-found solution) are always kept. Pass --no-progress to
suppress the table entirely.
Rust
use ;
let text = read_file?; // plain or gzipped
let log = autodetect?; // solver auto-detected
println!;
# Ok::
Full API reference: docs.rs/miplog.
License
MIT OR Apache-2.0.