math-optim/algo/algo.go
surtur ffc8b90e98
All checks were successful
continuous-integration/drone/push Build is passing
chore(go): print algo-stamps without errors
2022-06-17 19:55:23 +02:00

28 lines
608 B
Go

// Copyright 2022 wanderer <a_mirre at utb dot cz>
// SPDX-License-Identifier: GPL-3.0-or-later
package algo
import (
"sync"
)
// Values type is just a fancy named []float64 that will allow us to define
// methods over it.
type Values []float64
// DoRandomSearch executes a search using the 'Random search' method.
func DoRandomSearch(wg *sync.WaitGroup) {
defer wg.Done()
printRandomSearch("starting...")
}
// DoStochasticHillClimbing performs a search using the 'Stochastic Hill
// Climbing' method.
func DoStochasticHillClimbing(wg *sync.WaitGroup) {
defer wg.Done()
printSHC("starting...")
}