Skip to main content

Crate miplog

Crate miplog 

Source
Expand description

miplog — parse MIP/LP solver logs into a unified, serde-serializable schema.

use miplog::{parse, Solver};
let text = std::fs::read_to_string("run.log").unwrap();
let log = parse(&text, Solver::Gurobi).unwrap();
println!("{}", serde_json::to_string_pretty(&log).unwrap());

Re-exports§

pub use schema::*;

Modules§

input
Input sources for log text.
output
Write and read SolverLog to disk in JSON, optionally gzipped.
schema
Unified, solver-agnostic log schema.
solvers
text
Human-readable Display impl for SolverLog.

Enums§

ParseError

Traits§

LogParser
Implemented by per-solver parsers.

Functions§

autodetect
Try each known parser’s sniff and parse with the first match.
parse
Parse with a specific parser.