Documentation
¶
Index ¶
- func ArgMin(array []Vertex) int
- type Edge
- type EdgeHeap
- type GraphGenerator
- type LocalSearch
- type Path
- func (path Path) ComputeFitness() float32
- func (path Path) CrossOver(other common.Instance) common.Instance
- func (path Path) Fitness() float32
- func (path Path) Improve() common.Instance
- func (path Path) Less(other common.Instance) bool
- func (path Path) Mutation() common.Instance
- func (path Path) Reproduce() common.Instance
- type TspPolicy
- func (policy TspPolicy) GetCrossoverN() int
- func (policy TspPolicy) GetMutationN() int
- func (policy TspPolicy) GetPopulationSize() int
- func (policy TspPolicy) GetReproductionN() int
- func (policy TspPolicy) GetSolutionN() int
- func (policy TspPolicy) R() int
- func (policy TspPolicy) SetGeneration(g int)
- type Vertex
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type GraphGenerator ¶
func (GraphGenerator) Create ¶
func (gen GraphGenerator) Create(policy common.Policy) common.Generation
type LocalSearch ¶
type Path ¶
func (Path) ComputeFitness ¶
type TspPolicy ¶
type TspPolicy struct { VerticesNum int // contains filtered or unexported fields }
func (TspPolicy) GetCrossoverN ¶
func (TspPolicy) GetMutationN ¶
func (TspPolicy) GetPopulationSize ¶
func (TspPolicy) GetReproductionN ¶
func (TspPolicy) GetSolutionN ¶
func (TspPolicy) SetGeneration ¶
Click to show internal directories.
Click to hide internal directories.