Skip to main content

Multi-Objective Optimization in Python

Project description

python 3.10 license apache

pymoo

Documentation / Paper / Installation / Usage / Citation / Contact

pymoo: Multi-objective Optimization in Python

Our open-source framework pymoo offers state of the art single- and multi-objective algorithms and many more features related to multi-objective optimization such as visualization and decision making.

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/anyoptimization/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.moo.nsga2 import NSGA2
from pymoo.problems 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

If you have used our framework for research purposes, you can cite our publication by:

@ARTICLE{pymoo,
    author={J. {Blank} and K. {Deb}},
    journal={IEEE Access},
    title={pymoo: Multi-Objective Optimization in Python},
    year={2020},
    volume={8},
    number={},
    pages={89497-89509},
}

Contact

Feel free to contact me if you have any questions:

Julian Blank (blankjul [at] 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.6.1.1.tar.gz (1.3 MB view hashes)

Uploaded Source

Built Distributions

pymoo-0.6.1.1-cp311-cp311-win_amd64.whl (896.2 kB view hashes)

Uploaded CPython 3.11 Windows x86-64

pymoo-0.6.1.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.3 MB view hashes)

Uploaded CPython 3.11 manylinux: glibc 2.17+ x86-64

pymoo-0.6.1.1-cp311-cp311-macosx_10_9_universal2.whl (1.6 MB view hashes)

Uploaded CPython 3.11 macOS 10.9+ universal2 (ARM64, x86-64)

pymoo-0.6.1.1-cp310-cp310-win_amd64.whl (895.6 kB view hashes)

Uploaded CPython 3.10 Windows x86-64

pymoo-0.6.1.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.1 MB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

pymoo-0.6.1.1-cp310-cp310-macosx_11_0_x86_64.whl (974.9 kB view hashes)

Uploaded CPython 3.10 macOS 11.0+ x86-64

pymoo-0.6.1.1-cp39-cp39-win_amd64.whl (989.7 kB view hashes)

Uploaded CPython 3.9 Windows x86-64

pymoo-0.6.1.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.1 MB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

pymoo-0.6.1.1-cp39-cp39-macosx_11_0_x86_64.whl (979.7 kB view hashes)

Uploaded CPython 3.9 macOS 11.0+ x86-64

pymoo-0.6.1.1-cp38-cp38-win_amd64.whl (996.1 kB view hashes)

Uploaded CPython 3.8 Windows x86-64

pymoo-0.6.1.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.2 MB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.17+ x86-64

pymoo-0.6.1.1-cp38-cp38-macosx_11_0_x86_64.whl (975.6 kB view hashes)

Uploaded CPython 3.8 macOS 11.0+ x86-64

pymoo-0.6.1.1-cp37-cp37m-win_amd64.whl (985.2 kB view hashes)

Uploaded CPython 3.7m Windows x86-64

pymoo-0.6.1.1-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.9 MB view hashes)

Uploaded CPython 3.7m manylinux: glibc 2.17+ x86-64

pymoo-0.6.1.1-cp37-cp37m-macosx_11_0_x86_64.whl (980.9 kB view hashes)

Uploaded CPython 3.7m macOS 11.0+ x86-64

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