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.0.tar.gz (511.7 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.0-cp37-cp37m-win_amd64.whl (550.3 kB view details)

Uploaded CPython 3.7mWindows x86-64

pymoo-0.4.0-cp37-cp37m-macosx_10_7_x86_64.whl (530.4 kB view details)

Uploaded CPython 3.7mmacOS 10.7+ x86-64

File details

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

File metadata

  • Download URL: pymoo-0.4.0.tar.gz
  • Upload date:
  • Size: 511.7 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.0.tar.gz
Algorithm Hash digest
SHA256 d3677968a69c98bf0731c460453f5e73ea50ee6feec258b077001a133fb64ca7
MD5 ed7a469c137f55dd021c6b8161739e79
BLAKE2b-256 a8a75d21563734748f62603df8032359a221ebdaee0435f1d508dd9dfa3e187c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pymoo-0.4.0-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 550.3 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.0-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 ae95ae862223f6bb2fed380185053072c55c342e34860c5b35d246c21de53c63
MD5 4a4d1649ca89788239bcc011cb7f659d
BLAKE2b-256 7775324ba432e53a0538b7bc8b9c69bbd531c77dcee5c867b65e1a832ab42099

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pymoo-0.4.0-cp37-cp37m-macosx_10_7_x86_64.whl
  • Upload date:
  • Size: 530.4 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.0-cp37-cp37m-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 6ef2815df31732659cc103e9e28e814761a3dd41d5d57ab81d372918c956f3c0
MD5 ab701e46840610579a2a3f9348a7ac93
BLAKE2b-256 afedb133bf1b8ef6bda78e7e1d5fbbcae0a92b808f87c766bb6704c8c383cb4d

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