Class UniformDistributionOverBox2

  • All Implemented Interfaces:
    InitialsFactory

    public class UniformDistributionOverBox2
    extends Object
    implements InitialsFactory
    This algorithm, by perturbing each grid point by a small random scale, generates a set of initials uniformly distributed over a box region, with some degree of irregularity or randomness.
    • Constructor Detail

      • UniformDistributionOverBox2

        public UniformDistributionOverBox2​(double scale,
                                           RealInterval[] bounds,
                                           int[] discretizations,
                                           RandomLongGenerator uniform)
        Construct a generator to uniformly sample points over a feasible region.
        Parameters:
        scale - the small percentage of disturbance, e.g., 10%
        bounds - the feasible box region
        discretizations - the number of discretization levels in each dimension (bound)
        uniform - a uniform random number generator
      • UniformDistributionOverBox2

        public UniformDistributionOverBox2​(double scale,
                                           RealInterval[] bounds,
                                           int discretization,
                                           RandomLongGenerator uniform)
        Construct a generator to uniformly sample points over a feasible region.
        Parameters:
        scale - the small percentage of disturbance, e.g., 10%
        bounds - the feasible box region
        discretization - the number of discretization in each dimension (bound)
        uniform - a uniform random number generator
    • Method Detail

      • getInitials

        public Vector[] getInitials​(Vector... notused)
        Description copied from interface: InitialsFactory
        Generate a set of initial points for optimization from the fewer than required points.
        Specified by:
        getInitials in interface InitialsFactory
        Parameters:
        notused - initial points; null if no initial supplied
        Returns:
        a full set of initial points
      • getInitials

        public Vector[] getInitials()
        Generate a set of initial points for optimization.
        Returns:
        a full set of initial points