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 Cython>=0.29 numpy>=1.15 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.cython.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.optimize import minimize
from pymoo.algorithms.nsga2 import nsga2
from pymoo.util import plotting
from pymop.factory import get_problem

# load a test or define your own problem
problem = get_problem("zdt1")

# get the optimal solution of the problem for the purpose of comparison
pf = problem.pareto_front()

# create the algorithm object
method = nsga2(pop_size=100, elimate_duplicates=True)

# execute the optimization
res = minimize(problem,
               method,
               termination=('n_gen', 200),
               pf=pf,
               disp=True)

# plot the results as a scatter plot
plotting.plot(pf, res.F, labels=["Pareto-Front", "F"])

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.0.tar.gz (531.3 kB view details)

Uploaded Source

Built Distribution

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

pymoo-0.3.0-cp36-cp36m-macosx_10_9_x86_64.whl (800.9 kB view details)

Uploaded CPython 3.6mmacOS 10.9+ x86-64

File details

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

File metadata

  • Download URL: pymoo-0.3.0.tar.gz
  • Upload date:
  • Size: 531.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/41.0.0 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.6.5

File hashes

Hashes for pymoo-0.3.0.tar.gz
Algorithm Hash digest
SHA256 d0b9cf3bd968e31d341ab3673e1c774888ee36fab0df02dd644bc9f2574d1244
MD5 2384dbf00a5dd1a2e963fe48f635e96b
BLAKE2b-256 1ebdbf0dfec7d9692a8cc65b05d7dff98c2dd9e8a53f952d84d8bbe35f209f50

See more details on using hashes here.

File details

Details for the file pymoo-0.3.0-cp36-cp36m-macosx_10_9_x86_64.whl.

File metadata

  • Download URL: pymoo-0.3.0-cp36-cp36m-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 800.9 kB
  • Tags: CPython 3.6m, macOS 10.9+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/41.0.0 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.6.5

File hashes

Hashes for pymoo-0.3.0-cp36-cp36m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 2f9b29235b13f830bdf64b280e598066d0617d7e9a93c212dcac382726e85b89
MD5 6d38c21f47a338392c48d9516f59fda2
BLAKE2b-256 2355e47e943de3e1ca17916e51bc958c482ab169552bac1991f1963f08c2b83c

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