Skip to content

Commit e60f7c6

Browse files
committed
revert allow negative noise
1 parent 58e3e38 commit e60f7c6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jsprit-core/src/main/java/com/graphhopper/jsprit/core/algorithm/box/InsertionNoiseMaker.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ public void informIterationStarts(int i, VehicleRoutingProblem problem, Collecti
6060
@Override
6161
public double getCosts(JobInsertionContext iFacts, TourActivity prevAct, TourActivity newAct, TourActivity nextAct, double prevActDepTime) {
6262
if (random.nextDouble() < noiseProbability) {
63-
return noiseLevel * maxCosts * random.nextGaussian();
63+
return noiseLevel * maxCosts * random.nextDouble();
6464
}
6565
return 0;
6666
}

0 commit comments

Comments
 (0)