Class EvolutionaryAlgorithmModule

    • Field Detail

      • generations

        protected int generations
      • alpha

        protected int alpha
      • mu

        protected int mu
      • lambda

        protected int lambda
      • crossoverRate

        protected double crossoverRate
    • Constructor Detail

      • EvolutionaryAlgorithmModule

        public EvolutionaryAlgorithmModule()
    • Method Detail

      • getAlpha

        public int getAlpha()
        Returns the population size alpha.
        Returns:
        the population size
        See Also:
        setAlpha(int)
      • setAlpha

        public void setAlpha​(int alpha)
        Sets the population size alpha.
        Parameters:
        alpha - the population size to set
        See Also:
        getAlpha()
      • getGenerations

        public int getGenerations()
        Returns the number of generations.
        Returns:
        the number of generations
        See Also:
        setGenerations(int)
      • setGenerations

        public void setGenerations​(int generations)
        Sets the number of generations.
        Parameters:
        generations - the number of generations
        See Also:
        getGenerations()
      • getLambda

        public int getLambda()
        Returns the number of children lambda.
        Returns:
        the number of children
        See Also:
        setLambda(int)
      • setLambda

        public void setLambda​(int lambda)
        Sets the number of children lambda.
        Parameters:
        lambda - the number of children
        See Also:
        getLambda()
      • getMu

        public int getMu()
        Returns the number of parents mu.
        Returns:
        the number of parents
        See Also:
        setMu(int)
      • setMu

        public void setMu​(int mu)
        Sets the number of parents mu.
        Parameters:
        mu - the number of parents
        See Also:
        getMu()
      • getCrossoverRate

        public double getCrossoverRate()
        Returns the used crossover rate.
        Returns:
        the crossoverRate
        See Also:
        setCrossoverRate(double)
      • setCrossoverRate

        public void setCrossoverRate​(double crossoverRate)
        Sets the crossover rate.
        Parameters:
        crossoverRate - the crossoverRate to set
        See Also:
        getCrossoverRate()
      • config

        public void config()
        Description copied from class: Opt4JModule
        Configure the module. Bind constants, listeners, and bind arbitrary classes.
        Specified by:
        config in class Opt4JModule
        See Also:
        Binder