Skip to content

Commit

Permalink
solver configuration, minimum group size constraint removed
Browse files Browse the repository at this point in the history
  • Loading branch information
UrszulaNeuman committed Nov 18, 2015
1 parent 545385e commit f25cd54
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 13 deletions.
11 changes: 0 additions & 11 deletions src/main/resources/scheduling.drl
Original file line number Diff line number Diff line change
Expand Up @@ -139,17 +139,6 @@ rule "groupSizeHard"
scoreHolder.addHardConstraintMatch(kcontext,-groupHard*$total.intValue());
end

rule "groupSizeHard11"
when
Allocation($aid : ID, getShift() != null, $ashiftID : getShift().getID(), getPerson() != null, $aPersonID : getPerson().getID())
$total : Number(intValue < 1) from accumulate(
$a : Allocation(ID!=$aid, getShift() != null, getShift().getID() == $ashiftID, getPerson().getID() != $aPersonID),
count($a)
)
then

scoreHolder.addHardConstraintMatch(kcontext, -1);
end


rule "noOverlappingAllocationsHard"
Expand Down
4 changes: 2 additions & 2 deletions src/main/resources/solverConfig.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@

<termination>
<terminationCompositionStyle>OR</terminationCompositionStyle>
<hoursSpentLimit>3</hoursSpentLimit>
<unimprovedMinutesSpentLimit>30</unimprovedMinutesSpentLimit>
<minutesSpentLimit>3</minutesSpentLimit>
<unimprovedMinutesSpentLimit>1</unimprovedMinutesSpentLimit>
</termination>
<constructionHeuristic>
<constructionHeuristicType>FIRST_FIT</constructionHeuristicType>
Expand Down

0 comments on commit f25cd54

Please sign in to comment.