MOEA Framework 2.5
API Specification

org.moeaframework.core.operator
Class InjectedInitialization

java.lang.Object
  extended by org.moeaframework.core.operator.RandomInitialization
      extended by org.moeaframework.core.operator.InjectedInitialization
All Implemented Interfaces:
Initialization

public class InjectedInitialization
extends RandomInitialization

Initialization method that injects pre-defined solutions into the initial population. This is typically used to initialize an algorithm with a set of known "good" solutions.


Field Summary
 List<Solution> injectedSolutions
          The solutions to be injected into the initial population.
 
Fields inherited from class org.moeaframework.core.operator.RandomInitialization
populationSize, problem
 
Constructor Summary
InjectedInitialization(Problem problem, int populationSize, List<Solution> injectedSolutions)
          Constructs a random initialization operator that includes one or more pre-defined solutions.
InjectedInitialization(Problem problem, int populationSize, Solution... injectedSolutions)
          Constructs a random initialization operator that includes one or more pre-defined solutions.
 
Method Summary
 Solution[] initialize()
          Returns an array of solutions to become the initial population.
 
Methods inherited from class org.moeaframework.core.operator.RandomInitialization
initialize
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

injectedSolutions

public List<Solution> injectedSolutions
The solutions to be injected into the initial population.

Constructor Detail

InjectedInitialization

public InjectedInitialization(Problem problem,
                              int populationSize,
                              Solution... injectedSolutions)
Constructs a random initialization operator that includes one or more pre-defined solutions.

Parameters:
problem - the problem
populationSize - the initial population size
injectedSolutions - the pre-defined solutions injected into the initial population

InjectedInitialization

public InjectedInitialization(Problem problem,
                              int populationSize,
                              List<Solution> injectedSolutions)
Constructs a random initialization operator that includes one or more pre-defined solutions.

Parameters:
problem - the problem
populationSize - the initial population size
injectedSolutions - the pre-defined solutions injected into the initial population
Method Detail

initialize

public Solution[] initialize()
Description copied from interface: Initialization
Returns an array of solutions to become the initial population.

Specified by:
initialize in interface Initialization
Overrides:
initialize in class RandomInitialization
Returns:
an array of solutions to become the initial population

MOEA Framework 2.5
API Specification

Copyright 2009-2015 MOEA Framework. All rights reserved.
Licensed under the GNU Lesser General Public License.
Return to the MOEA Framework homepage. Hosted by Get MOEA Framework at SourceForge.net. Fast, secure and Free Open Source software downloads