Operators¶
Crossover¶
Base class for crossover operators. |
|
BLX-alpha crossover operator. |
|
Simulated Binary Crossover (SBX) operator. |
|
Uniform crossover operator. |
|
One-point crossover operator. |
|
Two-point crossover operator. |
Mutation¶
Base class for mutation operators. |
|
Uniform mutation operator. |
|
Polynomial mutation operator. |
|
Gaussian mutation operator. |
Selection¶
Base class for parent selection operators. |
|
Tournament selection operator. |
|
Sequential selection operator. |
|
Roulette wheel selection operator using linear rank-based probabilities. |
|
Base class for survivor selection operators. |
|
Truncation selection operator. |
Repair¶
- saealib.repair_clipping(candidates, bounds)[source]¶
Repair operator that clips candidates to the given bounds.
- Parameters:
candidates (np.ndarray) – Candidate solutions to be repaired, shape (n, dim).
bounds (tuple[np.ndarray, np.ndarray]) – A (lb, ub) pair of lower and upper bound arrays.
- Returns:
Repaired candidates.
- Return type:
np.ndarray