Class MutateDesignDecisionGenotype
java.lang.Object
de.uka.ipd.sdq.dsexplore.opt4j.operator.MutateDesignDecisionGenotype
- All Implemented Interfaces:
org.opt4j.core.optimizer.Operator<DesignDecisionGenotype>
,org.opt4j.operator.mutate.Mutate<DesignDecisionGenotype>
public class MutateDesignDecisionGenotype
extends Object
implements org.opt4j.operator.mutate.Mutate<DesignDecisionGenotype>
Mutator for
DesignDecisionGenotype
s. Calls the bound MutateInteger
or MutateDouble
, depending on
the type of DegreeOfFreedomInstance
of each gene.-
Constructor Summary
ConstructorDescriptionMutateDesignDecisionGenotype
(org.opt4j.common.random.Rand random, org.opt4j.operator.mutate.MutateInteger mutateInteger, org.opt4j.operator.mutate.MutateDouble mutateDouble, org.opt4j.operator.mutate.MutationRate rate) -
Method Summary
Modifier and TypeMethodDescriptionvoid
mutate
(DesignDecisionGenotype genotype, double mutationRate) Mutates the passedDesignDecisionGenotype
by calling a matchingMutate
for each gene.
-
Constructor Details
-
MutateDesignDecisionGenotype
@Inject public MutateDesignDecisionGenotype(org.opt4j.common.random.Rand random, org.opt4j.operator.mutate.MutateInteger mutateInteger, org.opt4j.operator.mutate.MutateDouble mutateDouble, org.opt4j.operator.mutate.MutationRate rate)
-
-
Method Details
-
mutate
Mutates the passedDesignDecisionGenotype
by calling a matchingMutate
for each gene.- Specified by:
mutate
in interfaceorg.opt4j.operator.mutate.Mutate<DesignDecisionGenotype>
-