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, eliminate_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.2.tar.gz (485.2 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.2-cp37-cp37m-win_amd64.whl (506.1 kB view details)

Uploaded CPython 3.7mWindows x86-64

pymoo-0.3.2-cp37-cp37m-macosx_10_7_x86_64.whl (486.2 kB view details)

Uploaded CPython 3.7mmacOS 10.7+ x86-64

File details

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

File metadata

  • Download URL: pymoo-0.3.2.tar.gz
  • Upload date:
  • Size: 485.2 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.3.2.tar.gz
Algorithm Hash digest
SHA256 00c817aacfd1c0853e8e4b568a658ce04bc45f3ea7e48a503f5f15a6e7ac36cb
MD5 f25a85775d3c51442dea534d2b726af1
BLAKE2b-256 5e74272e29ba95aa0ae1c1c948c191d6cc7b3ec0b24d33361ad639d5b0c53c76

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pymoo-0.3.2-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 506.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.3.2-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 310ef443a7a9c509716c4b4ed3c9710ae4fb04f3d0f52e5c56133d25df6b8efd
MD5 39d0a8787c03c6f7b4bd3950db21eab5
BLAKE2b-256 ab4237aa624040abc4dac37654adef5a2b606bf2bc20162763df33f2cc123205

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pymoo-0.3.2-cp37-cp37m-macosx_10_7_x86_64.whl
  • Upload date:
  • Size: 486.2 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.3.2-cp37-cp37m-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 c6900397f36a6bb354047d81ebf67de46bf4486e52d8a18a1ed1addff2df2a1b
MD5 4c8b8c392f785a018740b2005475aaa9
BLAKE2b-256 02da5cb37d7e22479857df229dd45f38014e33fbf3e613c3710efe260a1cb3c8

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