public class EqualStudentWeights extends PriorityStudentWeights
PriorityStudentWeights.StudentWeights.ImplementationiAdditiveWeights, iAlternativeRequestFactor, iBalancingFactor, iCriticalBoost, iDistanceConflict, iFirstAlternativeFactor, iGroupBestRatio, iGroupFactor, iGroupFillRatio, iImprovedBound, iLeftoverSpread, iMaximizeAssignment, iMPP, iNoTimeFactor, iOnlineFactor, iPastFactor, iPerturbationFactor, iPreciseComparison, iPriorityFactor, iPriortyBoost, iProjectedStudentWeight, iQalityWeights, iReservationNotFollowedFactor, iSameChoiceWeight, iSameConfigWeight, iSameTimeWeight, iSecondAlternativeFactor, iSelectionFactor, iShortDistanceConflict, 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
|
computeBound, getBaseWeight, getBoostedWeight, getBound, getCachedWeight, getDifference, getDistanceConflictWeight, getSelection, getStudentQualityConflictWeight, getTimeOverlapConflictWeight, getWeight, getWeight, getWeight, getWeightAdditive, getWeightMultiplicative, 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 PriorityStudentWeights