public class UselessHalfHours extends BrokenTimePatterns
AbstractCriterion.ValueContext, AbstractCriterion.ValueUpdateType
iBest, iDebug, iWeight, sDoubleFormat, sPercentFormat
sMaxSize
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, penalty
getPlacementSelectionAdjustmentsName, getPlacementSelectionWeight, getPlacementSelectionWeightDefault
afterAssigned, 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, variableRemoved
public UselessHalfHours()
public double getWeightDefault(DataProperties config)
AbstractCriterion
AbstractCriterion.getWeightName()
parameter is not present in the criterion).getWeightDefault
in class BrokenTimePatterns
config
- solver configurationpublic String getPlacementSelectionWeightName()
getPlacementSelectionWeightName
in class BrokenTimePatterns
protected double penalty(RoomConstraint.RoomConstraintContext rc)
penalty
in class BrokenTimePatterns
protected double penalty(RoomConstraint.RoomConstraintContext rc, Placement value)
penalty
in class BrokenTimePatterns
protected 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