public class RandomAlgorithmStrategy extends AlgorithmStrategy
Modifier and Type | Field and Description |
---|---|
protected java.util.Random |
_randomGenerator
random number generator
|
_efficiency
Constructor and Description |
---|
RandomAlgorithmStrategy(AlgorithmPool pool)
Constructor
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getLabel()
Return the label for the algorithm strategy.
|
protected AlgorithmRunStack |
proposeRuns()
Pick a random algorithm from among the available algorithms and generate a new run stack.
|
algorithmAdded, algorithmAvailable, algorithmRemoved, algorithmUnavailable, execute, foundNewOptimalSolution, getEfficiency, getNearestIntegerInRange, getRunCount, strategyExecuted, strategyWillExecute, toString, trialScored, trialVetoed
protected final java.util.Random _randomGenerator
public RandomAlgorithmStrategy(AlgorithmPool pool)
public java.lang.String getLabel()
getLabel
in class AlgorithmStrategy
protected AlgorithmRunStack proposeRuns()
proposeRuns
in class AlgorithmStrategy