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