public class EqualStudentWeights extends PriorityStudentWeights
PriorityStudentWeights.StudentWeights.ImplementationiAlternativeRequestFactor, iBalancingFactor, iDistanceConflict, iFirstAlternativeFactor, iGroupBestRatio, iGroupFactor, iGroupFillRatio, iLeftoverSpread, iMPP, iPerturbationFactor, iPriorityFactor, iProjectedStudentWeight, iSameChoiceWeight, iSameConfigWeight, iSameTimeWeight, iSecondAlternativeFactor, iSelectionFactor, iTimeOverlapFactor, iTimeOverlapMaxLimit| Constructor and Description |
|---|
EqualStudentWeights(DataProperties config) |
| Modifier and Type | Method and Description |
|---|---|
double |
getWeight(Request request) |
boolean |
isBetterThanBestSolution(Solution<Request,Enrollment> currentSolution)
Compares two solutions.
|
boolean |
isFreeTimeAllowOverlaps()
Return true if free time requests allow overlaps
|
static void |
main(String[] args)
Test case -- run to see the weights for a few courses
|
getBound, getCachedWeight, getDifference, getDistanceConflictWeight, getSelection, getTimeOverlapConflictWeight, getWeight, getWeight, roundpublic EqualStudentWeights(DataProperties config)
public double getWeight(Request request)
getWeight in class PriorityStudentWeightspublic boolean isBetterThanBestSolution(Solution<Request,Enrollment> currentSolution)
SolutionComparatorSolution.saveBest() and
Solution.restoreBest()).isBetterThanBestSolution in interface SolutionComparator<Request,Enrollment>isBetterThanBestSolution in class PriorityStudentWeightscurrentSolution - given solutionpublic boolean isFreeTimeAllowOverlaps()
StudentWeightsisFreeTimeAllowOverlaps in interface StudentWeightsisFreeTimeAllowOverlaps in class PriorityStudentWeightsCopyright © 2017 UniTime LLC. All Rights Reserved.