public class UselessHalfHours extends BrokenTimePatterns
AbstractCriterion.ValueContext, AbstractCriterion.ValueUpdateTypeiBest, iDebug, iWeight, sDoubleFormat, sPercentFormatsMaxSize| Constructor and Description |
|---|
UselessHalfHours() |
| Modifier and Type | Method and Description |
|---|---|
static int |
countUselessSlotsHalfHours(RoomConstraint.RoomConstraintContext rc)
Number of useless slots for this room
|
protected static int |
countUselessSlotsHalfHours(RoomConstraint.RoomConstraintContext rc,
Placement placement)
Number of useless half hours for this room
|
String |
getPlacementSelectionWeightName() |
double |
getWeightDefault(DataProperties config)
Defines default weight (when
AbstractCriterion.getWeightName() parameter is not present in the criterion). |
protected double |
penalty(RoomConstraint.RoomConstraintContext rc) |
protected double |
penalty(RoomConstraint.RoomConstraintContext rc,
Placement value) |
computeBounds, configure, countUselessSlotsBrokenTimePatterns, countUselessSlotsBrokenTimePatterns, getBounds, getValue, getValue, penaltygetPlacementSelectionAdjustmentsName, getPlacementSelectionWeight, getPlacementSelectionWeightDefaultafterAssigned, afterUnassigned, beforeAssigned, beforeUnassigned, bestRestored, bestSaved, clearCache, constraintAdded, constraintRemoved, createAssignmentContext, getAbbreviation, getAssignmentContextReference, getBest, getBounds, getBounds, getBounds, getContext, getContext, getExtendedInfo, getInfo, getInfo, 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 UselessHalfHours()
public double getWeightDefault(DataProperties config)
AbstractCriterionAbstractCriterion.getWeightName() parameter is not present in the criterion).getWeightDefault in class BrokenTimePatternsconfig - solver configurationpublic String getPlacementSelectionWeightName()
getPlacementSelectionWeightName in class BrokenTimePatternsprotected double penalty(RoomConstraint.RoomConstraintContext rc)
penalty in class BrokenTimePatternsprotected double penalty(RoomConstraint.RoomConstraintContext rc, Placement value)
penalty in class BrokenTimePatternsprotected static int countUselessSlotsHalfHours(RoomConstraint.RoomConstraintContext rc, Placement placement)
rc - room constraint assignment contextplacement - placement that is being consideredpublic static int countUselessSlotsHalfHours(RoomConstraint.RoomConstraintContext rc)
rc - room constraint assignment context