Class AggarwalYuEvolutionary.Individuum

    • Field Detail

      • fitness

        double fitness
      • gene

        short[] gene
    • Constructor Detail

      • Individuum

        public Individuum​(double fitness,
                          short[] gene)
        Constructor
        Parameters:
        fitness - Fitness
        gene - Gene information
    • Method Detail

      • getGene

        public short[] getGene()
        Get the gene.
        Returns:
        the gene information
      • getFitness

        public double getFitness()
        Get the fitness of this individuum.
        Returns:
        fitness
      • nullIndividuum

        public static AggarwalYuEvolutionary.Individuum nullIndividuum​(int dim)
        Create a "null" individuum (full space).
        Parameters:
        dim - Dimensionality
        Returns:
        new individuum
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object