public class FlexibleConstraintCriterion extends TimetablingCriterion
AbstractCriterion.ValueUpdateTypeiBest, 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, toStringafterAssigned, 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, variableRemovedpublic FlexibleConstraintCriterion()
public boolean init(Solver<Lecture,Placement> solver)
ModelListenerinit in interface ModelListener<Lecture,Placement>init in class TimetablingCriterionsolver - IFS solverpublic String getPlacementSelectionWeightName()
getPlacementSelectionWeightName in class TimetablingCriterionpublic void getInfo(Map<String,String> info)
InfoProvidergetInfo in interface InfoProvider<Lecture>getInfo in class AbstractCriterion<Lecture,Placement>public void getInfo(Map<String,String> info, Collection<Lecture> variables)
InfoProvidergetInfo in interface InfoProvider<Lecture>getInfo in class AbstractCriterion<Lecture,Placement>public double getValue(Collection<Lecture> variables)
Criterion