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

add getter for solution completeness ratio

This commit is contained in:
oblonski 2016-08-15 10:58:48 +02:00
parent 2212f53b73
commit 3158f99b67

View file

@ -90,6 +90,8 @@ final class JobInsertionConsideringFixCostsCalculator implements JobInsertionCos
solution_completeness_ratio = ratio; solution_completeness_ratio = ratio;
} }
public double getSolutionCompletenessRatio() { return solution_completeness_ratio; }
private double getDeltaAbsoluteFixCost(VehicleRoute route, Vehicle newVehicle, Job job, Capacity currentMaxLoadInRoute) { private double getDeltaAbsoluteFixCost(VehicleRoute route, Vehicle newVehicle, Job job, Capacity currentMaxLoadInRoute) {
Capacity load = Capacity.addup(currentMaxLoadInRoute, job.getSize()); Capacity load = Capacity.addup(currentMaxLoadInRoute, job.getSize());
double currentFix = 0.0; double currentFix = 0.0;