Class BasicCrossoverModule

    • Constructor Detail

      • BasicCrossoverModule

        public BasicCrossoverModule()
    • Method Detail

      • getIntegerRate

        public double getIntegerRate()
        Returns the rate of the CrossoverIntegerRate.
        Returns:
        the rate
      • setIntegerRate

        public void setIntegerRate​(double integerRate)
        Sets the rate of the CrossoverIntegerRate.
        Parameters:
        integerRate - the rate
      • getIntegerXPoints

        public int getIntegerXPoints()
        Returns the number of crossover points of the CrossoverIntegerXPoint.
        Returns:
        the number of crossover points
      • setIntegerXPoints

        public void setIntegerXPoints​(int integerXPoint)
        Sets the number of crossover points of the CrossoverIntegerXPoint .
        Parameters:
        integerXPoint - the number of crossover points
      • setIntegerType

        public void setIntegerType​(BasicCrossoverModule.IntegerType integerType)
        Sets the Operator for IntegerGenotype.
        Parameters:
        integerType - the operator
      • getBooleanRate

        public double getBooleanRate()
        Returns the rate of the CrossoverBooleanRate.
        Returns:
        the rate
      • setBooleanRate

        public void setBooleanRate​(double booleanRate)
        Sets the rate of the CrossoverBooleanRate.
        Parameters:
        booleanRate - the rate
      • getBooleanXPoints

        public int getBooleanXPoints()
        Returns the number of crossover points of the CrossoverBooleanXPoint.
        Returns:
        the number of crossover points
      • setBooleanXPoints

        public void setBooleanXPoints​(int booleanXPoints)
        Sets the number of crossover points of the CrossoverBooleanXPoint .
        Parameters:
        booleanXPoints - the number of crossover points
      • setBooleanType

        public void setBooleanType​(BasicCrossoverModule.BooleanType booleanType)
        Sets the Operator for BooleanGenotype.
        Parameters:
        booleanType - the operator
      • getNu

        public double getNu()
        Returns the nu value of the CrossoverDoubleSBX.
        Returns:
        the nu value
      • setNu

        public void setNu​(double nu)
        Sets the nu value of the CrossoverDoubleSBX.
        Parameters:
        nu - the nu value
      • setDoubleType

        public void setDoubleType​(BasicCrossoverModule.DoubleType doubleType)
        Sets the Operator for DoubleGenotype.
        Parameters:
        doubleType - the operator
      • isRotation

        public boolean isRotation()
        Returns true if rotation is used for the Crossover operator for the PermutationGenotype.
        Returns:
        true if rotation is used
      • setRotation

        public void setRotation​(boolean rotation)
        Sets the rotation value for the Crossover operator for the PermutationGenotype.
        Parameters:
        rotation - the rotation value
      • config

        public void config()
        Specified by:
        config in class org.opt4j.core.start.Opt4JModule