Documentation ¶
Index ¶
- func CrossoverNearestPow(n float64) genetic.CrossoverFunc
- func CrossoverNearestRevert(pow float64) genetic.CrossoverFunc
- func CrossoverRange(p genetic.Population, ai int, bi int) (genetic.Single, genetic.Single)
- func CrossoverRing(p genetic.Population, ai int, bi int) (genetic.Single, genetic.Single)
- func Main()
- func Random(m *Map) genetic.RandomFunc
- func ScoreDistancePow(n float64) genetic.ScoreFunc
- func ToImage(p genetic.Population, index int) image.Image
- func Variant(p genetic.Population, tsp genetic.Single) genetic.Single
- func VariantRevertSwap(p genetic.Population, tsp genetic.Single) genetic.Single
- func VariantSwap(p genetic.Population, s genetic.Single) genetic.Single
- type Map
- type Point
- type TSP
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CrossoverNearestPow ¶
func CrossoverNearestPow(n float64) genetic.CrossoverFunc
func CrossoverNearestRevert ¶
func CrossoverNearestRevert(pow float64) genetic.CrossoverFunc
func CrossoverRange ¶
func CrossoverRing ¶
func Random ¶
func Random(m *Map) genetic.RandomFunc
func ScoreDistancePow ¶
func VariantRevertSwap ¶
func VariantSwap ¶
Types ¶
type TSP ¶
func (TSP) RandomSwap ¶
func (q TSP) RandomSwap()
Click to show internal directories.
Click to hide internal directories.