Class SimpleGridMinimizer.Solution

    • Field Detail

      • initials

        protected Vector[] initials
      • iteration

        protected int iteration
      • nNoChanges

        protected int nNoChanges
      • fminLast

        protected double fminLast
      • fmin

        protected double fmin
    • Method Detail

      • getFirstGeneration

        protected List<? extends Chromosome> getFirstGeneration()
        The initial population is generated by putting a uniform mesh/grid/net over the entire region. The grid points are the chromosomes in the first population. The population size is proportional to the number of available cores. The region bounds are determined from the initial guesses.
        Specified by:
        getFirstGeneration in class GeneticAlgorithm
        Returns:
        the first population
      • isConverged

        protected boolean isConverged()
        This genetic algorithm terminates if
        • the minimum does not improve for a fixed number of iterations, or
        • the maximum number of iterations is exceeded.
        Specified by:
        isConverged in class GeneticAlgorithm
        Returns:
        true if a convergence is found
      • setInitials

        public void setInitials​(Vector... initials)
        Description copied from interface: IterativeMethod
        Supply the starting points for the search. This can also initialize the state of the algorithm for a new search.
        Specified by:
        setInitials in interface IterativeMethod<Vector>
        Parameters:
        initials - the initial guesses
      • search

        public Vector search​(Vector... initials)
        Description copied from interface: IterativeMethod
        Search for a solution that optimizes the objective function from the given starting points. This method typically calls first #setInitials(S...) and then iteratively IterativeMethod.step(). It implements a default convergence criterion.
        Specified by:
        search in interface IterativeMethod<Vector>
        Parameters:
        initials - the initial guesses
        Returns:
        an (approximate) optimizer