Re: [rules-users] SolutionInitializer for Nullable Planning Variable

2013-11-24 Thread Geoffrey De Smet
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
 rules-users@lists.jboss.org
 https://lists.jboss.org/mailman/listinfo/rules-users


___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] SolutionInitializer for Nullable Planning Variable

2013-11-24 Thread newbie
Yes I am using now the latest version 6.0.0.Final.



--
View this message in context: 
http://drools.46999.n3.nabble.com/SolutionInitializer-for-Nullable-Planning-Variable-tp4026901p4026905.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] SolutionInitializer for Nullable Planning Variable

2013-11-24 Thread Geoffrey De Smet
In that case, can you create a new jira and attach any way I can 
reproduce the issue locally?
   https://issues.jboss.org/browse/PLANNER

On 24-11-13 14:50, newbie wrote:
 Yes I am using now the latest version 6.0.0.Final.



 --
 View this message in context: 
 http://drools.46999.n3.nabble.com/SolutionInitializer-for-Nullable-Planning-Variable-tp4026901p4026905.html
 Sent from the Drools: User forum mailing list archive at Nabble.com.
 ___
 rules-users mailing list
 rules-users@lists.jboss.org
 https://lists.jboss.org/mailman/listinfo/rules-users


___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


[rules-users] SolutionInitializer for Nullable Planning Variable

2013-11-23 Thread newbie
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
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users