Class RandInitializer

java.lang.Object
dealib.components.initializers.RandInitializer
All Implemented Interfaces:
Initializer

public class RandInitializer extends Object implements Initializer
RandInitializer is a class implementing a random scheme for the initialization step over the interface Initializer.
Since:
1.0
Version:
1.0
Author:
Alicia Vazquez Ramos
  • Constructor Details

    • RandInitializer

      public RandInitializer(Execution exe)
      Constructor.
      Parameters:
      exe - Configurarion of the current execution.
  • Method Details

    • initializePopulation

      public void initializePopulation(Population p) throws IncompatibleConfigurationException
      Executes rand initializer scheme over the a population, p.
      Specified by:
      initializePopulation in interface Initializer
      Parameters:
      p - current population.
      Throws:
      IncompatibleConfigurationException - when initializer is not enabled with the defined configuration or when the Evaluator used throws this exception because of an incorrect dimensionality of the problem.
    • toString

      public String toString()
      Gets a string representing the visualization by console of the Initializer.
      Overrides:
      toString in class Object
      Returns:
      the name of the Initializer.