Class UniformDesignDecisionGenotypeCrossover
java.lang.Object
de.uka.ipd.sdq.dsexplore.opt4j.operator.UniformDesignDecisionGenotypeCrossover
- All Implemented Interfaces:
org.opt4j.core.optimizer.Operator<DesignDecisionGenotype>
,org.opt4j.operator.crossover.Crossover<DesignDecisionGenotype>
public class UniformDesignDecisionGenotypeCrossover
extends Object
implements org.opt4j.operator.crossover.Crossover<DesignDecisionGenotype>
Uniform crossover implementation. For each gene of the first offspring,
it is randomly decided whether the value of parent 1 or parent 2 is taken.
The second offspring then is the opposite.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.opt4j.optimizer.ea.Pair<DesignDecisionGenotype>
crossover
(DesignDecisionGenotype parent1, DesignDecisionGenotype parent2)
-
Constructor Details
-
UniformDesignDecisionGenotypeCrossover
@Inject public UniformDesignDecisionGenotypeCrossover(org.opt4j.common.random.Rand random)
-
-
Method Details
-
crossover
public org.opt4j.optimizer.ea.Pair<DesignDecisionGenotype> crossover(DesignDecisionGenotype parent1, DesignDecisionGenotype parent2) - Specified by:
crossover
in interfaceorg.opt4j.operator.crossover.Crossover<DesignDecisionGenotype>
-