Interface IPhaseLengthAdjuster
-
- All Known Implementing Classes:
BasicClockModelPhaseLengthAdjuster
public interface IPhaseLengthAdjuster
-
-
Method Summary
All Methods Instance Methods Abstract 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.
-
-
-
Method Detail
-
getInitialPhaseLengths
int[] getInitialPhaseLengths(int interval)
Called before the search to set the phase lengths initially.- Parameters:
interval- Overall length of both phases combined.- Returns:
- An array with two elements [newExplorationPhaseLength, newExploitationPhaseLength] to adjust the phase lengths.
-
adjustPhaseLength
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.- Parameters:
currentExplorationLength- Current length of the exploration phase.currentExploitationLength- Current length of the exploitation phase.passedTime- Passed time of the search.timout- Timeout for the search.- Returns:
- An array with two elements [newExplorationPhaseLength, newExploitationPhaseLength] to adjust the phase lengths.
-
-