A collection of multiobjective optimization test problems.
Project description
ParetoBench
ParetoBench is a Python library that provides a collection of tools for the benchmarking of multi-objective optimization algorithms. It includes the following.
- Multi-objective benchmark problems including analytical Pareto fronts when available
- Container objects for storing and manipulating data from optimization algorithms
- A standardized file format for saving the results of optimizations on benchmark problems
- Tools for calculating convergence metrics on results and running statistical analyses on them to compare algorithms
- Plotting utilities for objectives/decision variables and for both populations and series of populations (history objects)
Installation
ParetoBench is available from pip and conda.
pip install paretobench
or
conda install paretobench
Containers and File Format
Objects and a file format for storing data from multi-objective optimization algorithms are included in the package.
Population- The atomic class of the library. Represents a single generation in a genetic algorithm complete with variables (x), objectives (f), and constraints (g).History- A collection of populations representing the history of one run of a genetic algorithm.Experiment- A benchmarking experiment with multiple histories representing multiple evaluations of a genetic algorithm, potentially on multiple problems as is used in benchmarking.
The Experiment objects may be saved to a standardized HDF5-backed format for long-term storage and interchange between codes.
Learn more about the containers in the following example notebook.
Plotting
Tools for plotting the data from multi-objective optimization algorithms are also included.
- Pairwise decision variables plots for
PopulationandHistoryobjects- Variable boundaries
- Color coding or animation for showing multiple populations
- Markers and alpha to distinguish non-dominated / infeasible solutions
- Objective scatter plots for
PopulationandHistoryobjects- Analytical Pareto fronts for library problems
- Attainment surfaces in 2D and 3D
- Color coding or animation for showing multiple populations
- Markers and alpha to distinguish non-dominated / infeasible solutions
See more information in the following notebooks.
Benchmark Problems
| Problem | Objectives | Variables | Constraints | PF | Description |
|---|---|---|---|---|---|
| ZDT[1-3] | 2 | ≥2 | 0 | Y | Classic 2-objective suite; convex, non-convex, and disconnected fronts |
| ZDT4 | 2 | 10 | 0 | Y | Many local Pareto fronts |
| ZDT6 | 2 | 10 | 0 | Y | Non-uniform spacing along front |
| DTLZ[1-7] | ≥2 | ≥m | 0 | Y | Scalable suite with varied front geometry and difficulty |
| DTLZ[8-9] | ≥2 | ≥m | ≥1 | Y | Scalable constrained problems |
| WFG[1-9] | ≥2 | ≥2m | 0 | Y | Scalable suite with diverse transformations and front shapes |
| CF[1-7] | 2 | ≥2 | 1-2 | Y | CEC 2009 constrained 2-objective problems |
| CF[8-10] | 3 | ≥3 | 1 | Y | CEC 2009 constrained 3-objective problems |
| CTP[1-7] | 2 | ≥2 | ≥1 | - | Constrained problems with varied feasible regions |
| SCH | 2 | 1 | 0 | - | Schaffer's function |
| FON | 2 | 3 | 0 | - | Fonseca-Fleming function |
| POL | 2 | 2 | 0 | - | Poloni's two-objective function |
| KUR | 2 | ≥2 | 0 | - | Kursawe's function |
| CONSTR | 2 | 2 | 2 | - | Simple constrained 2-objective problem |
| SRN | 2 | 2 | 2 | - | Srinivas-Deb constrained problem |
| TNK | 2 | 2 | 2 | - | Tanaka constrained problem |
| WATER | 5 | 3 | 7 | - | Water resource management problem |
Analytical Pareto Fronts
When possible, the benchmark problems include analytical Pareto fronts.
Parameter Naming Conventions
To help standardize the code in this package, the following naming convention is used throughout for parameters.
Some names are reserved for specific purposes. These are the following.
n: The dimension of the input vector to the problem, ie the number of decision variables.m: The number of objectives.
All parameters should follow the PEP 8 naming scheme for variables. Whenever this leads to a parameter being named something different than what it was called in the problem's defining paper, this change must be documented in the class.
For Developers
Installation
- Install the development conda environment.
conda create env -f environment.yml
- Install the package in editing mode (with dependencies required for running tests)
pip install -e .[test]
Testing
Tests are written with the pytest framework. They can be run by calling pytest from the base of this repo with the package installed.
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
File details
Details for the file paretobench-0.7.0.tar.gz.
File metadata
- Download URL: paretobench-0.7.0.tar.gz
- Upload date:
- Size: 78.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
60d087e6da02a34258b5677207d3b1c775a19c568ca9b98ead1a6c3e6c70c157
|
|
| MD5 |
dcc84e1b00d81e7a2d87009ed3ef7a59
|
|
| BLAKE2b-256 |
c53aceb9fdbe1216c7ddc08960392ccea2f400a064e738a3f0d281cfbd9d4c35
|