Advertisement
Guest User

Untitled

a guest
Feb 22nd, 2020
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.69 KB | None | 0 0
  1.     public VRPTWMutator(double mutationProbability, double distributionIndex, RepairDoubleSolution solutionRepair, RandomGenerator<Double> randomGenerator) {
  2.         if (mutationProbability < 0.0D) {
  3.             throw new JMetalException("Mutation probability is negative: " + mutationProbability);
  4.         } else if (distributionIndex < 0.0D) {
  5.             throw new JMetalException("Distribution index is negative: " + distributionIndex);
  6.         } else {
  7.             this.mutationProbability = mutationProbability;
  8.             this.distributionIndex = distributionIndex;
  9.             this.solutionRepair = solutionRepair;
  10.             this.randomGenerator = randomGenerator;
  11.         }
  12.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement