|
MOEA Framework 2.5 API Specification |
|||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||
java.lang.Objectorg.moeaframework.algorithm.AbstractAlgorithm
org.moeaframework.algorithm.RandomSearch
public class RandomSearch
Random search implementation. An Initialization instance is used
to generate random solutions, which are evaluated and all non-dominated
solutions retained. The result is the set of all non-dominated solutions.
| Field Summary |
|---|
| Fields inherited from class org.moeaframework.algorithm.AbstractAlgorithm |
|---|
initialized, numberOfEvaluations, problem, terminated |
| Constructor Summary | |
|---|---|
RandomSearch(Problem problem,
Initialization generator,
NondominatedPopulation archive)
Constructs a new random search procedure for the given problem. |
|
| Method Summary | |
|---|---|
NondominatedPopulation |
getResult()
Returns the current best-known result. |
protected void |
initialize()
Performs any initialization that is required by this algorithm. |
protected void |
iterate()
Performs one iteration of the algorithm. |
| Methods inherited from class org.moeaframework.algorithm.AbstractAlgorithm |
|---|
evaluate, evaluateAll, evaluateAll, finalize, getNumberOfEvaluations, getProblem, getState, isInitialized, isTerminated, setState, step, terminate |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RandomSearch(Problem problem,
Initialization generator,
NondominatedPopulation archive)
problem - the problem being solvedgenerator - the initialization routine used to generate random
solutionsarchive - the archive of non-dominated solutions| Method Detail |
|---|
public NondominatedPopulation getResult()
Algorithm
protected void initialize()
AbstractAlgorithmAbstractAlgorithm.step(), but may also be called manually prior to any invocations
of step. Implementations should always invoke
super.initialize() to ensure the hierarchy is initialized
correctly.
initialize in class AbstractAlgorithmprotected void iterate()
AbstractAlgorithm
iterate in class AbstractAlgorithm
|
MOEA Framework 2.5 API Specification |
|||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||