public class Perturbations extends TimetablingCriterion
PerturbationsCounter
.
AbstractCriterion.ValueContext, AbstractCriterion.ValueUpdateType
iBest, iDebug, iWeight, sDoubleFormat, sPercentFormat
sMaxSize
Constructor and Description |
---|
Perturbations() |
Modifier and Type | Method and Description |
---|---|
double[] |
getBounds(Assignment<Lecture,Placement> assignment)
Bounds (minimum and maximum) estimate for the value
|
double[] |
getBounds(Assignment<Lecture,Placement> assignment,
Collection<Lecture> variables)
Value bounds (minimum and maximum) of the criterion on a part of the problem
|
PerturbationsCounter<Lecture,Placement> |
getPerturbationsCounter() |
String |
getPlacementSelectionWeightName() |
double |
getValue(Assignment<Lecture,Placement> assignment)
Current value of the criterion (optimization objective)
|
double |
getValue(Assignment<Lecture,Placement> assignment,
Collection<Lecture> variables)
Value of a part of the problem (given by the collection of variables)
|
double |
getValue(Assignment<Lecture,Placement> assignment,
Placement value,
Set<Placement> 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). |
boolean |
init(Solver<Lecture,Placement> solver)
Notification that the model was initialized by the solver.
|
configure, getPlacementSelectionAdjustmentsName, getPlacementSelectionWeight, getPlacementSelectionWeightDefault
afterAssigned, afterUnassigned, beforeAssigned, beforeUnassigned, bestRestored, bestSaved, clearCache, computeBounds, constraintAdded, constraintRemoved, createAssignmentContext, getAbbreviation, getAssignmentContextReference, getBest, getBounds, getBounds, getContext, getContext, getExtendedInfo, getInfo, getInfo, getModel, getName, getPerc, getPercentage, getPercRev, getValue, getValue, getValueUpdateType, getWeight, getWeightedBest, getWeightedValue, getWeightedValue, getWeightedValue, getWeightedValue, getWeightedValue, getWeightedValue, getWeightName, inc, inc, setAssignmentContextReference, setModel, setValueUpdateType, toString, variableAdded, variableRemoved
public Perturbations()
public String getPlacementSelectionWeightName()
getPlacementSelectionWeightName
in class TimetablingCriterion
public boolean init(Solver<Lecture,Placement> solver)
ModelListener
init
in interface ModelListener<Lecture,Placement>
init
in class AbstractCriterion<Lecture,Placement>
solver
- IFS solverpublic double getWeightDefault(DataProperties config)
AbstractCriterion
AbstractCriterion.getWeightName()
parameter is not present in the criterion).getWeightDefault
in class AbstractCriterion<Lecture,Placement>
config
- solver configurationpublic PerturbationsCounter<Lecture,Placement> getPerturbationsCounter()
public double getValue(Assignment<Lecture,Placement> assignment, Placement value, Set<Placement> conflicts)
Criterion
assignment
- current assignmentvalue
- given valueconflicts
- values conflicting with the given valuepublic double getValue(Assignment<Lecture,Placement> assignment)
Criterion
public double getValue(Assignment<Lecture,Placement> assignment, Collection<Lecture> variables)
Criterion
public double[] getBounds(Assignment<Lecture,Placement> assignment)
Criterion
public double[] getBounds(Assignment<Lecture,Placement> assignment, Collection<Lecture> variables)
Criterion