Platypus
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.
Metadata
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)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| platypus_opt-1.4.1.tar.gz | 442.1 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| 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
|
Security for Platypus-Opt 1.4.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.