string

fun <F : Comparable<F>> string(size: Int, allowedChars: List<Char> = defaultAllowedChars): PopulationFactory<String, F>

Creates PopulationFactory for ChromosomeString with size.

Parameters

allowedChars

symbols for generation

See also

defaultAllowedChars

fun <F : Comparable<F>> Random.string(size: Int, allowedChars: List<Char> = defaultAllowedChars): ChromosomeString<F>

Create ChromosomeString instance

Parameters

size

gene count

allowedChars

symbols for generation

See also

defaultAllowedChars