Package dynheurset.update
Class PhaseDominanceUpdate
java.lang.Object
dynheurset.update.Update
dynheurset.update.PhaseDominanceUpdate
- Direct Known Subclasses:
PatientPhaseDominanceUpdate
public class PhaseDominanceUpdate extends Update
This class implements a phase-based dominance update strategy.
The active set is updated every phaseLen iterations. All dominant
heuristics are included in the active set. A heuristic j is
dominated by a heuristic i if i achieves better
performance and in a shorter amount of computational time than j
-
Field Summary
Fields Modifier and Type Field Description protected intphaseLenThe phase length which is the maximum number of iterations that can elapse before updating the active setFields inherited from class dynheurset.update.Update
activeList, heurList, measure, numRemove, numReset, numUpdates, remove, reset, runStat -
Constructor Summary
Constructors Constructor Description PhaseDominanceUpdate(int phaseLen) -
Method Summary
Modifier and Type Method Description booleancanUpdate()Returnstrueif the active set is to be updated andfalseotherwise.protected voidperformUpdate()Determines which heuristics to include in the active set.Methods inherited from class dynheurset.update.Update
getActiveList, setHeurList, setMeasure, setRemove, setReset, setRunStat, updateActiveList
-
Field Details
-
phaseLen
protected final int phaseLenThe phase length which is the maximum number of iterations that can elapse before updating the active set
-
-
Constructor Details
-
PhaseDominanceUpdate
public PhaseDominanceUpdate(int phaseLen)
-
-
Method Details
-
canUpdate
public boolean canUpdate()Description copied from class:UpdateReturnstrueif the active set is to be updated andfalseotherwise.In this method, you should use the
RunStatfield to access the run information that you may need to decides whether to update the active set. -
performUpdate
protected void performUpdate()Description copied from class:UpdateDetermines which heuristics to include in the active set.This method should contain your logic for updating the active set. You can access the
runStatandmeasurefields in your implementation to get the search-status information and measure the performance of heuristics. regarding the search- Specified by:
performUpdatein classUpdate
-