Skip to content

Commit

Permalink
add tune_4p to examples
Browse files Browse the repository at this point in the history
  • Loading branch information
Uwe Fechner committed Sep 7, 2024
1 parent 8b766eb commit 2564e7c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion examples/menu.jl
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ options = ["autopilot_1p = include(\"autopilot_1p.jl\")",
"parking_1p = include(\"parking_1p.jl\")",
"parking_4p = include(\"parking_4p.jl\")",
"parking_wind_dir = include(\"parking_wind_dir.jl\")",
"tune_4p = include(\"tune_4p.jl\"); tune_4p()",
"tune_4p_ = include(\"tune_4p.jl\"); tune_4p()",
"quit"]

function menu()
Expand Down
4 changes: 2 additions & 2 deletions examples/tune_4p.jl
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ using KiteUtils
set = deepcopy(load_settings("system.yaml"))
set.abs_tol=0.00006
set.rel_tol=0.0001
plt.close("all")

using KiteControllers, KiteModels, BayesOpt, ControlPlots
plt.close("all")

kcu::KCU = KCU(set)
kps4::KPS4 = KPS4(kcu)
Expand Down Expand Up @@ -120,7 +120,7 @@ function tune_4p()
set_kernel!(config, "kMaternARD5")
println(config.noise)
# println(config.n_inner_iterations)
lowerbound = [10., 0., 0.]; upperbound = [120., 4.0, 100.]
lowerbound = [10., 0., 0.]; upperbound = [120., 4.0, 50.]
optimizer, optimum = bayes_optimization(f, lowerbound, upperbound, config)
println("Opimal parameters: p = $(optimizer[1]), i = $(optimizer[2]), d = $(optimizer[3])")
println("Optimum value : $(optimum)")
Expand Down

0 comments on commit 2564e7c

Please sign in to comment.