Skip to content

Multi-Objective API ​

API reference for the 3 classes of opt.multi_objective. This page is generated from the source; see the algorithm pages for formulations and references.

Imports ​

python
from opt.multi_objective import (
    MOEAD,
    NSGAII,
    SPEA2,
)

Common interface ​

Every class takes the objective func, the search-space lower_bound, upper_bound and dim, usually max_iter and seed, and implements search() -> tuple[np.ndarray, float]. See AbstractOptimizer.

Classes ​

ClassAlgorithmAdditional parameters
MOEADMulti-Objective Evolutionary Algorithm based on Decompositionobjectives, n_neighbors=20
NSGAIINon-dominated Sorting Genetic Algorithm IIobjectives, crossover_prob=_CROSSOVER_PROBABILITY, mutation_prob=None, tournament_size=_TOURNAMENT_SIZE, eta_c=_SBX_DISTRIBUTION_INDEX, eta_m=_POLYNOMIAL_MUTATION_INDEX
SPEA2Strength Pareto Evolutionary Algorithm 2objectives, archive_size=100

Released under the MIT License.