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.9.0.tar.gz (2.9 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.0-py3-none-any.whl (1.4 MB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: discrete_optimization-0.9.0.tar.gz
  • Upload date:
  • Size: 2.9 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.9.0.tar.gz
Algorithm Hash digest
SHA256 6552a41d4393769a3823e01b208388ff9aafc25a14a92f932f50b5435852c2e9
MD5 dfc3119108d105607936e01d2b449fb4
BLAKE2b-256 ba03e8a6e1c0be5197042bedcdc1b99720e0ad58f173e0a96cffb694a6c2fcf8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for discrete_optimization-0.9.0-py3-none-any.whl
Algorithm Hash digest
SHA256 602e64937c1b42cceda3cc25633c80e26a77c1aadf73b2c828b2b5b9d03492ea
MD5 1ed3260262092288e6a03beae8f125ac
BLAKE2b-256 c4131129668d9289bea9f218a3d168cfc8c085bfe4831c8774569e7d0fa64eac

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