On 11-07-13 14:57, jonathan.labin wrote:
ge0ffrey wrote
> But the first question is why you're getting score corruption the first
> place.
Of course I'm not sure of the cause of the score corruption. I assume that
it is due to my rules using an accumulator over Planning Entities in the
When portion of the rule and that somehow confusing the delta score
calculations.
Several examples (such as cloud balance) use rules that accumulate
too,
yet don't suffer from score corruption.
1) Do you use custom moves? (forgetting to tell the scoreDirector of the
changes you did on the entities can cause corruption)
2) What version of OptaPlanner do you use? It's good idea to upgrade to
Beta5, regardless.
3) Do you use your own cloner?
4) What rule is causing corruption? Can you copy paste it?
If none of the above explain the score corruption and you're on Beta5,
there's a remote chance its an issue in drools itself.
Create a reproducer, attach it a new jira issue, and we'll look into.
Here's an example of such an similar jira:
https://issues.jboss.org/browse/DROOLS-108
I hoped that a rule redesign based on Shadow Variables or insertLogical
rather than accumulators would be more efficient and not result in score
corruption.
Jon
--
View this message in context:
http://drools.46999.n3.nabble.com/Optaplanner-Shadow-Variables-vs-insertL...
Sent from the Drools: User forum mailing list archive at
Nabble.com.
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users