[rules-users] Drools Planner: Simple problem having solution with one hard constraint broken. What’s wrong?
hevo
hevo4ever-dev at yahoo.com
Mon Dec 19 17:12:02 EST 2011
For References, one possible, simple solution
Initialized with Employee.NONE
Changed Hard constraints :
1. task must Match Employee Role and must not be Employee.NONE
-2 Constraint Occurrence
2. one Task Per Employee and must not be Employee.NONE
-2 Constraint Occurrence
3. Task contains Employee.NONE
-1 Constraint Occurrence
This will force the rules to select none instead of an employee who breaks
the rules.
And could be a quick fix if applied as NULL object.
Making breached rules to have higher constraints than null.
Regards and thanks for all the help.
--
View this message in context: http://drools.46999.n3.nabble.com/Drools-Planner-Simple-problem-having-solution-with-one-hard-constraint-broken-What-s-wrong-tp3595797p3599738.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
More information about the rules-users
mailing list