public class FlexibleConstraintCriterion extends TimetablingCriterion
AbstractCriterion.ValueUpdateType
iBest, iValue, iValueUpdateType, iWeight, sDoubleFormat, sPercentFormat
Constructor and Description |
---|
FlexibleConstraintCriterion() |
Modifier and Type | Method and Description |
---|---|
void |
getInfo(Map<String,String> info)
Adds some information into the table with information about the solution
|
void |
getInfo(Map<String,String> info,
Collection<Lecture> variables)
Adds some information into the table with information about the solution,
only consider variables from the given set
|
String |
getPlacementSelectionWeightName() |
double |
getValue(Collection<Lecture> variables)
Value of a part of the problem (given by the collection of variables)
|
double |
getValue(Placement value,
Set<Placement> conflicts)
Value of a proposed assignment (including hard conflicts)
|
boolean |
init(Solver<Lecture,Placement> solver)
Notification that the model was initialized by the solver.
|
getAbbreviation, getPlacementSelectionWeight, getPlacementSelectionWeightDefault, toString
afterAssigned, afterUnassigned, beforeAssigned, beforeUnassigned, bestRestored, bestSaved, clearCache, computeBounds, constraintAdded, constraintRemoved, getBest, getBounds, getBounds, getModel, getName, getPerc, getPercRev, getValue, getWeight, getWeightDefault, getWeightedBest, getWeightedValue, getWeightedValue, getWeightedValue, getWeightName, inc, variableAdded, variableRemoved
public FlexibleConstraintCriterion()
public boolean init(Solver<Lecture,Placement> solver)
ModelListener
init
in interface ModelListener<Lecture,Placement>
init
in class TimetablingCriterion
solver
- IFS solverpublic String getPlacementSelectionWeightName()
getPlacementSelectionWeightName
in class TimetablingCriterion
public void getInfo(Map<String,String> info)
InfoProvider
getInfo
in interface InfoProvider<Lecture>
getInfo
in class AbstractCriterion<Lecture,Placement>
public void getInfo(Map<String,String> info, Collection<Lecture> variables)
InfoProvider
getInfo
in interface InfoProvider<Lecture>
getInfo
in class AbstractCriterion<Lecture,Placement>
public double getValue(Collection<Lecture> variables)
Criterion