Documentation ¶
Index ¶
- func CheckError(e error)
- func Exchange2Nodes(data []int, i, j int)
- func GenerateRandomPermutation(n int) []int
- func PrintErrorAndExit(err error)
- func SaveTourLengthImage(fname string, data1, data2 []TourLengthData)
- func SaveVisitedImage(fname string, data []CityData)
- func WriteFile(fname, data string)
- type CityData
- type ResultData
- type TestData
- type TourLengthData
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckError ¶
func CheckError(e error)
func Exchange2Nodes ¶
func GenerateRandomPermutation ¶
Copyright (C) 2004 Thomas Stuetzle FUNCTION: generate a random permutation of the integers 0 .. n-1 INPUT: length of the array OUTPUT: pointer to the random permutation (SIDE)EFFECTS: the array holding the random permutation is allocated in this function. Don't forget to free again the memory! COMMENTS: only needed by the local search procedures
func PrintErrorAndExit ¶
func PrintErrorAndExit(err error)
prints error and exits on abnormal conditions
func SaveTourLengthImage ¶
func SaveTourLengthImage(fname string, data1, data2 []TourLengthData)
func SaveVisitedImage ¶
Types ¶
type ResultData ¶
type ResultData struct { // ProblemName string // Tries int Results []*TestData }
func (*ResultData) SaveDataToFile ¶
func (p *ResultData) SaveDataToFile(fname string)
type TourLengthData ¶
Click to show internal directories.
Click to hide internal directories.