benchmarking - 基准测试多个难度ComparatorClass?
问题描述
我想比较在此ConstructionHeuristic
阶段订购我的实体的各种选项。
我已经写了好几篇了difficultyComparatorClasses
。
但是由于类与实体的关联是通过实体类上的注释进行的,因此我无法在 Benchmarker 的配置中更改它。
您将如何对多个进行基准测试difficultyComparatorClass
?
解决方案
It seems this is not possible with difficulty (which is a shame), however as an alternative you can configure a sorter comparator class on your entity selector instead of configuring difficulty, as shown in the docs here: https://docs.optaplanner.org/7.9.0.Final/optaplanner-docs/html_single/index.html#sortedSelectionByComparator.
As a second alternative, you can run separate benchmarks and merge them together in one benchmark report (https://docs.optaplanner.org/7.9.0.Final/optaplanner-docs/html_single/index.html#benchmarkReportAggregation)
推荐阅读
- c++11 - 按位 AND 计算除以“n”的 2 的最大幂 - C++
- laravel - Laravel 5.6 - Eloquent 关系创建失败(类型错误)
- express - Mongoose,findByIdAndUpdate,更新除一个之外的所有?
- c - 将字符串解析为 C 中的数字
- java - 如何从 MP Android BarChart 中的 Y 轴中删除值
- java - Servlet 在 IntellJ 上不起作用
- python - 为稀疏的 64 位无符号整数创建最小完美哈希
- c# - 转换位图 tp 图像
- android - java.lang.UnsatisfiedLinkError: 找不到 java.lang.String com.swoop.utility.ImageStabilizer.hello() 的实现
- php - 通过 MySQL 和 PDO 使用 PHP 的多级嵌套 JSON 输出