Package dynheurset.update
Class PatientPhaseQualityIndexUpdate
java.lang.Object
dynheurset.update.Update
dynheurset.update.PhaseQualityIndexUpdate
dynheurset.update.PatientPhaseQualityIndexUpdate
public class PatientPhaseQualityIndexUpdate extends PhaseQualityIndexUpdate
This class implements a patient phase-based quality index update strategy.
The active set is updated every phaseLen iterations. A patience
factor is used to control how long the update strategy waits for the best
solution to improve before updating the active set.
The performance value of each heuristic is converted to indexes (ranks).
Every heuristic that has its ranks below the average value multiplied by
aspiration factor is not included in the active set.
-
Field Summary
Fields Modifier and Type Field Description protected doublepatienceA patience factor controlling how long the update strategy waits for the best solution to improve before updating the active set.Fields inherited from class dynheurset.update.Update
activeList, heurList, measure, numRemove, numReset, numUpdates, remove, reset, runStat -
Constructor Summary
Constructors Constructor Description PatientPhaseQualityIndexUpdate(double patience, int phaseLen, double aspiration) -
Method Summary
Modifier and Type Method Description booleancanUpdate()Returnstrueif the active set is to be updated andfalseotherwise.Methods inherited from class dynheurset.update.Update
getActiveList, setHeurList, setMeasure, setRemove, setReset, setRunStat, updateActiveList
-
Field Details
-
patience
protected final double patienceA patience factor controlling how long the update strategy waits for the best solution to improve before updating the active set.
-
-
Constructor Details
-
PatientPhaseQualityIndexUpdate
public PatientPhaseQualityIndexUpdate(double patience, int phaseLen, double aspiration)
-
-
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.- Overrides:
canUpdatein classPhaseQualityIndexUpdate- Returns:
trueif the active set is to be updated andfalseotherwise.
-