Class UniformDistributionOverBox1
- java.lang.Object
-
- dev.nm.solver.multivariate.initialization.UniformDistributionOverBox1
-
- All Implemented Interfaces:
InitialsFactory
public class UniformDistributionOverBox1 extends Object implements InitialsFactory
This algorithm, by sampling uniformly in each dimension, generates a set of initials uniformly distributed over a box region, with some degree of irregularity or randomness.
-
-
Constructor Summary
Constructors Constructor Description UniformDistributionOverBox1(RandomLongGenerator uniform, int N, RealInterval... bounds)
Construct a generator to uniformly sample points over a feasible region.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Vector[]
getInitials()
Generate a set of initial points for optimization.Vector[]
getInitials(Vector... notused)
Generate a set of initial points for optimization from the fewer than required points.void
seed(long... seeds)
Seed the random number generator to produce repeatable sequences.
-
-
-
Constructor Detail
-
UniformDistributionOverBox1
public UniformDistributionOverBox1(RandomLongGenerator uniform, int N, RealInterval... bounds)
Construct a generator to uniformly sample points over a feasible region.- Parameters:
uniform
- a uniform random number generatorN
- the number of initials to generatebounds
- the feasible box region
-
-
Method Detail
-
seed
public void seed(long... seeds)
Seed the random number generator to produce repeatable sequences.- Parameters:
seeds
- the seeds
-
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 interfaceInitialsFactory
- 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
-
-