|
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.core.operator.RandomInitialization
public class RandomInitialization
Initializes all built-in decision variables randomly. The
initialize(Variable) method can be extended to provide support for
other types.
| Field Summary | |
|---|---|
protected int |
populationSize
The initial population size. |
protected Problem |
problem
The problem. |
| Constructor Summary | |
|---|---|
RandomInitialization(Problem problem,
int populationSize)
Constructs a random initialization operator. |
|
| Method Summary | |
|---|---|
Solution[] |
initialize()
Returns an array of solutions to become the initial population. |
protected void |
initialize(Variable variable)
Initializes the specified decision variable randomly. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final Problem problem
protected final int populationSize
| Constructor Detail |
|---|
public RandomInitialization(Problem problem,
int populationSize)
problem - the problempopulationSize - the initial population size| Method Detail |
|---|
public Solution[] initialize()
Initialization
initialize in interface Initializationprotected void initialize(Variable variable)
variable - the variable to be initialized
|
MOEA Framework 2.5 API Specification |
|||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||