Package net.maswag.falcaun
Class IntegerRandomMutation
java.lang.Object
net.maswag.falcaun.IntegerRandomMutation
- All Implemented Interfaces:
Serializable
,org.uma.jmetal.operator.MutationOperator<org.uma.jmetal.solution.IntegerSolution>
,org.uma.jmetal.operator.Operator<org.uma.jmetal.solution.IntegerSolution,
org.uma.jmetal.solution.IntegerSolution>
public class IntegerRandomMutation
extends Object
implements org.uma.jmetal.operator.MutationOperator<org.uma.jmetal.solution.IntegerSolution>
This class implements a random mutation operator for integer solution.
- Author:
- Masaki Waga
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionIntegerRandomMutation
(double mutationProbability) IntegerRandomMutation
(double mutationProbability, Random random) Constructor for IntegerRandomMutation. -
Method Summary
Modifier and TypeMethodDescription@NotNull org.uma.jmetal.solution.IntegerSolution
execute
(org.uma.jmetal.solution.IntegerSolution solution) double
void
setMutationProbability
(double mutationProbability)
-
Field Details
-
mutationProbability
private double mutationProbability -
random
-
-
Constructor Details
-
IntegerRandomMutation
Constructor for IntegerRandomMutation.
- Parameters:
mutationProbability
- a double.random
- aRandom
object.
-
IntegerRandomMutation
IntegerRandomMutation(double mutationProbability)
-
-
Method Details
-
getMutationProbability
public double getMutationProbability() -
setMutationProbability
public void setMutationProbability(double mutationProbability) -
execute
@NotNull public @NotNull org.uma.jmetal.solution.IntegerSolution execute(org.uma.jmetal.solution.IntegerSolution solution) - Specified by:
execute
in interfaceorg.uma.jmetal.operator.Operator<org.uma.jmetal.solution.IntegerSolution,
org.uma.jmetal.solution.IntegerSolution>
-