Class AbstractOrganism

    • Method Detail

      • getFitness

        public final double[] getFitness()
        Description copied from interface: Organism
        Returns the current fitness of this organism. This is an array. Note that in the most cases this array may only contain one single value, but for multi-objective optimization it is necessary to store multiple fitness values.
        Specified by:
        getFitness in interface Organism
        Returns:
        the fitness of the organism
      • isHaploid

        public abstract boolean isHaploid()
        Description copied from interface: Organism
        Is the organism Haploid?
        Specified by:
        isHaploid in interface Organism
        Returns:
        true if it is.
      • setFitness

        public final void setFitness​(double[] fitness)
        Description copied from interface: Organism
        This method allows to set the fitness of this organism to the specified value. Generally this will be an array, which in the most cases contains just a single entry. In cases where we want to have multi-objective optimization we may want to make use of a more general fitness array with mutliple entries.
        Specified by:
        setFitness in interface Organism