Re: [rules-users] How do you know when all rules have finished

2010-01-22 Thread Wolfgang Laun
I imagine (contradict me if I'm wrong) that your problem is a complex variant of Conway's Game of Life. But even this simple generating algorithm defies any attempt of analysis except by "simulate and observe". So, I doubt that your (presumably

Re: [rules-users] Using work items in the Eclipse ruleflow editor

2010-01-22 Thread Dale Cameron
I'm using Eclipse and Drools 5.0.1 After following the suggestions in this string I am still unable to get the Domain specific work items to show in Eclipse. I have Created a new project and the src/main/resource source folder with the META-INF/.conf files in it. I also recreated the Drools runt

Re: [rules-users] How do you know when all rules have finished

2010-01-22 Thread drooler
Thx for the answer to the 1st question. The second question should have been more precise. I suppose what I do not 'get' yet is how the Planner interacts with the fact that the generations change. The examples for the solver show it working against a static set of facts, the planner move mechanis

Re: [rules-users] Understanding agenda-group (doesn't work as documented in book or docs)

2010-01-22 Thread Edson Tirelli
In the consequence of rule 1 you could write: drools.setFocus( "group 2" ); That will immediately place the group 2 on top of the stack and, since the rule 2 will be active, it will fire rule 2 in the sequence. Another way is, in rule 2, add the attribute: auto-focus. Whenever that rule

Re: [rules-users] Understanding agenda-group (doesn't work as documented in book or docs)

2010-01-22 Thread Pritham
I think I understood that part. My question was regarding a "rule consequence" -- as you mentioned -- potentially making another agenda-group "eligible" or even better, a rule consequence setting the focus of another agenda-group from within one. -- View this message in context: http://n3.nabble

Re: [rules-users] How do you know when all rules have finished

2010-01-22 Thread Edson Tirelli
Regarding your first question, it depends on how you want to model your application: * You can, for instance, just call fireAllRules() from your application code for the current generation. The engine will fire all rules it can fire and when the agenda is empty, return control to the applicatio

Re: [rules-users] How do you know when all rules have finished

2010-01-22 Thread Wolfgang Laun
On Fri, Jan 22, 2010 at 3:34 PM, drooler wrote: > > Hi, > > New to Drools. Could not find a specific answer to this, but it may be > there > in the forum somewhere. I have written a rule set for testing the 'fitness' > of 3000 generations of organizms. The rules always test fitness against the >

Re: [rules-users] Understanding agenda-group (doesn't work as documented in book or docs)

2010-01-22 Thread Edson Tirelli
I think you already figured out, but the stack starts only with the MAIN group and you must explicitly call setFocus in order to add a group to the stack. If a group is not added to the stack, the rule activation will remain in the group waiting to be placed in the stack. Edson 2010/1/21 P

Re: [rules-users] drools performance with

2010-01-22 Thread Edson Tirelli
Tom, The way to improve performance is to break the combinatorial problem by using one or both of the following: * Write patterns against different classes: instead of writing the rule as A() and A(), use different classes to represent each component and write A() and B(). * Write alpha co

[rules-users] How do you know when all rules have finished

2010-01-22 Thread drooler
Hi, New to Drools. Could not find a specific answer to this, but it may be there in the forum somewhere. I have written a rule set for testing the 'fitness' of 3000 generations of organizms. The rules always test fitness against the last dozen or so generations. So I need to start at generation 1

[rules-users] drools-solver recover the score of last step

2010-01-22 Thread dmzpippo-drools
Hi all, is possible in a DRL file, useded for droos-solver, recover the score of last step? I need it because with the rule I calculate a function score f(n); to diverrsificate the research if f(n) is bigger then f(n) of last step then add a penality... regards __