我想比较在ConstructionHeuristic
阶段订购实体的各种选项。
我写了几本difficultyComparatorClasses
。
但是由于类与实体的关联是通过Entity类上的注释进行的,因此我无法在Benchmarker的配置中对其进行更改。
您如何基准多个difficultyComparatorClass
?
答案 0 :(得分:1)
似乎很难做到这一点(很可惜),但是作为替代方案,您可以在实体选择器上配置分类器比较器类,而不是配置困难,如此处的文档所示:https://docs.optaplanner.org/7.9.0.Final/optaplanner-docs/html_single/index.html#sortedSelectionByComparator
作为第二种选择,您可以运行单独的基准并将它们合并到一个基准报告(https://docs.optaplanner.org/7.9.0.Final/optaplanner-docs/html_single/index.html#benchmarkReportAggregation)