math-optim/algo/randomSearch.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

24 lines
435 B
Go

// Copyright 2022 wanderer <a_mirre at utb dot cz>
// SPDX-License-Identifier: GPL-3.0-or-later
package algo
import (
"fmt"
"os"
)
func getRandomSearchLogPrefix() string {
return " ***  random search:"
}
func fmtRandomSearchOut(input string) string {
return getRandomSearchLogPrefix() + " " + input
}
func printRandomSearch(input string) error {
_, err := fmt.Fprintln(os.Stderr, fmtRandomSearchOut(input))
return err
}