Are you using 6.0.0.Final? There was a bug with nullable variables and CH's in 6.0.0.CR5 and earlier.
On 24-11-13 03:20, newbie wrote: > I created a custom solver which assign planning variables to planning > entities. I have a simple rule checking if there are no assign variable > that adds negative soft constraint. But when I assigned my planning variable > it increases the negative score instead of reducing it. I have for example > 12 entities and my starting score was > 0/-12.But when I initialized it with 4 variables it increases to 0/-16. > > rule "null variable" > > when > $myEntity : Entity( variable == null ) > then > scoreHolder.addSoftConstraintMatch(kcontext, 0, -1); > end > > > > -- > View this message in context: > http://drools.46999.n3.nabble.com/SolutionInitializer-for-Nullable-Planning-Variable-tp4026901.html > Sent from the Drools: User forum mailing list archive at Nabble.com. > _______________________________________________ > rules-users mailing list > [email protected] > https://lists.jboss.org/mailman/listinfo/rules-users > _______________________________________________ rules-users mailing list [email protected] https://lists.jboss.org/mailman/listinfo/rules-users
