Skip to content

Commit

Permalink
update comment for run from a file
Browse files Browse the repository at this point in the history
  • Loading branch information
Spencer Bull authored Dec 9, 2016
1 parent d005769 commit 4472e50
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions go/sa/SA.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,14 @@ func RunSARandom(it int, t float64, tmin float64, c float64, x int, y int, p int
return RunSA(it, t, tmin, c, CreateRandomMAP(x, y, p), v)
}

/* TODO
* Run Simmulated Annealing Algorithm from a given XML file
/*
* Run Simmulated Annealing Algorithm from a given tsp file
* it: Itterations
* t: temp
* tmin: Min Temp
* c: Cool Rate
* f: File Name
* v: Verbose
*/
func RunSAFromFile(it int, t float64, tmin float64, c float64, f string, v bool) Route {
lines, err := readFile(f)
Expand All @@ -35,6 +41,7 @@ func RunSAFromFile(it int, t float64, tmin float64, c float64, f string, v bool)
n := createNodesFromString(lines)
return RunSA(it, t, tmin, c, n, v)
}

/*
* l: splice of strings as lines in a file
*/
Expand Down

0 comments on commit 4472e50

Please sign in to comment.