Skip to main content

Multi-Objective Integer Programming with Gurobi and Python

Project description

Multi-Objective Integer Programming with Gurobi and Python

The optimisation software from Gurobi now supports multi-objective programming.

Since there are multiple objectives, there may be many solutions, each of which may optimise the objectives with a different set of priorities. Finding all such solutions can be algorithmically costly, so Gurobi’s solver only returns a single result.

However, due to the importance of such functionality, much research has been invested into finding better algorithms that can efficiently find all solutions.

This python package extends Gurobi’s multi-objective functionality by using the algorithms developed by (Ozlen et al., 2014) and (Tamby & Vanderpooten, 2020). It provides a module that can be used in python programs, as well as a command line tool that can read multi-objective LP files.

Many of the examples found in this project have been converted from the examples shared by William Pettersson on figshare, which were used to benchmark the parallel processing algorithm described in (Pettersson & Ozlen, 2019).

  • Free software: MIT license

Installation

pip install moiptimiser

You can also install the in-development version with:

pip install https://github.com/bayan/python-moiptimiser/archive/master.zip

Documentation

https://python-moiptimiser.readthedocs.io/

Development

Install python libraries:

pip install cmake dlib gurobipy tox twine wheel bumpversion

To run the all tests and checks run:

tox

To run the all python automated tests run:

tox -e py39

To create a new patch and upload to github:

bumpversion patch
git push -u origin master
git push -u origin master vX.X.X

To package and deploy to PyPI:

python setup.py clean --all sdist bdist_wheel
twine upload --skip-existing dist/*.whl dist/*.gz

To run as a script from the command line:

cd src/
python3 -m moiptimiser /path/to/example.lp

References

Ozlen, M., Burton, B.A., MacRae, C.A.G., 2014. Multi-Objective Integer Programming: An Improved Recursive Algorithm. J Optim Theory Appl 160, 470–482. https://doi.org/10.1007/s10957-013-0364-y

Pettersson, W., & Ozlen, M. (2019). Multiobjective Integer Programming: Synergistic Parallel Approaches. INFORMS Journal on Computing, 32(2), 461–472. https://doi.org/10.1287/ijoc.2018.0875

Tamby, S., & Vanderpooten, D. (2020). Enumeration of the Nondominated Set of Multiobjective Discrete Optimization Problems. INFORMS Journal on Computing, 33(1), 72–85. https://doi.org/10.1287/ijoc.2020.0953

Changelog

0.0.0 (2020-05-13)

  • First release on PyPI.

0.0.1 (2020-05-19)

  • First working version, using the (Ozlen et al., 2014) algorithm, for minimisation problems.

0.0.2 (2020-05-19)

  • Implemented maximisation problem solving.

  • Improved documentation.

  • Improved testing suite.

0.0.3 (2021-11-24)

  • New state of the art algorithm - two stage approach from (Tamby & Vanderpooten, 2020) - implemented and set as the default for the command line executable.

0.0.4 (2021-11-24)

  • Documentation and changelog changes that were missed in previous release.

0.0.5 (2021-11-24)

0.0.6 (2021-12-05)

  • Specify which algorithm to use from the command line.

  • Keep track of the number of solver calls and report in output.

  • Bug fixes to (Tamby & Vanderpooten, 2020) implementation.

0.0.7 (2021-12-05)

  • Provide feasible solutions to solver for (Tamby & Vanderpooten, 2020) implementation.

  • Lower required python version number from 3.9 to 3.7 to get online docs compiling.

0.0.8 (2021-12-06)

0.0.9 (2021-12-07)

  • Track and report the number of infeasible problems attempted.

  • Converted examples from William Pettersson on figshare to be used for testing algorithms and benchmarking.

0.0.10 (2021-12-08)

  • Fixed rounding bug in (Ozlen et al., 2014).

  • Minor code clean up and documentation updates.

0.0.11 (2021-12-08)

  • Documentation bug fix.

0.0.12 (2021-12-14)

  • Refactored (Ozlen et al., 2014) to fix bugs, simplify the code and tweak the performance.

  • Changed CPU Time format in command line output

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

moiptimiser-0.0.12.tar.gz (1.2 MB view details)

Uploaded Source

Built Distribution

moiptimiser-0.0.12-py2.py3-none-any.whl (13.9 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file moiptimiser-0.0.12.tar.gz.

File metadata

  • Download URL: moiptimiser-0.0.12.tar.gz
  • Upload date:
  • Size: 1.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

File hashes

Hashes for moiptimiser-0.0.12.tar.gz
Algorithm Hash digest
SHA256 1f62555e9b9eb581d00dafae2bb276c1e1d15bf908736ae01a8f5f6245788715
MD5 51d4003ec771db51715989fcde2ae32d
BLAKE2b-256 44ac9af14c986ba1bb84bb60c52636a9b08059bef69d777bbd96a4447342901a

See more details on using hashes here.

File details

Details for the file moiptimiser-0.0.12-py2.py3-none-any.whl.

File metadata

  • Download URL: moiptimiser-0.0.12-py2.py3-none-any.whl
  • Upload date:
  • Size: 13.9 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

File hashes

Hashes for moiptimiser-0.0.12-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 6d3da82b5d1fdc38c64d667d62f7c6d55f110c27e97a34c1925e726796f033ca
MD5 9bb3a226d10d80ce703b220eb818edc6
BLAKE2b-256 ccc26e1b90bac8f2aa5306599a40bdd48cbb1816708065383fd72b7b72a7f02a

See more details on using hashes here.

Supported by

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