Class UniformMeshOverRegion

  • All Implemented Interfaces:
    FirstGeneration

    public class UniformMeshOverRegion
    extends Object
    implements FirstGeneration
    The initial population is generated by putting a uniform mesh/grid/net over the entire region. The population size is proportional to the number of available cores. The region bounds are determined from the initial guesses.
    • Constructor Detail

      • UniformMeshOverRegion

        public UniformMeshOverRegion​(RealScalarFunction f,
                                     SimpleCellFactory factory,
                                     RandomLongGenerator uniform,
                                     int minDiscretization,
                                     Vector[] initials0,
                                     double epsilon)
        Generate an initial pool of chromosomes by putting a uniform mesh/grid/net over the entire region.
        Parameters:
        f - the objective function
        factory - a cell factory
        uniform - a uniform random number generator
        minDiscretization - minimum level of discretization
        initials0 - the initial search points
        epsilon - a precision parameter: when a number |x| ≤ ε, it is considered 0