diff --git a/src/main/java/ai/timefold/solver/benchmarks/micro/scoredirector/problems/ProblemInitializer.java b/src/main/java/ai/timefold/solver/benchmarks/micro/scoredirector/problems/ProblemInitializer.java index b5d513bf..0966d218 100644 --- a/src/main/java/ai/timefold/solver/benchmarks/micro/scoredirector/problems/ProblemInitializer.java +++ b/src/main/java/ai/timefold/solver/benchmarks/micro/scoredirector/problems/ProblemInitializer.java @@ -74,9 +74,12 @@ private static Solution_ initialize(Example example, Solution_ unini var config = new ConstructionHeuristicPhaseConfig() .withConstructionHeuristicType(ConstructionHeuristicType.FIRST_FIT); var factory = new DefaultConstructionHeuristicPhaseFactory(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() + .withEnvironmentMode(EnvironmentMode.REPRODUCIBLE) + .withRandom(new Random(0)) + .withInitializingScoreTrend(scoreDirectorFactory.getInitializingScoreTrend()) + .withSolutionDescriptor(scoreDirectorFactory.getSolutionDescriptor()) + .withClassInstanceCache(ClassInstanceCache.create()) .build(); var bestSolutionRecaller = BestSolutionRecallerFactory.create(). buildBestSolutionRecaller(EnvironmentMode.REPRODUCIBLE);