mirror of
https://github.com/graphhopper/jsprit.git
synced 2020-01-24 07:45:05 +01:00
add fixed cost to insertion cost
This commit is contained in:
parent
6750969700
commit
25c123bc61
1 changed files with 1 additions and 0 deletions
|
|
@ -118,6 +118,7 @@ final class VehicleTypeDependentJobInsertionCalculator implements JobInsertionCo
|
|||
bestIData.getFailedConstraintNames().addAll(iData.getFailedConstraintNames());
|
||||
continue;
|
||||
}
|
||||
iData.setInsertionCost(iData.getInsertionCost() + v.getType().getVehicleCostParams().fix);
|
||||
if (iData.getInsertionCost() < bestKnownCost_) {
|
||||
bestIData = iData;
|
||||
bestKnownCost_ = iData.getInsertionCost();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue