Skip to content

Instantly share code, notes, and snippets.

@tellefsen
Created February 6, 2018 17:43
Show Gist options
  • Save tellefsen/00ed4fa6b933ec0a4c5d3762d1ca1c25 to your computer and use it in GitHub Desktop.
Save tellefsen/00ed4fa6b933ec0a4c5d3762d1ca1c25 to your computer and use it in GitHub Desktop.
func initAll() {
for n := 1; n < 24; n++{
var name string
if n < 10 {
name = "p0"+strconv.Itoa(n)
} else {
name = "p"+strconv.Itoa(n)
}
// read problem from file
psize := 100
problem := problemFromFile(name)
_ = newPopulation(psize, problem)
}
}
for i := 0; i < 100; i++ {
fmt.Println(i)
initAll()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment