Crossover

class jmetal.operator.crossover.CXCrossover(probability: float)[source]

Bases: jmetal.core.operator.Crossover

execute(parents: List[jmetal.core.solution.PermutationSolution]) → List[jmetal.core.solution.PermutationSolution][source]
get_name()[source]
get_number_of_children() → int[source]
get_number_of_parents() → int[source]
class jmetal.operator.crossover.DifferentialEvolutionCrossover(CR: float, F: float, K: float)[source]

Bases: jmetal.core.operator.Crossover

This operator receives two parameters: the current individual and an array of three parent individuals. The best and rand variants depends on the third parent, according whether it represents the current of the “best” individual or a random_search one. The implementation of both variants are the same, due to that the parent selection is external to the crossover operator.

execute(parents: List[jmetal.core.solution.FloatSolution]) → List[jmetal.core.solution.FloatSolution][source]

Execute the differential evolution crossover (‘best/1/bin’ variant in jMetal).

get_name() → str[source]
get_number_of_children() → int[source]
get_number_of_parents() → int[source]
class jmetal.operator.crossover.NullCrossover[source]

Bases: jmetal.core.operator.Crossover

execute(parents: List[jmetal.core.solution.Solution]) → List[jmetal.core.solution.Solution][source]
get_name()[source]
get_number_of_children() → int[source]
get_number_of_parents() → int[source]
class jmetal.operator.crossover.PMXCrossover(probability: float)[source]

Bases: jmetal.core.operator.Crossover

execute(parents: List[jmetal.core.solution.PermutationSolution]) → List[jmetal.core.solution.PermutationSolution][source]
get_name()[source]
get_number_of_children() → int[source]
get_number_of_parents() → int[source]
class jmetal.operator.crossover.SBXCrossover(probability: float, distribution_index: float = 20.0)[source]

Bases: jmetal.core.operator.Crossover

execute(parents: List[jmetal.core.solution.FloatSolution]) → List[jmetal.core.solution.FloatSolution][source]
get_name() → str[source]
get_number_of_children() → int[source]
get_number_of_parents() → int[source]
class jmetal.operator.crossover.SPXCrossover(probability: float)[source]

Bases: jmetal.core.operator.Crossover

execute(parents: List[jmetal.core.solution.BinarySolution]) → List[jmetal.core.solution.BinarySolution][source]
get_name() → str[source]
get_number_of_children() → int[source]
get_number_of_parents() → int[source]