Skip to main content

Multi-Objective Optimization in Python

Project description

build status python 3.6 license apache

pymoo

Documentation / Paper / Installation / Usage / Citation / Contact

Installation

First, make sure you have a Python 3 environment installed. We recommend miniconda3 or anaconda3.

The official release is always available at PyPi:

pip install -U pymoo

For the current developer version:

git clone https://github.com/msu-coinlab/pymoo
cd pymoo
pip install .

Since for speedup some of the modules are also available compiled you can double check if the compilation worked. When executing the command be sure not already being in the local pymoo directory because otherwise not the in site-packages installed version will be used.

python -c "from pymoo.util.function_loader import is_compiled;print('Compiled Extensions: ', is_compiled())"

Usage

We refer here to our documentation for all the details. However, for instance executing NSGA2:

from pymoo.algorithms.nsga2 import NSGA2
from pymoo.factory import get_problem
from pymoo.optimize import minimize
from pymoo.visualization.scatter import Scatter

problem = get_problem("zdt1")

algorithm = NSGA2(pop_size=100)

res = minimize(problem,
               algorithm,
               ('n_gen', 200),
               seed=1,
               verbose=True)

plot = Scatter()
plot.add(problem.pareto_front(), plot_type="line", color="black", alpha=0.7)
plot.add(res.F, color="red")
plot.show()

A representative run of NSGA2 looks as follows:

pymoo

Citation

We are currently working on a journal publication for pymoo. Meanwhile, if you have used our framework for research purposes, please cite us with:

@misc{pymoo,
    title={pymoo: Multi-objective Optimization in Python},
    author={Julian Blank and Kalyanmoy Deb},
    year={2020},
    eprint={2002.04504},
    archivePrefix={arXiv},
    primaryClass={cs.NE}
}

Contact

Feel free to contact me if you have any question:

Julian Blank (blankjul [at] egr.msu.edu)
Michigan State University
Computational Optimization and Innovation Laboratory (COIN)
East Lansing, MI 48824, USA

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

pymoo-0.4.1.tar.gz (526.9 kB view details)

Uploaded Source

Built Distributions

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

pymoo-0.4.1-py3-none-any.whl (304.0 kB view details)

Uploaded Python 3

pymoo-0.4.1-cp37-cp37m-win_amd64.whl (541.1 kB view details)

Uploaded CPython 3.7mWindows x86-64

pymoo-0.4.1-cp37-cp37m-macosx_10_7_x86_64.whl (555.6 kB view details)

Uploaded CPython 3.7mmacOS 10.7+ x86-64

pymoo-0.4.1-cp36-cp36m-win_amd64.whl (541.1 kB view details)

Uploaded CPython 3.6mWindows x86-64

File details

Details for the file pymoo-0.4.1.tar.gz.

File metadata

  • Download URL: pymoo-0.4.1.tar.gz
  • Upload date:
  • Size: 526.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3

File hashes

Hashes for pymoo-0.4.1.tar.gz
Algorithm Hash digest
SHA256 a1c13c8c4b9246d4d94ce77c3075f68d6e1fae6f032a03e5c85c090a1892bcc3
MD5 4bd39bd0994654c42acb4617ee719f6d
BLAKE2b-256 1b1f05c358f2f057853ea61041a1cfc5e7a39b5e5bd03d6ae697cad8794fc6c3

See more details on using hashes here.

File details

Details for the file pymoo-0.4.1-py3-none-any.whl.

File metadata

  • Download URL: pymoo-0.4.1-py3-none-any.whl
  • Upload date:
  • Size: 304.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3

File hashes

Hashes for pymoo-0.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 077818e4a298af6cb54d4b283cd1173d4519e46c5f2c2ef6a5ca03775ac1e990
MD5 bebffc224b89c8b11554a95c0a36bd46
BLAKE2b-256 fad9377778d9f2985bf0fdce2ae0f3eb1ff5b40cacb6ea69b5a1be24067341d6

See more details on using hashes here.

File details

Details for the file pymoo-0.4.1-cp37-cp37m-win_amd64.whl.

File metadata

  • Download URL: pymoo-0.4.1-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 541.1 kB
  • Tags: CPython 3.7m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3

File hashes

Hashes for pymoo-0.4.1-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 fbf5edee69363c8850ab153e706e16bfe3d45fbeeee927deb66ce85d39a806ff
MD5 4e3f2563d712ae75ebc135a7e563c18c
BLAKE2b-256 b068c94237c84c5158aeb020636deb30e9960e1b9369df6214c39c02d65f9fa2

See more details on using hashes here.

File details

Details for the file pymoo-0.4.1-cp37-cp37m-macosx_10_7_x86_64.whl.

File metadata

  • Download URL: pymoo-0.4.1-cp37-cp37m-macosx_10_7_x86_64.whl
  • Upload date:
  • Size: 555.6 kB
  • Tags: CPython 3.7m, macOS 10.7+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3

File hashes

Hashes for pymoo-0.4.1-cp37-cp37m-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 018877b904188428dfe01a1e1b0dd93f78cfeac2c39f8963e3c9ed0f312edb37
MD5 119e620beaafb2881ad2876781092672
BLAKE2b-256 3ffd5af0e7d02a9fe677068efa6d96285578a29064b70c824d8815867da5c3ee

See more details on using hashes here.

File details

Details for the file pymoo-0.4.1-cp36-cp36m-win_amd64.whl.

File metadata

  • Download URL: pymoo-0.4.1-cp36-cp36m-win_amd64.whl
  • Upload date:
  • Size: 541.1 kB
  • Tags: CPython 3.6m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3

File hashes

Hashes for pymoo-0.4.1-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 eb7584a3c4282133e3cd30b7665b97784a3d56e2eef240ea67a82d6cbb2bcc94
MD5 ee2a86217752e20a68facf380b4a67ac
BLAKE2b-256 9bde5a5f6de8e6a5703eaba5d263d721f6d4c914aad0cc6de1daefd87bc13308

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