evox.operators.crossover.sbx
¶
Module Contents¶
Functions¶
Simulated binary crossover (SBX) |
API¶
- evox.operators.crossover.sbx.simulated_binary(x: torch.Tensor, pro_c: float = 1.0, dis_c: float = 20.0) torch.Tensor [source]¶
Simulated binary crossover (SBX)
- Parameters:
x – Parent solutions in a 2D tensor (size: n x d).
pro_c – Probability of doing crossover.
dis_c – Distribution index of SBX.
- Returns:
Offspring solutions after crossover.