Hi,
I'm still in process to model my planning problem and I have some difficulties in defining the correct weight of soft constraints. I have soft constraints with different priorities : C1, C2, C3, ..., Cn where C1 are higher then C2. Currently, I've tried to set different weight for each of them : C1 get higher weight. But it's not sufficient since multiple C2 may balance one C1. What I really need is to set the priority to every soft constraints.
Solution #1 :
My first thought it to implement a new score definition (HardAndSoftPriorityScoreDefinition) having separate soft score for each priority. The rule may insert ConstraintOccurence by defining the weight and the priority. This solution seems elegant but require effort to implement the score definition, the score calculation, and other things I don't even know about.
Solution #2 :
The other solution is stated in the Drools Planner User Guide :