私は OtpaPlanner を使用して、車両ルーティング エクステンションを最適化しています。ハード スコアとソフト スコアを取得しましたが、制約の一致の詳細を表示しようとすると、次のメッセージが表示されました。
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
at org.optaplanner.core.impl.score.director.drools.DroolsScoreDirector.getConstraintMatchTotals(DroolsScoreDirector.java:98)
at org.optaplanner.examples.common.business.SolutionBusiness.getConstraintMatchTotalList(SolutionBusiness.java:239)
エラー行は次のようになります。 kieSession.fireAllRules();