mirror of
https://github.com/graphhopper/jsprit.git
synced 2020-01-24 07:45:05 +01:00
speed up regret insertion
This commit is contained in:
parent
c72c243bf0
commit
e12136393a
8 changed files with 75 additions and 98 deletions
|
|
@ -144,7 +144,7 @@ public class BuildAlgorithmFromScratch {
|
|||
InsertionBuilder iBuilder = new InsertionBuilder(vrp, fleetManager, stateManager, constraintManager);
|
||||
iBuilder.setInsertionStrategy(InsertionBuilder.Strategy.REGRET);
|
||||
RegretInsertion regret = (RegretInsertion) iBuilder.build();
|
||||
RegretInsertion.DefaultScorer scoringFunction = new RegretInsertion.DefaultScorer(vrp);
|
||||
DefaultScorer scoringFunction = new DefaultScorer(vrp);
|
||||
scoringFunction.setDepotDistanceParam(0.2);
|
||||
scoringFunction.setTimeWindowParam(-.2);
|
||||
regret.setScoringFunction(scoringFunction);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue