evox.operators.mutation.pm_mutation
¶
Module Contents¶
Functions¶
Polynomial mutation. Inspired by PlatEMO. |
API¶
- evox.operators.mutation.pm_mutation.polynomial_mutation(x: torch.Tensor, lb: torch.Tensor, ub: torch.Tensor, pro_m: float = 1, dis_m: float = 20) torch.Tensor [source]¶
Polynomial mutation. Inspired by PlatEMO.
- Parameters:
x – The input population (size: n x d).
lb – The lower bounds for the decision variables.
ub – The upper bounds for the decision variables.
pro_m – Probability of mutation.
dis_m – The distribution index for polynomial mutation.
- Returns:
The mutated population. (size: n x d)