-
Bug
-
Resolution: Done
-
Critical
-
None
-
None
-
None
The ability to report multiple scores from a single rule would improve performance when a single rule could be used to retrieve data for multiple scores. This would be very helpful to report scores that should not be folded. Currently, OptaPlanner just reports the last score in the list.
An example would be.
when ... then scoreHolder.addHardConstraintMatch(kcontext, 3, ($accessoryA == true ? -1 : 0)); scoreHolder.addHardConstraintMatch(kcontext, 4, ($accessoryB == true ? -1 : 0)); scoreHolder.addHardConstraintMatch(kcontext, 5, ($combinedUse == true ? 1 : 0));