|
QDpy
|
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. | |
Evolutionary multi-objective diversity optimization over binary portfolios.
Definition in file evolutionary_portfolios.py.
| 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.
| evaluate | Callable (bits) returning scalar quality to maximize or None for a failed member. |
| dimension | Number of decision bits per member. |
| portfolio_size | Number of member slots per portfolio. |
| budget | Total member evaluation attempts. A partial portfolio is never started. |
| population_size | Number of live portfolios and maximum offspring batch size. |
| quality | Portfolio quality reducer, "mean" or "worst". |
| method | Population selection method, "nsga2", "spea2", or "uniform" control. |
| crossover_probability | Probability of aligned uniform crossover. |
| mutation_probability | Optional probability per bit, default 0.5/dimension. |
| descriptor | Optional callable (bits) returning a binary vector used for Hamming diversity. |
| repair | Optional callable (bits) returning a valid binary member before evaluation. |
| seed | Private variation and parent-selection seed. |
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.