1
0
Fork 0
mirror of https://github.com/graphhopper/jsprit.git synced 2020-01-24 07:45:05 +01:00

turned fixcostcalc into soft constraint

This commit is contained in:
oblonski 2014-03-26 07:08:50 +01:00
parent 2f636fc07b
commit 5d44ecccdc

View file

@ -41,6 +41,7 @@ public class DellAmicoFixCostCalculator implements SoftRouteConstraint, Insertio
nuOfJobsToRecreate--;
double completenessRatio = (1-((double)nuOfJobsToRecreate/(double)nuOfJobs));
calculator.setSolutionCompletenessRatio(completenessRatio);
System.out.println(completenessRatio);
}
}