Skip to content

Commit 6f8efc8

Browse files
committed
Update docu
1 parent e552d4f commit 6f8efc8

File tree

1 file changed

+29
-1
lines changed

1 file changed

+29
-1
lines changed

docs/src/autotuning.md

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,35 @@ When the [Performance Indicators](@ref) are defined, an optimizer can be used to
1919
wcs.if_high # the upper force controller integral gain
2020
wcs.df_high # the differential gain of the upper force controller
2121
```
22-
The global, blackbox optimizer package NOMAD is used for the optimization process, together with a test case that mimics extreme wind conditions.
22+
The global, blackbox optimizer package [NOMAD.jl](https://github.com/bbopt/NOMAD.jl) is used for the optimization process, together with a test case that mimics extreme wind conditions.
23+
With a very simple system model it allows to find an optimal solution within less than one minute.
2324

2425
## Example
26+
To run the auto-tuning script, launch Julia and execute:
27+
```julia
28+
include("scripts/autotune.jl")
29+
```
30+
It will use the initial conditions provided in the file "data/wc_settings.yaml" and save the result in "data/wc_settings_tuned.yaml".
31+
32+
All values are limited to $\hat x \le 2.5x~\land~\hat x \le x/2.5$, where $x$ is the original value and $\hat x$ the optimized value. Therefore make sure that none of the original values is zero.
33+
34+
Example output:
35+
```julia
36+
Blackbox evaluations: 897
37+
Total model evaluations: 116337
38+
Cache hits: 107
39+
Total number of evaluations: 1004
40+
Autotuning results: [14.999895, 0.125, 0.1090168, 2.24464e-5, 0.04164095, 3.83195e-5, 0.0271663, 4.0008673e-6]
41+
Running simulation with tuned parameters...
2542

43+
Performance of force controllers: 92.86 %
44+
Performance of speed controller: 93.82 %
45+
Damage with jerk: 1.19 %
46+
Combined performance γ: 92.06 %
47+
48+
[ Info: Tuned settings saved to data/wc_settings_tuned.yaml
49+
```
50+
You can plot the result with the command:
51+
```julia
52+
plot(lg)
53+
```

0 commit comments

Comments
 (0)