public class BasicClockModelPhaseLengthAdjuster extends java.lang.Object implements IPhaseLengthAdjuster
| Constructor and Description |
|---|
BasicClockModelPhaseLengthAdjuster() |
| Modifier and Type | Method and 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.
|
public int[] getInitialPhaseLengths(int interval)
IPhaseLengthAdjustergetInitialPhaseLengths in interface IPhaseLengthAdjusterinterval - Overall length of both phases combined.public int[] adjustPhaseLength(int currentExplorationLength,
int currentExploitationLength,
long passedTime,
long timeout)
IPhaseLengthAdjusteradjustPhaseLength in interface IPhaseLengthAdjustercurrentExplorationLength - Current length of the exploration phase.currentExploitationLength - Current length of the exploitation phase.passedTime - Passed time of the search.