Customization

-

Selecting the internal MIP solver

+

Customizing solver parameters

+

Selecting the internal MIP solver

By default, LearningSolver uses Gurobi as its internal MIP solver. Another supported solver is IBM ILOG CPLEX. To switch between solvers, use the solver constructor argument, as shown below. It is also possible to specify a time limit (in seconds) and a relative MIP gap tolerance.

from miplearn import LearningSolver
 solver = LearningSolver(solver="cplex",
@@ -160,7 +161,7 @@ solver = LearningSolver(solver="cplex",
                         gap_tolerance=1e-3)
 
-

Selecting solver components

+

Customizing solver components

LearningSolver is composed by a number of individual machine-learning components, each targeting a different part of the solution process. Each component can be individually enabled, disabled or customized. The following components are enabled by default: