|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.cpsolver.ifs.criteria.AbstractCriterion<Lecture,Placement>
net.sf.cpsolver.coursett.criteria.TimetablingCriterion
net.sf.cpsolver.coursett.criteria.placement.PlacementSelectionCriterion
net.sf.cpsolver.coursett.criteria.placement.WeightedHardConflicts
public class WeightedHardConflicts
Hard conflicts weighted by the conflict-based statistics (past occurrences).
Nested Class Summary |
---|
Nested classes/interfaces inherited from class net.sf.cpsolver.ifs.criteria.AbstractCriterion |
---|
AbstractCriterion.ValueUpdateType |
Field Summary | |
---|---|
protected long |
iIteration
|
protected ConflictStatistics<Lecture,Placement> |
iStat
|
Fields inherited from class net.sf.cpsolver.ifs.criteria.AbstractCriterion |
---|
iBest, iDebug, iValue, iValueUpdateType, iWeight, sDoubleFormat, sPercentFormat |
Constructor Summary | |
---|---|
WeightedHardConflicts()
|
Method Summary | |
---|---|
void |
bestCleared(Solution<Lecture,Placement> solution)
Called by the solution when method Solution.clearBest() is
called. |
void |
bestRestored(Solution<Lecture,Placement> solution)
Called by the solution when method Solution.restoreBest() is
called. |
void |
bestSaved(Solution<Lecture,Placement> solution)
Called by the solution when method Solution.saveBest() is called. |
void |
getInfo(Solution<Lecture,Placement> solution,
Map<String,String> info)
Called by the solution when it is asked to produce info table, see Solution.getInfo() . |
void |
getInfo(Solution<Lecture,Placement> solution,
Map<String,String> info,
Collection<Lecture> variables)
Called by the solution when it is asked to produce info table, see Solution.getInfo() . |
double |
getPlacementSelectionWeightDefault(int level)
|
String |
getPlacementSelectionWeightName()
|
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. |
void |
solutionUpdated(Solution<Lecture,Placement> solution)
Called by the solution when it is updated, see Solution.update(double) . |
Methods inherited from class net.sf.cpsolver.coursett.criteria.placement.PlacementSelectionCriterion |
---|
getInfo, getInfo, getWeightDefault |
Methods inherited from class net.sf.cpsolver.coursett.criteria.TimetablingCriterion |
---|
getPlacementSelectionWeight |
Methods inherited from class net.sf.cpsolver.ifs.criteria.AbstractCriterion |
---|
afterAssigned, afterUnassigned, beforeAssigned, beforeUnassigned, bestRestored, bestSaved, clearCache, computeBounds, constraintAdded, constraintRemoved, getBest, getBounds, getBounds, getModel, getName, getPerc, getPercRev, getValue, getValue, getWeight, getWeightedBest, getWeightedValue, getWeightedValue, getWeightedValue, getWeightName, inc, variableAdded, variableRemoved |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected ConflictStatistics<Lecture,Placement> iStat
protected long iIteration
Constructor Detail |
---|
public WeightedHardConflicts()
Method Detail |
---|
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 double getValue(Placement value, Set<Placement> conflicts)
Criterion
getValue
in interface Criterion<Lecture,Placement>
public double getPlacementSelectionWeightDefault(int level)
getPlacementSelectionWeightDefault
in class TimetablingCriterion
public void solutionUpdated(Solution<Lecture,Placement> solution)
SolutionListener
Solution.update(double)
.
solutionUpdated
in interface SolutionListener<Lecture,Placement>
solution
- source solutionpublic void getInfo(Solution<Lecture,Placement> solution, Map<String,String> info)
SolutionListener
Solution.getInfo()
. A listener can also add some its info into
this table.
getInfo
in interface SolutionListener<Lecture,Placement>
solution
- source solutioninfo
- produced info tablepublic void getInfo(Solution<Lecture,Placement> solution, Map<String,String> info, Collection<Lecture> variables)
SolutionListener
Solution.getInfo()
. A listener can also add some its info into
this table.
getInfo
in interface SolutionListener<Lecture,Placement>
solution
- source solutioninfo
- produced info tablevariables
- only variables from this set are includedpublic void bestCleared(Solution<Lecture,Placement> solution)
SolutionListener
Solution.clearBest()
is
called.
bestCleared
in interface SolutionListener<Lecture,Placement>
solution
- source solutionpublic void bestSaved(Solution<Lecture,Placement> solution)
SolutionListener
Solution.saveBest()
is called.
bestSaved
in interface SolutionListener<Lecture,Placement>
solution
- source solutionpublic void bestRestored(Solution<Lecture,Placement> solution)
SolutionListener
Solution.restoreBest()
is
called.
bestRestored
in interface SolutionListener<Lecture,Placement>
solution
- source solution
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |