public class EqualStudentWeights extends PriorityStudentWeights
PriorityStudentWeights
.StudentWeights.Implementation
iAdditiveWeights, 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, round
public EqualStudentWeights(DataProperties config)
public double getWeight(Request request)
getWeight
in class PriorityStudentWeights
public boolean isBetterThanBestSolution(Solution<Request,Enrollment> currentSolution)
SolutionComparator
Solution.saveBest()
and
Solution.restoreBest()
).isBetterThanBestSolution
in interface SolutionComparator<Request,Enrollment>
isBetterThanBestSolution
in class PriorityStudentWeights
currentSolution
- given solutionpublic boolean isFreeTimeAllowOverlaps()
StudentWeights
isFreeTimeAllowOverlaps
in interface StudentWeights
isFreeTimeAllowOverlaps
in class PriorityStudentWeights