Class PatientWorstRemoval

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

public class PatientWorstRemoval
extends Remove
A patient Worst Removal Strategy.

This removal strategy wait for a number of iterations that are more/less than the maximum number of iterations elapsed before the best solution is updated. Then, the worst heuristics that is not removed yet is permanently removed.

  • Field Summary

    Fields 
    Modifier and Type Field Description
    protected Utility util  

    Fields inherited from class dynheurset.update.remove.Remove

    heurList, measure, removedHeurSet, runStat
  • Constructor Summary

    Constructors 
    Constructor Description
    PatientWorstRemoval​(double patience)  
  • 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