math-optim/main.go
surtur ab14e97f16
All checks were successful
continuous-integration/drone/push Build is passing
go: add RandomSearch,SHC algos
2022-06-14 22:34:52 +02:00

32 lines
514 B
Go

// Copyright 2022 wanderer <a_mirre at utb dot cz>
// SPDX-License-Identifier: GPL-3.0-or-later
package main
import (
"log"
"sync"
"git.dotya.ml/wanderer/math-optim/algo"
)
var version = "development"
func main() {
log.Println("starting math-optim version", "'"+version+"'")
// atm we're only doing Random search and SHC
algoCount := 2
var wg sync.WaitGroup
wg.Add(algoCount)
go algo.DoRandomSearch(&wg)
go algo.DoStochasticHillClimbing(&wg)
wg.Wait()
log.Println("looks like we're done")
}