[rules-users] Difficulty determining why I have score corruption

Geoffrey De Smet ge0ffrey.spam at gmail.com
Thu Jan 10 09:11:40 EST 2013


Hi,

That rule looks good.
What version of drools-core (= drools expert) are you using?
I presume drools-planner 5.5.0.Final?

Op 10-01-13 04:24, megwoods schreef:
> Hi Geoffrey,
>
> I took your example and adapted it, however I am still getting score
> corruption.
>
> I have noticed that it takes a variable amount of time to fail.
>
> Thanks for your help thus far..
>
> Cheers Megan
>
> rule "too bigger gap soft"
>      when
>        $res: ResourceInstance()
>        $val: Number (intValue > 30) from accumulate (
>        		TripAtTimeWithResource( resource == $res, $a: startTime.minute, $c:
> trip.expectedDuration)
>      		and TripAtTimeWithResource(resource == $res, startTime.minute > $a,
> $b: startTime.minute)
>      		and not TripAtTimeWithResource(resource == $res, startTime.minute >
> $a, startTime.minute < $b),
>      		max($b - $a - $c))
>      then
>     
>     insertLogical(new IntConstraintOccurrence("too bigger gap soft",
> ConstraintType.NEGATIVE_SOFT,$val.intValue()*10, $res));	
> end
>
> Log attached.
>
> Difficulty_determining_why_I_have_score_corruption.txt
> <http://drools.46999.n3.nabble.com/file/n4021436/Difficulty_determining_why_I_have_score_corruption.txt>
>
>
>
>
> --
> View this message in context: http://drools.46999.n3.nabble.com/Difficulty-determining-why-I-have-score-corruption-tp4021412p4021436.html
> Sent from the Drools: User forum mailing list archive at Nabble.com.
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>



More information about the rules-users mailing list