OptaPlanner を使用して、ネストされた 3 つの制約を構築しようとしています。それは機能しますが、非常に遅いです(非常に小さなデータセットの場合でも)...パフォーマンスを改善する方法を誰かが知っているでしょうか?
// pseudocode
first_constraint = false;
second_constraint = false;
third_constraint = false;
if (first_constraint == true) {
if (second_constraint == true) {
if (third_constraint == false) {score--;}
} else {score--;}
} else {score--;}