Discrete optimization library
Project description
Discrete Optimization
Discrete Optimization is a python library to ease the definition and re-use of discrete optimization problems and solvers. It has been initially developed in the frame of scikit-decide for scheduling. The code base starting to be big, the repository has now been splitted in two separate ones.
The library contains a range of existing solvers already implemented such as:
- greedy methods
- local search (Hill Climber, Simulated Annealing)
- metaheuristics (Genetic Algorithms, NSGA)
- linear programming
- constraint programming
- hybrid methods (LNS)
The library also contains implementation of several classic discrete optimization problems:
- Travelling Salesman Problem (TSP)
- Knapsack Problem (KP)
- Vehicle Routing Problem (VRP)
- Facility Location Problem (FLP)
- Resource Constrained Project Scheduling Problem (RCPSP). Several variants of RCPSP are available
- Graph Colouring Problem (GCP)
In addition, the library contains functionalities to enable robust optimization through different scenario handling mechanisms) and multi-objective optimization (aggregation of objectives, Pareto optimization, MO post-processing).
Installation
Quick version:
pip install discrete-optimization
For more details, see the online documentation.
Documentation
The latest documentation is available online.
Examples
Some educational notebooks are available in notebooks/
folder.
Links to launch them online with binder are provided in the
Notebooks section of the online documentation.
More examples can be found as Python scripts in the examples/
folder, using the different features of
the library and showing how to instantiate different problem instances and solvers.
Contributing
See more about how to contribute in the online documentation.
License
This software is under the MIT License that can be found in the LICENSE file at the root of the repository.
Some minzinc models have been adapted from files coming from
- https://github.com/MiniZinc/minizinc-benchmarks under the same license,
- https://github.com/youngkd/MSPSP-InstLib for which we have the written authorization of the author.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for discrete_optimization-0.3.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f274684ba14f45d8d376677215323c304f63c8df5a0239e4efcd3a2b57df226f |
|
MD5 | 988977b51518656f324acc708420152d |
|
BLAKE2b-256 | 8d0ea891fe57eec4a96ff1001169abef9d9ea9259d637a4bff7951b46cd02491 |
Hashes for discrete_optimization-0.3.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | afd0dbc8d48173b2ba6730966f99eb4ed21750054bb74f3aa14325df3874d13a |
|
MD5 | e775ff8eb764bceaab07e4266690263a |
|
BLAKE2b-256 | 333d2d51d123fde5edcb078078b8f7960c77b0dcc31f821182a0a6d2ca80b942 |