evox.operators.crossover.sbx_half

Module Contents

Functions

simulated_binary_half

Generate half of the offspring solutions after simulated binary crossover (SBX).

API

evox.operators.crossover.sbx_half.simulated_binary_half(x: torch.Tensor, pro_c: float = 1.0, dis_c: float = 20.0)[source]

Generate half of the offspring solutions after 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.