public class UselessHalfHours extends BrokenTimePatterns
AbstractCriterion.ValueUpdateType
iBest, iDebug, iValue, iValueUpdateType, iWeight, sDoubleFormat, sPercentFormat
Constructor and Description |
---|
UselessHalfHours() |
Modifier and Type | Method and Description |
---|---|
static int |
countUselessSlotsHalfHours(RoomConstraint rc)
Number of useless slots for this room
|
protected static int |
countUselessSlotsHalfHours(RoomConstraint 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 rc) |
protected double |
penalty(RoomConstraint rc,
Placement value) |
computeBounds, countUselessSlotsBrokenTimePatterns, countUselessSlotsBrokenTimePatterns, getBounds, getValue, getValue, penalty
getAbbreviation, getPlacementSelectionWeight, getPlacementSelectionWeightDefault, init, toString
afterAssigned, afterUnassigned, beforeAssigned, beforeUnassigned, bestRestored, bestSaved, clearCache, constraintAdded, constraintRemoved, getBest, getBounds, getInfo, getInfo, getModel, getName, getPerc, getPercRev, getValue, getWeight, getWeightedBest, getWeightedValue, getWeightedValue, getWeightedValue, getWeightName, inc, variableAdded, variableRemoved
public UselessHalfHours()
public double getWeightDefault(DataProperties config)
AbstractCriterion
AbstractCriterion.getWeightName()
parameter is not present in the criterion).getWeightDefault
in class BrokenTimePatterns
public String getPlacementSelectionWeightName()
getPlacementSelectionWeightName
in class BrokenTimePatterns
protected double penalty(RoomConstraint rc)
penalty
in class BrokenTimePatterns
protected double penalty(RoomConstraint rc, Placement value)
penalty
in class BrokenTimePatterns
protected static int countUselessSlotsHalfHours(RoomConstraint rc, Placement placement)
public static int countUselessSlotsHalfHours(RoomConstraint rc)