public class RoomPerturbationPenalty extends PerturbationPenalty
PerturbationPenalty.isMPP() is true (minimal
perturbation problem).
AbstractCriterion.ValueUpdateTypeiBest, iDebug, iValue, iValueUpdateType, iWeight, sDoubleFormat, sPercentFormat| Constructor and Description |
|---|
RoomPerturbationPenalty() |
| Modifier and Type | Method and Description |
|---|---|
double |
getValue(ExamPlacement value,
Set<ExamPlacement> conflicts)
Value of a proposed assignment (including hard conflicts)
|
double |
getWeightDefault(DataProperties config)
Defines default weight (when
AbstractCriterion.getWeightName() parameter is not present in the criterion). |
String |
getWeightName()
Defines weight name (to be used to get the criterion weight from the configuration).
|
String |
getXmlWeightName()
Name of the weight parameter in the parameters section of the examination XML file.
|
boolean |
isPeriodCriterion()
True if this criterion is based on period assignment.
|
String |
toString() |
getXmlParameters, init, isMPP, setXmlParametersgetBounds, getInfo, getPeriodValue, getRoomValue, isRoomCriterion, setWeightafterAssigned, afterUnassigned, beforeAssigned, beforeUnassigned, bestRestored, bestSaved, clearCache, computeBounds, constraintAdded, constraintRemoved, getBest, getBounds, getInfo, getModel, getName, getPerc, getPercRev, getValue, getValue, getWeight, getWeightedBest, getWeightedValue, getWeightedValue, getWeightedValue, inc, variableAdded, variableRemovedpublic RoomPerturbationPenalty()
public String getWeightName()
AbstractCriteriongetWeightName in class PerturbationPenaltypublic String getXmlWeightName()
ExamCriteriongetXmlWeightName in class PerturbationPenaltypublic double getWeightDefault(DataProperties config)
AbstractCriterionAbstractCriterion.getWeightName() parameter is not present in the criterion).getWeightDefault in class PerturbationPenaltypublic double getValue(ExamPlacement value, Set<ExamPlacement> conflicts)
CriteriongetValue in interface Criterion<Exam,ExamPlacement>getValue in class PerturbationPenaltypublic String toString()
toString in class PerturbationPenaltypublic boolean isPeriodCriterion()
ExamCriterionExamPlacement.getTimeCost().isPeriodCriterion in class ExamCriterion