|
Op 20-09-12 08:06, kostis schreef:
The examination example has a problem description, problem size and domain model documentation:Hello, Is there any guidance about the domain model of the examination example? http://docs.jboss.org/drools/release/5.4.0.Final/drools-planner-docs/html_single/index.html#d0e1267 It even includes a class diagram of the model InstitutionalWeighting is basically a set of parameters of a single dataset to dynamically configure when the constraints active and how big their penalty is.The class InstitutionalWeighting has some properties that I cannot undestand the purpose of them For example: if periodSpreadLength = 5, than students want to have 5 free periods between 2 exams. Some universities use periodSpreadLength = 5, others periodSpreadLength = 3, etc, but they all use the same drl file (in the current implementation). // Exams which share students have to few periods between them rule "periodSpread" when $institutionalWeighting : InstitutionalWeighting(periodSpreadPenalty != 0) $topicConflict : TopicConflict($leftTopic : leftTopic, $rightTopic : rightTopic) $leftExam : Exam(topic == $leftTopic, $leftPeriod : period) $rightExam : Exam(topic == $rightTopic, $rightPeriod : period) eval(Math.abs($leftPeriod.getPeriodIndex() - $rightPeriod.getPeriodIndex()) < ($institutionalWeighting.getPeriodSpreadLength() + 1)) then insertLogical(new IntConstraintOccurrence("periodSpread", ConstraintType.NEGATIVE_SOFT, $topicConflict.getStudentSize() * $institutionalWeighting.getPeriodSpreadPenalty(), $leftExam, $rightExam)); end Thank you -- View this message in context: http://drools.46999.n3.nabble.com/Examination-drools-planner-example-tp4019859.html Sent from the Drools: User forum mailing list archive at Nabble.com. _______________________________________________ rules-users mailing list [email protected] https://lists.jboss.org/mailman/listinfo/rules-users |
_______________________________________________ rules-users mailing list [email protected] https://lists.jboss.org/mailman/listinfo/rules-users
