Re: [rules-users] Strange behaviour with maximumSecondsSpend termination in combination with PlanningVariableListener

2014-06-25 Thread dBijkoo
Here you can find the code that compiles with the 6.1.0.CR1 version 
CPTest.zip http://drools.46999.n3.nabble.com/file/n4030151/CPTest.zip  

In case anyone is interested, the jira issue can be found here: 
https://issues.jboss.org/browse/PLANNER-248



--
View this message in context: 
http://drools.46999.n3.nabble.com/Strange-behaviour-with-maximumSecondsSpend-termination-in-combination-with-PlanningVariableListener-tp4030128p4030151.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] Strange behaviour with maximumSecondsSpend termination in combination with PlanningVariableListener

2014-06-23 Thread dBijkoo
When i use the maximumSecondsSpend termination variable in the solverconfig
it doesnt always fully process the methods in the
PlanningVariableListenerEntity. Most of the time it gives me a solution
with semi done shadow variables but not always.


However when i change the termination to require a scoreAttained it always
gives me a solution with the correct processed shadow variables.

Any ideas why this might happen?



--
View this message in context: 
http://drools.46999.n3.nabble.com/Strange-behaviour-with-maximumSecondsSpend-termination-in-combination-with-PlanningVariableListener-tp4030128.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] Strange behaviour with maximumSecondsSpend termination in combination with PlanningVariableListener

2014-06-23 Thread Geoffrey De Smet

On 23-06-14 09:32, dBijkoo wrote:
 When i use the maximumSecondsSpend termination variable in the solverconfig
 it doesnt always fully process the methods in the
 PlanningVariableListenerEntity. Most of the time it gives me a solution
 with semi done shadow variables but not always.


 However when i change the termination to require a scoreAttained it always
 gives me a solution with the correct processed shadow variables.

 Any ideas why this might happen?
That's impossible. If it does, it's a bug.
The VariableListeners should always fire if a variable changed.
The terminations are checked between every move scope (and every step 
scope too of course),
and the variable listeners fire in the same move scope as their variable 
are changed,
so again, that's impossible :)

Can you can create a reproducer which uses the latest version (6.1.0.CR1)
and attach it to a jira issue?
   https://issues.jboss.org/browse/PLANNER

A reproducer is a zip with something that I can run easily locally offline
(preferably with as little as complexity as needed and as little data as 
needed).




 --
 View this message in context: 
 http://drools.46999.n3.nabble.com/Strange-behaviour-with-maximumSecondsSpend-termination-in-combination-with-PlanningVariableListener-tp4030128.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] Strange behaviour with maximumSecondsSpend termination in combination with PlanningVariableListener

2014-06-23 Thread dBijkoo
I just upgraded to 6.1.0.CR1 and the problem still occurs. 
maximumSecondsSpend gives an incorrect solution while scoreAttained does not
after 15+ times trying both.

I will make a jira issue about it.



--
View this message in context: 
http://drools.46999.n3.nabble.com/Strange-behaviour-with-maximumSecondsSpend-termination-in-combination-with-PlanningVariableListener-tp4030128p4030135.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