pyleecan.Functions.Optimization.tournamentDCD module

choseDCD(indiv_1, indiv_2)[source]

Chose between two individuals

Parameters:
  • indiv_1 (individual) –

  • indiv_2 (individual) –

Return type:

individual selected

tournamentDCD(pop, size)[source]

Select individuals from the population with a tournament based on the domination and the crowding distance This function is inspired by DEAP selTournamentDCD function at https://github.com/DEAP/deap/blob/master/deap/tools/emo.py

Parameters:
  • pop (list) – list of individuals created with the DEAP toolbox

  • size (int) – number of individual to select

Returns:

selection – list of individuals selected

Return type:

list