Skip to main content

Platypus

Test and Publish Documentation Status PyPI Latest Release PyPI

What is Platypus?

Platypus is a framework for evolutionary computing in Python with a focus on multiobjective evolutionary algorithms (MOEAs). It differs from existing optimization libraries, including PyGMO, Inspyred, DEAP, and Scipy, by providing optimization algorithms and analysis tools for multiobjective optimization. It currently supports NSGA-II, NSGA-III, MOEA/D, IBEA, Epsilon-MOEA, SPEA2, GDE3, OMOPSO, SMPSO, and Epsilon-NSGA-II. For more information, see our examples and online documentation.

Example

For example, optimizing a simple biobjective problem with a single real-valued decision variables is accomplished in Platypus with:

    from platypus import NSGAII, Problem, Real

    def schaffer(x):
        return [x[0]**2, (x[0]-2)**2]

    problem = Problem(1, 2)
    problem.types[:] = Real(-10, 10)
    problem.function = schaffer

    algorithm = NSGAII(problem)
    algorithm.run(10000)

Installation

To install the latest Platypus release, run the following command:

    pip install platypus-opt

To install the latest development version of Platypus, run the following commands:

    pip install -U build setuptools
    git clone https://github.com/Project-Platypus/Platypus.git
    cd Platypus
    python -m build
    python -m pip install --editable .

Anaconda

Platypus is also available via conda-forge.

    conda config --add channels conda-forge
    conda install platypus-opt

For more information, see the feedstock.

Citation

If you use this software in your work, please cite it as follows (APA style):

Hadka, D. (2024). Platypus: A Framework for Evolutionary Computing in Python (Version 1.3.0) [Computer software]. Retrieved from https://github.com/Project-Platypus/Platypus.

License

Platypus is released under the GNU General Public License.

Release files for Platypus-Opt 1.4.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for Platypus-Opt 1.4.1
File Size Uploaded
platypus_opt-1.4.1.tar.gz 442.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for Platypus-Opt 1.4.1
File Interpreter ABI Platform
Platypus_Opt-1.4.1-py3-none-any.whl Python 3 none any Details

Total release size: 566.5 kB

Release files / platypus_opt-1.4.1.tar.gz

Download URL platypus_opt-1.4.1.tar.gz
Size 442.1 kB
Tags Source
SHA-256 checksum
How to use checksums
b341790be67354c2c964bb3431b9acc8a1a147aca9d9464a43720dc58b3895e8
BLAKE2b-256 checksum
How to use checksums
a7a2032cfd9c716edeb386c431a841195b4d43c7c98dfba54982ece4dce5835d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.7

Release files / Platypus_Opt-1.4.1-py3-none-any.whl

Download URL Platypus_Opt-1.4.1-py3-none-any.whl
Size 124.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9c22883a3ffd91bd3a6dfb75412fc6b80368850fdb9b24f9e301a8cbf160fdda
BLAKE2b-256 checksum
How to use checksums
0335cc1b9e3942af4ba74330736ee369cf29c3cc517823812d74f665737239ae
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.7

Release history Release notifications | RSS feed

This release

1.4.1 This release

2 release files

1.4.0

2 release files

1.3.1

2 release files

1.3.0

2 release files

1.2.0

2 release files

1.1.0

2 release files

1.0.4

2 release files

1.0.3

1 release file

1.0.2

1 release file

1.0.1

1 release file

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page