QDpy
Loading...
Searching...
No Matches
evolutionary_portfolios.py File Reference

Evolutionary multi-objective diversity optimization over binary portfolios. More...

Go to the source code of this file.

Classes

class  qdpy.algorithms.evolutionary_portfolios.EvolutionaryPortfolio
 Store one evaluated set and its measured quality and diversity objectives. More...
class  qdpy.algorithms.evolutionary_portfolios.EvolutionaryPortfolioResult
 Return the final nondominated portfolios and exact search accounting. More...

Namespaces

namespace  qdpy

Functions

 qdpy.algorithms.evolutionary_portfolios.evolutionary_portfolios (evaluate, *, dimension, portfolio_size, budget, population_size=20, quality="mean", method="nsga2", crossover_probability=.8, mutation_probability=None, descriptor=None, repair=None, seed=0)
 Evolve binary portfolios with paper-style aligned crossover and a set-level Pareto front.

Detailed Description

Evolutionary multi-objective diversity optimization over binary portfolios.

See also
https://doi.org/10.1007/978-3-031-70085-9_8

Definition in file evolutionary_portfolios.py.

Function Documentation

◆ evolutionary_portfolios()

qdpy.algorithms.evolutionary_portfolios.evolutionary_portfolios ( evaluate,
* ,
dimension,
portfolio_size,
budget,
population_size = 20,
quality = "mean",
method = "nsga2",
crossover_probability = .8,
mutation_probability = None,
descriptor = None,
repair = None,
seed = 0 )

Evolve binary portfolios with paper-style aligned crossover and a set-level Pareto front.

Parameters
evaluateCallable (bits) returning scalar quality to maximize or None for a failed member.
dimensionNumber of decision bits per member.
portfolio_sizeNumber of member slots per portfolio.
budgetTotal member evaluation attempts. A partial portfolio is never started.
population_sizeNumber of live portfolios and maximum offspring batch size.
qualityPortfolio quality reducer, "mean" or "worst".
methodPopulation selection method, "nsga2", "spea2", or "uniform" control.
crossover_probabilityProbability of aligned uniform crossover.
mutation_probabilityOptional probability per bit, default 0.5/dimension.
descriptorOptional callable (bits) returning a binary vector used for Hamming diversity.
repairOptional callable (bits) returning a valid binary member before evaluation.
seedPrivate variation and parent-selection seed.
Returns
Nondominated portfolios and measurement accounting.
Treat a concatenation of member bit strings as a single evolutionary individual.

Uniform crossover shuffles the second parent's member order before
exchanging bits. Mutation flips bits independently. The optional
descriptor changes the space where Hamming distances are computed,
for example from vertex indicators to cut-edge indicators.

Every member slot is evaluated. Repeated designs are allowed and
contribute zero pair distance to an identical descriptor. A failed
member excludes its portfolio from selection. Pass a repair callback
to enforce constraints before evaluation, or handle them in the
evaluator. The uniform control uses random proposals and the same
bounded NSGA-II survival rule.

Definition at line 90 of file evolutionary_portfolios.py.