public class ImportantStudentHardConflict extends ImportantStudentConflict
ImportantStudentConflict
, but
only hard student conflicts are counted (between classes that do not have alternatives,
see Lecture.isSingleSection()
). Weighted by Comparator.ImportantHardStudentConflictWeight
parameter.
.
AbstractCriterion.ValueContext, AbstractCriterion.ValueUpdateType
iIncludeConflicts
iBest, iDebug, iWeight, sDoubleFormat, sPercentFormat
sMaxSize
Constructor and Description |
---|
ImportantStudentHardConflict() |
Modifier and Type | Method and Description |
---|---|
void |
getInfo(Assignment<Lecture,Placement> assignment,
Map<String,String> info)
Adds some information into the table with information about the solution
|
void |
getInfo(Assignment<Lecture,Placement> assignment,
Map<String,String> info,
Collection<Lecture> variables)
Adds some information into the table with information about the solution,
only consider variables from the given set
|
String |
getPlacementSelectionWeightName() |
double |
getWeightDefault(DataProperties config)
Defines default weight (when
AbstractCriterion.getWeightName() parameter is not present in the criterion). |
boolean |
isApplicable(Lecture l1,
Lecture l2) |
boolean |
isApplicable(Student student,
Lecture l1,
Lecture l2) |
important, incJenrl, jointEnrollment
applicable, bestRestored, committed, configure, distance, getBounds, getBounds, getMetrics, getValue, getValue, hard, ignore, inConflict, jointEnrollment, overlaps, slots, uncommitted, workday
getPlacementSelectionAdjustmentsName, getPlacementSelectionWeight, getPlacementSelectionWeightDefault
afterAssigned, afterUnassigned, beforeAssigned, beforeUnassigned, bestSaved, clearCache, computeBounds, constraintAdded, constraintRemoved, createAssignmentContext, getAbbreviation, getAssignmentContextReference, getBest, getBounds, getBounds, getContext, getContext, getExtendedInfo, getModel, getName, getPerc, getPercentage, getPercRev, getValue, getValue, getValue, getValueUpdateType, getWeight, getWeightedBest, getWeightedValue, getWeightedValue, getWeightedValue, getWeightedValue, getWeightedValue, getWeightedValue, getWeightName, inc, inc, init, setAssignmentContextReference, setModel, setValueUpdateType, toString, variableAdded, variableRemoved
public ImportantStudentHardConflict()
public boolean isApplicable(Lecture l1, Lecture l2)
isApplicable
in class ImportantStudentConflict
public boolean isApplicable(Student student, Lecture l1, Lecture l2)
isApplicable
in class ImportantStudentConflict
public double getWeightDefault(DataProperties config)
AbstractCriterion
AbstractCriterion.getWeightName()
parameter is not present in the criterion).getWeightDefault
in class ImportantStudentConflict
config
- solver configurationpublic String getPlacementSelectionWeightName()
getPlacementSelectionWeightName
in class ImportantStudentConflict
public void getInfo(Assignment<Lecture,Placement> assignment, Map<String,String> info)
InfoProvider
getInfo
in interface InfoProvider<Lecture,Placement>
getInfo
in class ImportantStudentConflict
assignment
- current assignmentinfo
- info tablepublic void getInfo(Assignment<Lecture,Placement> assignment, Map<String,String> info, Collection<Lecture> variables)
InfoProvider
getInfo
in interface InfoProvider<Lecture,Placement>
getInfo
in class ImportantStudentConflict
assignment
- current assignmentinfo
- info tablevariables
- sub-problem