Constructor
new PermutationIndividual(permutation)
Creates individual from permutation.
Parameters:
Name | Type | Description |
---|---|---|
permutation |
Array | configuration |
- Source:
Methods
copy() → {PermutationIndividual}
Returns deep copy of individual.
- Source:
Returns:
deep copy
getArray() → {Array}
Gets permutation array.
- Source:
Returns:
permutation array
- Type
- Array
getGenotype() → {Array}
Gets permutation array.
- Source:
Returns:
permutation array
- Type
- Array
getSize() → {number}
Gets size of permutation array.
- Source:
Returns:
size of permutation array
- Type
- number
mutate(mutationRate)
Performs swap mutation.
Parameters:
Name | Type | Description |
---|---|---|
mutationRate |
probability that each value is swapped with another one |
- Source: