saealib.SurvivorSelection¶
Methods
Method Details
- SurvivorSelection.__init__()¶
- abstract SurvivorSelection.select(ctx, pool, n_survivors)[source]¶
Select survivors from the selection pool.
The pool is a merged Population (e.g., parents + offspring) constructed by the Algorithm. The replacement strategy (μ+λ or μ,λ) is determined by the Algorithm, not by this class.
- Parameters:
ctx (OptimizationContext) – Optimization context.
pool (Population) – Selection pool to choose survivors from.
n_survivors (int) – Number of survivors to select.
- Returns:
Indices of selected survivors in the pool.
- Return type:
np.ndarray