public class InstructorStudentHardConflict extends InstructorStudentConflict
AbstractCriterion.ValueContext, AbstractCriterion.ValueUpdateTypeiIncludeConflictsiBest, iDebug, iWeight, sDoubleFormat, sPercentFormatsMaxSize| Constructor and Description |
|---|
InstructorStudentHardConflict() |
| 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) |
static boolean |
oneInstructorOtherHard(Lecture l1,
Lecture l2)
One of the lectures is hard, there is a joint enrollment constraint between them, and
there is at least one student that is instructor for one lecture and the other lecture
is singleton.
|
incJenrl, instructor, jointEnrollmentapplicable, bestRestored, committed, configure, distance, getBounds, getBounds, getMetrics, getValue, getValue, hard, ignore, inConflict, isApplicable, jointEnrollment, overlaps, slots, uncommitted, workdaygetPlacementSelectionAdjustmentsName, getPlacementSelectionWeight, getPlacementSelectionWeightDefaultafterAssigned, 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, variableRemovedpublic InstructorStudentHardConflict()
public boolean isApplicable(Lecture l1, Lecture l2)
isApplicable in class InstructorStudentConflictpublic static boolean oneInstructorOtherHard(Lecture l1, Lecture l2)
l1 - first placementl2 - second placementpublic double getWeightDefault(DataProperties config)
AbstractCriterionAbstractCriterion.getWeightName() parameter is not present in the criterion).getWeightDefault in class InstructorStudentConflictconfig - solver configurationpublic String getPlacementSelectionWeightName()
getPlacementSelectionWeightName in class InstructorStudentConflictpublic void getInfo(Assignment<Lecture,Placement> assignment, Map<String,String> info)
InfoProvidergetInfo in interface InfoProvider<Lecture,Placement>getInfo in class InstructorStudentConflictassignment - current assignmentinfo - info tablepublic void getInfo(Assignment<Lecture,Placement> assignment, Map<String,String> info, Collection<Lecture> variables)
InfoProvidergetInfo in interface InfoProvider<Lecture,Placement>getInfo in class InstructorStudentConflictassignment - current assignmentinfo - info tablevariables - sub-problem