Class BasicClockModelPhaseLengthAdjuster
- java.lang.Object
-
- ai.libs.jaicore.search.algorithms.standard.uncertainty.explorationexploitationsearch.BasicClockModelPhaseLengthAdjuster
-
- All Implemented Interfaces:
IPhaseLengthAdjuster
public class BasicClockModelPhaseLengthAdjuster extends java.lang.Object implements IPhaseLengthAdjuster
-
-
Constructor Summary
Constructors Constructor Description 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.
-
-
-
Method Detail
-
getInitialPhaseLengths
public int[] getInitialPhaseLengths(int interval)
Description copied from interface:IPhaseLengthAdjusterCalled before the search to set the phase lengths initially.- Specified by:
getInitialPhaseLengthsin interfaceIPhaseLengthAdjuster- 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:IPhaseLengthAdjusterCalled on every complete iteration of an exploration and an exploitation phase to determine how to change the phase lengths.- Specified by:
adjustPhaseLengthin interfaceIPhaseLengthAdjuster- 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.
-
-