Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
4 changed files
with
39 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,9 @@ | ||
How tos | ||
======= | ||
|
||
TBD | ||
A number of specific instructions for particular things you might want to do: | ||
|
||
.. toctree:: | ||
:maxdepth: 2 | ||
|
||
use_different_solver.rst |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
Using different solvers | ||
======================= | ||
|
||
The `Pulp <https://pythonhosted.org/PuLP/index.html>`_ library is a Python | ||
interface to underlying solution engines. By default it comes packaged with `CBC | ||
<https://projects.coin-or.org/Cbc>`_ | ||
|
||
It is however possible to use a number of other solvers (see the Pulp | ||
documentation for details) and these can be passed to the scheduler. For example | ||
here is how we would use the `GLPK <https://www.gnu.org/software/glpk/>`_ | ||
solver for a given set of :code:`events` and :code:`slots`:: | ||
|
||
>>> scheduler.schedule(events=events, slots=slots, solver=pulp.GLPK()) # doctest: +SKIP | ||
|
||
Different solvers can have major impact on the performance of the scheduler. | ||
This can be an important consideration when scheduling large or highly | ||
constrained problems. |