Skip to main content

Multi-Objective Optimization in Python

Project description

pymoo - Multi-Objective Optimization Framework

You can find the detailed documentation here: https://pymoo.org

build status python 3.6 license apache

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

@misc{pymoo,
    author = {Julian Blank and Kalyanmoy Deb},
    title = {pymoo - {Multi-objective Optimization in Python}},
    howpublished = {https://pymoo.org}
}

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("zdt2")

algorithm = NSGA2(pop_size=100, elimate_duplicates=True)

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()

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.3.1.tar.gz (479.6 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.3.1-cp37-cp37m-win_amd64.whl (498.5 kB view details)

Uploaded CPython 3.7mWindows x86-64

pymoo-0.3.1-cp36-cp36m-win_amd64.whl (498.5 kB view details)

Uploaded CPython 3.6mWindows x86-64

File details

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

File metadata

  • Download URL: pymoo-0.3.1.tar.gz
  • Upload date:
  • Size: 479.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.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.3.1.tar.gz
Algorithm Hash digest
SHA256 a66de84910d222fbadd39490ce4fed3840345f4959ee7198c51146ddc04ff1ab
MD5 a9042f7a810d43b9efa6a63b1859540d
BLAKE2b-256 510ae711a41c858c4e0f62cea920d52e65439d1fe4a5aade25beed6d605a62ac

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for pymoo-0.3.1-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 87726c107ebebadeae6a7e236a247312d1f046d59c50fe822a7412c755085c5e
MD5 c5a1909bdaa77396de54fe01d74c4fc9
BLAKE2b-256 ec45f772e798b65312cd66f2f01401a31415bd78b1c4dae5392e7420ca22f390

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for pymoo-0.3.1-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 e13497e602b218b4b0d6431677907bc78b8252d5cf57d9d90b9758616034849a
MD5 f11eb38d7d4970a58a54dfcaed4e3936
BLAKE2b-256 c9a65f104700ce6c1b7e1e85cce55f13aecee00e6b93639deebd33e42901fa8c

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