T
- The element type of the arrays created.public class ObjectArrayPermutationFactory<T> extends AbstractCandidateFactory<T[]>
Constructor and Description |
---|
ObjectArrayPermutationFactory(T[] elements)
Creates a factory that creates arrays that contain each of the specified
elements exactly once.
|
Modifier and Type | Method and Description |
---|---|
T[] |
generateRandomCandidate(Random rng)
Generates a random permutation from the configured elements.
|
generateInitialPopulation, generateInitialPopulation
public ObjectArrayPermutationFactory(T[] elements)
elements
- The elements to permute.