You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
logger.warn("number of jobs in initial solution (" + nuJobs + ") is not equal nuJobs in vehicle routing problem (" + problem.getJobs().values().size() + ")" +
146
-
"\n this might yield unintended effects, e.g. initial solution cannot be improved anymore.");
145
+
logger.warn("number of jobs in initial solution ({}) is not equal nuJobs in vehicle routing problem ({})" +
146
+
"\n this might yield unintended effects, e.g. initial solution cannot be improved anymore.", nuJobs, problem.getJobs().values().size() );
147
147
}
148
148
}
149
149
@@ -188,7 +188,7 @@ public SearchStrategyManager getSearchStrategyManager() {
Copy file name to clipboardexpand all lines: jsprit-core/src/main/java/jsprit/core/algorithm/ruin/JobNeighborhoodsImplWithCapRestriction.java
+4-4
Original file line number
Diff line number
Diff line change
@@ -29,7 +29,7 @@ public JobNeighborhoodsImplWithCapRestriction(VehicleRoutingProblem vrp, JobDist
29
29
this.vrp = vrp;
30
30
this.jobDistance = jobDistance;
31
31
this.capacity = capacity;
32
-
logger.debug("intialise " +this);
32
+
logger.debug("intialise {}",this);
33
33
}
34
34
35
35
@Override
@@ -59,7 +59,7 @@ public void remove() {
59
59
60
60
@Override
61
61
publicvoidinitialise(){
62
-
logger.debug("calculates distances from EACH job to EACH job --> n^2="+Math.pow(vrp.getJobs().values().size(), 2) + " calculations, but 'only' "+(vrp.getJobs().values().size()*capacity)+ " are cached.");
62
+
logger.debug("calculates distances from EACH job to EACH job --> n^2={} calculations, but 'only' {} are cached.", Math.pow(vrp.getJobs().values().size(), 2), (vrp.getJobs().values().size()*capacity));
63
63
if(capacity==0) return;
64
64
calculateDistancesFromJob2Job();
65
65
}
@@ -101,8 +101,8 @@ public int compare(ReferencedJob o1, ReferencedJob o2) {
0 commit comments