Skip to main content

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
  • domain independent dynamic programming
  • hybrid methods (CP and LP based Large Neighborhood Search)

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) and its variants (MRCPSP, MSRCPSP)
  • Graph Colouring Problem (GCP)
  • Maximum independent set (MIS)
  • Job shop scheduling problem (JSP) and its flexible variant (FJSP)

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).

We thank awesome optimization library or modeling language from different communities that are widely used through our library :

notably ortools, minizinc, deap, didp, gurobi

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

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

discrete_optimization-0.9.1.tar.gz (3.0 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

discrete_optimization-0.9.1-py3-none-any.whl (1.5 MB view details)

Uploaded Python 3

File details

Details for the file discrete_optimization-0.9.1.tar.gz.

File metadata

  • Download URL: discrete_optimization-0.9.1.tar.gz
  • Upload date:
  • Size: 3.0 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for discrete_optimization-0.9.1.tar.gz
Algorithm Hash digest
SHA256 0f6d014ee1a5c68e9417d5bc2a7c5f029b8c65b33b84513cec41040f0e6c315c
MD5 aaa011c1a937ec67b0aea9026b8aa27e
BLAKE2b-256 b6eef3f95aaedc284c5ec6c6281ebe754a34b64ddbbd52b3cc4b5b9ed5d00a10

See more details on using hashes here.

File details

Details for the file discrete_optimization-0.9.1-py3-none-any.whl.

File metadata

File hashes

Hashes for discrete_optimization-0.9.1-py3-none-any.whl
Algorithm Hash digest
SHA256 14a5bceabbf525c8601e0083557c01f31c84295165dea8a535274b7c2bfa8390
MD5 eac7e8fe977c08d46accb37ddd5a7a7c
BLAKE2b-256 82303f206edc7344cf3d0774866d68c77fb4ca0d445494e4544d69af2ea5fae7

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.9.1 This release

2 files

0.9.0

2 files

0.8.0

2 files

0.7.0

2 files

0.6.0

2 files

0.5.0

2 files

0.4.0

2 files

0.3.2

2 files

0.3.1

2 files

0.3.0

2 files

0.2.3

1 file

0.2.2

1 file

0.2.1

1 file

0.2.0

1 file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page