Class CompositeCrossover
java.lang.Object
org.uma.jmetal.operator.crossover.impl.CompositeCrossover
- All Implemented Interfaces:
Serializable,CrossoverOperator<CompositeSolution>,Operator<List<CompositeSolution>,List<CompositeSolution>>
This class allows to apply a list of crossover operator on the solutions belonging to a list of
CompositeSolution objects. It is required that the operators be compatible with the
solutions inside the composite solutions.- Author:
- Antonio J. Nebro
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoubleexecute(List<CompositeSolution> solutions) Execute() methodintint
-
Constructor Details
-
CompositeCrossover
-
-
Method Details
-
crossoverProbability
public double crossoverProbability()- Specified by:
crossoverProbabilityin interfaceCrossoverOperator<CompositeSolution>
-
execute
Execute() method- Specified by:
executein interfaceOperator<List<CompositeSolution>,List<CompositeSolution>> - Parameters:
solutions- The data to process
-
numberOfRequiredParents
public int numberOfRequiredParents()- Specified by:
numberOfRequiredParentsin interfaceCrossoverOperator<CompositeSolution>
-
numberOfGeneratedChildren
public int numberOfGeneratedChildren()- Specified by:
numberOfGeneratedChildrenin interfaceCrossoverOperator<CompositeSolution>
-
getOperators
-