Class BasicClockModelPhaseLengthAdjuster

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int[] adjustPhaseLength​(int currentExplorationLength, int currentExploitationLength, long passedTime, long timeout)
      Called on every complete iteration of an exploration and an exploitation phase to determine how to change the phase lengths.
      int[] getInitialPhaseLengths​(int interval)
      Called before the search to set the phase lengths initially.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • BasicClockModelPhaseLengthAdjuster

        public BasicClockModelPhaseLengthAdjuster()
    • Method Detail

      • getInitialPhaseLengths

        public int[] getInitialPhaseLengths​(int interval)
        Description copied from interface: IPhaseLengthAdjuster
        Called before the search to set the phase lengths initially.
        Specified by:
        getInitialPhaseLengths in interface IPhaseLengthAdjuster
        Parameters:
        interval - Overall length of both phases combined.
        Returns:
        An array with two elements [newExplorationPhaseLength, newExploitationPhaseLength] to adjust the phase lengths.
      • adjustPhaseLength

        public int[] adjustPhaseLength​(int currentExplorationLength,
                                       int currentExploitationLength,
                                       long passedTime,
                                       long timeout)
        Description copied from interface: IPhaseLengthAdjuster
        Called on every complete iteration of an exploration and an exploitation phase to determine how to change the phase lengths.
        Specified by:
        adjustPhaseLength in interface IPhaseLengthAdjuster
        Parameters:
        currentExplorationLength - Current length of the exploration phase.
        currentExploitationLength - Current length of the exploitation phase.
        passedTime - Passed time of the search.
        Returns:
        An array with two elements [newExplorationPhaseLength, newExploitationPhaseLength] to adjust the phase lengths.