cross (method)

cross(self, indiv1, indiv2)[source]

Perform the crossover (One crossover by default)

Parameters
  • self (OptiGenNsga2Deap) – Optimization solver

  • indiv1 (individual) – first individual to modify

  • indiv2 (individual) – second individual to modify

Returns

is_cross – True if the crossover append

Return type

bool