Interface Algebra<G extends org.opt4j.core.Genotype>

  • Type Parameters:
    G - the type of genotype
    All Superinterfaces:
    org.opt4j.core.optimizer.Operator<G>
    All Known Implementing Classes:
    AlgebraDouble, AlgebraGenericImplementation

    public interface Algebra<G extends org.opt4j.core.Genotype>
    extends org.opt4j.core.optimizer.Operator<G>

    The Algebra operator. By default this class is implemented by the AlgebraDouble.

    Since the operator method is accepting varargs it cannot be parameterized for each genotype.

    • Method Detail

      • algebra

        G algebra​(Term term,
                  org.opt4j.core.Genotype... genotypes)
        Performs the Term for each element of the given Genotypes and returns the resulting Genotype.
        Parameters:
        term - the term
        genotypes - the genotypes
        Returns:
        the resulting genotype
      • getOperatorType

        default java.lang.Class<? extends org.opt4j.core.optimizer.Operator<?>> getOperatorType()
        Specified by:
        getOperatorType in interface org.opt4j.core.optimizer.Operator<G extends org.opt4j.core.Genotype>