|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.cpsolver.ifs.solution.GeneralSolutionComparator<Lecture,Placement>
net.sf.cpsolver.coursett.heuristics.TimetableComparator
@Deprecated public class TimetableComparator
Timetable (solution) comparator.
The quality of a solution is expressed as a weighted sum combining soft time
and classroom preferences, satisfied soft group constrains and the total
number of student conflicts. This allows us to express the importance of
different types of soft constraints.
The solution comparator prefers a more complete solution (with a smaller
number of unassigned variables) and a solution with a smaller number of
perturbations among solutions with the same number of unassigned variables.
If both solutions have the same number of unassigned variables and
perturbations, the solution of better quality is selected.
Parameters:
Parameter | Type | Comment |
---|---|---|
Comparator.HardStudentConflictWeight | Double |
Weight of hard student conflict (conflict between single-section classes) |
Comparator.StudentConflictWeight | Double |
Weight of student conflict |
Comparator.TimePreferenceWeight | Double |
Time preferences weight |
Comparator.ContrPreferenceWeight | Double |
Group constraint preferences weight |
Comparator.RoomPreferenceWeight | Double |
Room preferences weight |
Comparator.UselessSlotWeight | Double |
Useless slots weight |
Comparator.TooBigRoomWeight | Double |
Too big room weight |
Comparator.DistanceInstructorPreferenceWeight | Double |
Distance (of the rooms of the back-to-back classes) based instructor preferences weight |
Comparator.PerturbationPenaltyWeight | Double |
Perturbation penalty (see UniversalPerturbationsCounter ) |
Comparator.DeptSpreadPenaltyWeight | Double |
Department balancing penalty (see
DepartmentSpreadConstraint ) |
Constructor Summary | |
---|---|
TimetableComparator(DataProperties properties)
Deprecated. |
Method Summary | |
---|---|
double |
currentValue(Solution<Lecture,Placement> currentSolution)
Deprecated. |
double |
getBest(Solution<Lecture,Placement> currentSolution)
Deprecated. |
Methods inherited from class net.sf.cpsolver.ifs.solution.GeneralSolutionComparator |
---|
isBetterThanBestSolution |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TimetableComparator(DataProperties properties)
Method Detail |
---|
@Deprecated public double currentValue(Solution<Lecture,Placement> currentSolution)
Model.getTotalValue()
instead.
@Deprecated public double getBest(Solution<Lecture,Placement> currentSolution)
Solution.getBestValue()
instead.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |