-
Notifications
You must be signed in to change notification settings - Fork 102
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Benchmark duplicated metrics (#761)
This pull request resolves a bug in the benchmark module where metrics are duplicated when running it multiple times, leading to inconsistent results. The problem is caused by a combination of an existing benchmark config that is created after the first run and the property `inheritedSolverBenchmark`. Therefore, the method `ai.timefold.solver.benchmark.impl.DefaultPlannerBenchmarkFactory#buildEffectiveSolverBenchmarkConfigList` will duplicate the values when inheriting the configuration at the line `#163`. The proposed solution fixes the problem by avoiding the duplicates in the config class `ProblemBenchmarksConfig`.
- Loading branch information
Showing
3 changed files
with
31 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters