Diversification isn't supported in Drools Planner yet.
But patches are welcome :)
You 'd have to go into the drools planner code, which isn't that hard.
See the latest manual how to build it from source.
https://hudson.jboss.org/hudson/job/drools/lastSuccessfulBuild/artifact/t...
Take a look at the default selector, it gets the deciderScope as a
parameter.
The DeciderScope has the stepScope and the stepScope has the score of
the last step, just what you need :)
Just build your own selector or better yet, adjust the default selector,
and run some experiments. Clean it up and feel free to make me a patch
and a jira issue and I 'll peer review it, improve it even more and add
it to the trunk code.
With kind regards,
Geoffrey De Smet
dmzpippo-drools(a)yahoo.it schreef:
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
------------------------------------------------------------------------
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users