go: add flag -generate
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
1c7fd068c5
commit
ed2aece330
4
main.go
4
main.go
@ -18,8 +18,10 @@ func main() {
|
||||
log.Println("starting math-optim version", "'"+version+"'")
|
||||
|
||||
doPrint := flag.Bool("printreport", true, "print report.tex to console")
|
||||
generate := flag.Bool("generate", true, "run algos and generate plot pics/statistical tables (anew)")
|
||||
flag.Parse()
|
||||
|
||||
if *generate {
|
||||
// atm we're only doing Random search and SHC
|
||||
algoCount := 2
|
||||
|
||||
@ -36,6 +38,8 @@ func main() {
|
||||
|
||||
report.SaveTexAllPics()
|
||||
report.SaveTexAllTables()
|
||||
}
|
||||
|
||||
report.SaveAndPrint(*doPrint)
|
||||
|
||||
log.Println("looks like we're done")
|
||||
|
Loading…
Reference in New Issue
Block a user