Split documentation into separate pages

This commit is contained in:
2020-01-29 15:08:31 -06:00
parent 646e8da2ed
commit 90865e56b3
7 changed files with 278 additions and 232 deletions

17
docs/customization.md Normal file
View File

@@ -0,0 +1,17 @@
# Customization
### Selecting the internal MIP solver
By default, `LearningSolver` uses [Gurobi](https://www.gurobi.com/) as its internal MIP solver. Alternative solvers can be specified through the `internal_solver_factory` constructor argument. This argument should provide a function (with no arguments) that constructs, configures and returns the desired solver. To select CPLEX, for example:
```python
from miplearn import LearningSolver
import pyomo.environ as pe
def cplex_factory():
cplex = pe.SolverFactory("cplex")
cplex.options["threads"] = 4
return cplex
solver = LearningSolver(internal_solver_factory=cplex_factory)
```