-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.jl
49 lines (41 loc) · 1.41 KB
/
main.jl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
include("src/setup.jl")
myprintln(true, "You are currently using $(Threads.nthreads()) threads.", color=:yellow)
myprintln(true, "Your machine has a total of $(Sys.CPU_THREADS) available threads.", color=:yellow)
myprintln(true, "*"^25)
# revive this branch from my notebook
verbose = false
verbose = true;
verbose_ls = false;
verbose_ls = true;
# verbose_ls = verbose & verbose_ls
logging = true;
profiling = false;
# benchmarking = false;
benchmarking = true;
warmStart = true
# functionName = "dampedSHM";
# functionName = "drag"; functionName == "drag" ? verbose = false : verbose = verbose
# functionName = "fireLocation";
# functionName = "nnloss"; functionName == "nnloss" ? verbose = false : verbose = verbose;
# functionName = "pathtime"
functionName = "propellor"
# functionName = "receiverLocation"
# functionName = "rosenbrock";
# functionName = "signalDenoise";
# functionName = "sphere";
# functionName = "transmissionLines";
# functionName = "TestFunction1";
# functionName = "TestFunction2";
# functionName = "TestFunction3";
# functionName = "alpTestFunction01";
# functionName = "asqpTestFunction1";
# functionName = "ecqpTestFunction1";
# functionName = "ecqpTestFunction2";
# functionName = "Rastrigin";
pr = include("src/objfuns/"*functionName*".jl")
# res = @btime begin
@time begin
res = tailoredOptimize(pr, verbose=verbose, verbose_ls=verbose_ls)
end
showresults(res)
plotresults(res, savePlot=true)