Skip to content

Commit

Permalink
chore: minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
zepfred authored and triceo committed Dec 6, 2024
1 parent 4449959 commit e660dfc
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,12 @@ private static <Solution_> Solution_ initialize(Example example, Solution_ unini
var config = new ConstructionHeuristicPhaseConfig()
.withConstructionHeuristicType(ConstructionHeuristicType.FIRST_FIT);
var factory = new DefaultConstructionHeuristicPhaseFactory<Solution_>(config);
var policy = new HeuristicConfigPolicy.Builder<>(EnvironmentMode.REPRODUCIBLE,
null, null, null, null, new Random(0), scoreDirectorFactory.getInitializingScoreTrend(),
scoreDirectorFactory.getSolutionDescriptor(), ClassInstanceCache.create())
var policy = new HeuristicConfigPolicy.Builder<Solution_>()
.withEnvironmentMode(EnvironmentMode.REPRODUCIBLE)
.withRandom(new Random(0))
.withInitializingScoreTrend(scoreDirectorFactory.getInitializingScoreTrend())
.withSolutionDescriptor(scoreDirectorFactory.getSolutionDescriptor())
.withClassInstanceCache(ClassInstanceCache.create())
.build();
var bestSolutionRecaller =
BestSolutionRecallerFactory.create().<Solution_> buildBestSolutionRecaller(EnvironmentMode.REPRODUCIBLE);
Expand Down

0 comments on commit e660dfc

Please sign in to comment.