public class EqualStudentWeights extends PriorityStudentWeights
PriorityStudentWeights
.StudentWeights.Implementation
iAlternativeRequestFactor, iBalancingFactor, iDistanceConflict, iFirstAlternativeFactor, iLeftoverSpread, iPriorityFactor, iProjectedStudentWeight, iSecondAlternativeFactor, 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, getDistanceConflictWeight, getTimeOverlapConflictWeight, getWeight, getWeight, 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