Debian Codegraph @

doc/source/plugins/orloge.rst

raw
1 orloge: OR logs parser
2 ===========================================
3
4 orloge is a log parser for several MIP solvers that standardizes the contents into a python dictionary with most of the useful information provided. It supports GUROBI, CPLEX and CBC. Information reported includes: best objective, best bound, cuts, gap, nodes, status, time, etc. It also provides a pandas dataframe with the whole progress log of the solver.
5
6 site: https://github.com/pchtsp/orloge/
7
8 example with GUROBI::
9
10 import orloge as ol
11 ol.get_info_log_solver('tests/data/gurobi700-app1-2.out', 'GUROBI')
12
13 Creates the following output::
14
15 {'best_bound': -41.0,
16 'best_solution': -41.0,
17 'cut_info': {'best_bound': -167.97894,
18 'best_solution': -41.0,
19 'cuts': {'Clique': 1,
20 'Gomory': 16,
21 'Implied bound': 23,
22 'MIR': 22},
23 'time': 21.0},
24 'first_relaxed': -178.94318,
25 'first_solution': -41.0,
26 'gap': 0.0,
27 'matrix': {'constraints': 53467, 'nonzeros': 199175, 'variables': 26871},
28 'matrix_post': {'constraints': 35616, 'nonzeros': 149085, 'variables': 22010},
29 'nodes': 526.0,
30 'presolve': {'cols': 4861, 'rows': 17851, 'time': 3.4},
31 'progress':
32 Node NodesLeft Objective Depth ... CutsBestBound Gap ItpNode Time
33 0 0 0 -178.94318 0 ... -178.94318 336% None 4s
34 1 0 0 -171.91701 0 ... -171.91701 319% None 15s
35 2 0 0 -170.97660 0 ... -170.97660 317% None 15s
36 [26 rows x 10 columns],
37 'rootTime': 0.7,
38 'sol_code': 1,
39 'solver': 'GUROBI',
40 'status': 'Optimal solution found',
41 'status_code': 1,
42 'time': 46.67,
43 'version': '7.0.0'}
44
45