ParetoFrontier

class ParetoFrontier(random: Random)

Candidate pool with Pareto-inspired selection for GEPA's evolutionary search.

All candidates are kept (never pruned). The Pareto property is enforced implicitly through selectCandidate: selection is weighted by how many validation instances each candidate is the best performer on ("coverage"). Dominated candidates (leading on zero instances) have zero selection probability and are effectively ignored.

This avoids explicit pruning while still biasing selection toward the Pareto frontier. getBestCandidate returns the candidate with the highest aggregate score regardless of coverage.

Constructors

Link copied to clipboard
constructor(random: Random)

Functions

Link copied to clipboard

Adds candidate to the pool, updating per-instance best-score bookkeeping.

Link copied to clipboard

Snapshot of all candidates in insertion order.

Link copied to clipboard

Returns the candidate with the highest ParetoCandidate.aggregateScore, ignoring coverage.

Link copied to clipboard

Selects a candidate probabilistically from the Pareto frontier.

Link copied to clipboard
fun size(): Int

Number of candidates currently held in the pool.