Hi, I’m just playing around with jsprit for two weeks. Thank to stefan for this library. I run a lot of your examples as long as instances, but I still got troubles while making a custom CostCalculator
.
I know that I have to implement SolutionCostCalculator
interface so I read your default method
com.graphhopper.jsprit.core.algorithm.box.Jsprit.getObjectiveFunction(VehicleRoutingProblem vrp, double maxCosts)
And, the maxCosts
makes me quite unclear about it. So, can anybody explain for me about it?
Add: I did read the method, but still have no clue what it is!
final double maxCosts;
if(properties.containsKey(Parameter.MAX_TRANSPORT_COSTS.toString())){
maxCosts = Double.parseDouble(getProperty(Parameter.MAX_TRANSPORT_COSTS.toString()));
}
else{
maxCosts = jobNeighborhoods.getMaxDistance();
}