سؤال

Like the question says. After a

solver.solve();

I want to see specific rules (with values) that were violated. How can I get them from the solution?

هل كانت مفيدة؟

المحلول

The examples already do this, take a look at this method:

org.drools.planner.examples.common.business.SolutionBusiness#getScoreDetailList()

But it's not standardized yet, see this issue.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top