Class FreqWorstRemoval

java.lang.Object
dynheurset.update.remove.Remove
dynheurset.update.remove.FreqWorstRemoval

public class FreqWorstRemoval
extends Remove
Frequency Worst Removal Strategy

This removal strategy is performed whenever a freq% of the computational is used. For instance a value of 0.25 for freq will cause the removal operation to be executed 4 times.

Every time the worst heuristic that is not removed so far is removed.

  • Field Summary

    Fields 
    Modifier and Type Field Description
    protected double freq  
    protected Utility util  

    Fields inherited from class dynheurset.update.remove.Remove

    heurList, measure, removedHeurSet, runStat
  • Constructor Summary

    Constructors 
    Constructor Description
    FreqWorstRemoval​(double freq)  
  • Method Summary

    Modifier and Type Method Description
    boolean canRemove()
    Specifies the removal condition.
    void remove()
    Specifies the removal criterion.

    Methods inherited from class dynheurset.update.remove.Remove

    setHeurList, setup

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

  • Method Details

    • canRemove

      public boolean canRemove()
      Description copied from class: Remove
      Specifies the removal condition.

      The removal condition determines when to remove some heuristics permanently.

      Specified by:
      canRemove in class Remove
      Returns:
      trueif a removal operation can be performed and false otherwise.
    • remove

      public void remove()
      Description copied from class: Remove
      Specifies the removal criterion.

      The removal criterion determines which heuristics to remove permanently.

      Specified by:
      remove in class Remove