Skip to main content

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
  • 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

Project details


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.8.0.tar.gz (2.5 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.8.0-py3-none-any.whl (971.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: discrete_optimization-0.8.0.tar.gz
  • Upload date:
  • Size: 2.5 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for discrete_optimization-0.8.0.tar.gz
Algorithm Hash digest
SHA256 e1c21c29c99879b097600b44ef0f3b041b453d94ef9ea139cbcaf769499adbc8
MD5 e5c1cf4b3239c3caf90279392a5066bf
BLAKE2b-256 b692bdf1fd51ddbbec2993878c1619716b7726fe870301cdfe71e6a4465c7869

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for discrete_optimization-0.8.0-py3-none-any.whl
Algorithm Hash digest
SHA256 40ac86b65f8a6ab5944bcbe687932eba893ddbd0e90d5217d6d59ea773c325a4
MD5 012f5baee8981333eb9a6da488636d24
BLAKE2b-256 777418a1e0bbf42dfbc25cc9b6443556e4080fa042b84f44d6f254003be806e0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page