pyleecan.Methods.Optimization.OptiGenAlgNsga2Deap.mutate module

mutate(self, indiv)[source]
Mutate the individual design variables with different strategies according to the variables types :
  • interval : Polynomial Bounded mutation or user defined

  • set : Resampling the variable according to its initialization function

  • pyleecan : Resampling the variable according to its initialization function

Parameters:
  • solver (Solver) – solver to perform the genetic algorithm with DEAP

  • indiv (individual (e.g. OptiGenAlgIndivDeap)) – individual to mutate

Returns:

is_mutation – True if at least one mutation occured

Return type:

boolean