Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
1 {
2 "python.terminal.activateEnvironment": false
3 }
Binary file modified 001_sampling_files/figure-pdf/cell-43-output-1.pdf
Binary file not shown.
Binary file modified 001_sampling_files/figure-pdf/cell-47-output-1.pdf
Binary file not shown.
Binary file modified 001_sampling_files/figure-pdf/fig-forre08a-1-2-output-1.pdf
Binary file not shown.
Binary file modified 001_sampling_files/figure-pdf/fig-forre08a-3-output-1.pdf
Binary file not shown.
Binary file modified 001_sampling_files/figure-pdf/fig-forre08a-4-output-1.pdf
Binary file not shown.
Binary file modified 001_sampling_files/figure-pdf/fig-forre08a-6-output-2.pdf
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified 001_sampling_files/figure-pdf/fig-jd-3points-output-1.pdf
Binary file not shown.
Binary file modified 001_sampling_files/figure-pdf/fig-mm-3points-output-1.pdf
Binary file not shown.
Binary file modified 001_sampling_files/figure-pdf/fig-randorient-2d-output-1.pdf
Binary file not shown.
Binary file modified 001_sampling_files/figure-pdf/fig-rlh-edges0-output-1.pdf
Binary file not shown.
Binary file modified 001_sampling_files/figure-pdf/fig-rlh-edges1-output-1.pdf
Binary file not shown.
Binary file modified 002_awwe_files/figure-pdf/cell-12-output-1.pdf
Binary file not shown.
Binary file modified 002_awwe_files/figure-pdf/cell-14-output-1.pdf
Binary file not shown.
Binary file modified 002_awwe_files/figure-pdf/cell-6-output-1.pdf
Binary file not shown.
Binary file modified 002_awwe_files/figure-pdf/cell-7-output-1.pdf
Binary file not shown.
Binary file modified 002_awwe_files/figure-pdf/cell-8-output-1.pdf
Binary file not shown.
Binary file modified 002_awwe_files/figure-pdf/fig-awwe-example-output-1.pdf
Binary file not shown.
Binary file modified 005_num_rsm_files/figure-pdf/cell-11-output-2.pdf
Binary file not shown.
Binary file modified 005_num_rsm_files/figure-pdf/cell-13-output-2.pdf
Binary file not shown.
Binary file modified 005_num_rsm_files/figure-pdf/cell-15-output-2.pdf
Binary file not shown.
Binary file modified 005_num_rsm_files/figure-pdf/cell-2-output-1.pdf
Binary file not shown.
Binary file modified 005_num_rsm_files/figure-pdf/cell-3-output-2.pdf
Binary file not shown.
Binary file modified 005_num_rsm_files/figure-pdf/cell-5-output-2.pdf
Binary file not shown.
Binary file modified 005_num_rsm_files/figure-pdf/cell-7-output-2.pdf
Binary file not shown.
Binary file modified 005_num_rsm_files/figure-pdf/cell-9-output-2.pdf
Binary file not shown.
Binary file modified 005_num_rsm_files/figure-pdf/linreg-example-output-2.pdf
Binary file not shown.
Binary file modified 006_num_gp_files/figure-pdf/cell-21-output-1.pdf
Binary file not shown.
Binary file modified 006_num_gp_files/figure-pdf/cell-22-output-2.pdf
Binary file not shown.
Binary file modified 006_num_gp_files/figure-pdf/cell-22-output-4.pdf
Binary file not shown.
Binary file not shown.
Binary file modified 006_num_gp_files/figure-pdf/fig-pval12-output-1.pdf
Binary file not shown.
Binary file modified 006_num_gp_files/figure-pdf/fig-sin-corr-output-1.pdf
Binary file not shown.
Binary file modified 006_num_gp_files/figure-pdf/fig-sin-corr-pred-output-1.pdf
Binary file not shown.
Binary file modified 006_num_gp_files/figure-pdf/fig-sin-data-output-1.pdf
Binary file not shown.
Binary file modified 006_num_gp_files/figure-pdf/fig-theta12-output-1.pdf
Binary file not shown.
Binary file modified 006_num_poly_files/figure-pdf/fig-aerofoil-drag-output-1.pdf
Binary file not shown.
Binary file modified 006_num_poly_files/figure-pdf/fig-onevar-output-1.pdf
Binary file not shown.
Binary file modified 006_num_rbf_files/figure-pdf/cell-7-output-2.pdf
Binary file not shown.
Binary file modified 006_num_rbf_files/figure-pdf/fig-rbf-approximation-output-1.pdf
Binary file not shown.
Binary file modified 006_num_rbf_files/figure-pdf/fig-rbf-gaussian-k1-output-1.pdf
Binary file not shown.
Binary file modified 006_num_rbf_files/figure-pdf/fig-rbf-gaussian-k2-output-1.pdf
Binary file not shown.
Binary file modified 007_challenge_files/figure-pdf/fig-comparison-output-1.pdf
Binary file not shown.
Binary file modified 007_challenge_files/figure-pdf/fig-convergence-output-1.pdf
Binary file not shown.
Binary file modified 007_challenge_files/figure-pdf/fig-landscapes-output-1.pdf
Binary file not shown.
Binary file modified 007_challenge_files/figure-pdf/fig-robot-arm-hard-output-1.pdf
Binary file not shown.
Binary file modified 019_spotoptim_sk_matern_files/figure-pdf/cell-13-output-1.pdf
Binary file not shown.
Binary file modified 019_spotoptim_sk_matern_files/figure-pdf/cell-7-output-1.pdf
Binary file not shown.
Binary file modified 100_ddmo_eda_files/figure-pdf/cell-12-output-1.pdf
Binary file not shown.
Binary file modified 100_ddmo_eda_files/figure-pdf/cell-17-output-1.pdf
Binary file not shown.
Binary file modified 100_ddmo_eda_files/figure-pdf/cell-18-output-1.pdf
Binary file not shown.
Binary file modified 100_ddmo_eda_files/figure-pdf/fig-bi9000-output-1.pdf
Binary file not shown.
Binary file modified 100_ddmo_eda_files/figure-pdf/fig-bi9040-output-1.pdf
Binary file not shown.
Binary file modified 100_ddmo_eda_files/figure-pdf/fig-bi90403d-output-1.pdf
Binary file not shown.
Binary file modified 100_ddmo_eda_files/figure-pdf/fig-bi9449-output-1.pdf
Binary file not shown.
Binary file modified 100_ddmo_eda_files/figure-pdf/fig-histogram-output-2.pdf
Binary file not shown.
Binary file modified 100_ddmo_eda_files/figure-pdf/fig-normal-cdf-output-1.pdf
Binary file not shown.
Binary file modified 100_ddmo_eda_files/figure-pdf/fig-normal-density-output-1.pdf
Binary file not shown.
Binary file not shown.
Binary file modified 100_ddmo_pca_files/figure-pdf/cell-29-output-2.pdf
Binary file not shown.
Binary file not shown.
Binary file modified 100_ddmo_pca_files/figure-pdf/fig-pcvals2-output-1.pdf
Binary file not shown.
Binary file modified 100_ddmo_pca_files/figure-pdf/fig-scree_plot_fa-output-1.pdf
Binary file not shown.
Binary file modified 100_ddmo_pca_files/figure-pdf/fig-scree_plot_pca-1-output-1.pdf
Binary file not shown.
Binary file not shown.
568 changes: 284 additions & 284 deletions Sequential-Parameter-Optimization-Cookbook.tex

Large diffs are not rendered by default.

Binary file modified a_04_gp_background_files/figure-pdf/cell-7-output-1.pdf
Binary file not shown.
Binary file modified a_04_gp_background_files/figure-pdf/fig-exp2euclid-output-1.pdf
Binary file not shown.
Binary file modified a_04_gp_background_files/figure-pdf/fig-mvn1-1-output-1.pdf
Binary file not shown.
Binary file modified a_04_gp_background_files/figure-pdf/fig-mvn1-3-output-1.pdf
Binary file not shown.
Binary file modified a_04_gp_background_files/figure-pdf/fig-mvn2-output-1.pdf
Binary file not shown.
Binary file modified a_04_gp_background_files/figure-pdf/fig-mvn5-output-1.pdf
Binary file not shown.
Binary file modified awwe_optimization_files/figure-pdf/cell-12-output-1.pdf
Binary file not shown.
Binary file modified awwe_optimization_files/figure-pdf/cell-13-output-2.pdf
Binary file not shown.
Binary file modified awwe_optimization_files/figure-pdf/cell-13-output-4.pdf
Binary file not shown.
Binary file modified awwe_optimization_files/figure-pdf/cell-13-output-6.pdf
Binary file not shown.
Binary file modified awwe_optimization_files/figure-pdf/cell-17-output-1.pdf
Binary file not shown.
Binary file modified awwe_optimization_files/figure-pdf/cell-19-output-1.pdf
Binary file not shown.
Binary file modified awwe_optimization_files/figure-pdf/cell-22-output-1.pdf
Binary file not shown.
Binary file modified checkpoint_res.pkl
Binary file not shown.
Binary file modified custom_name.pkl
Binary file not shown.
108 changes: 54 additions & 54 deletions docs/001_sampling.html

Large diffs are not rendered by default.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/001_sampling_files/figure-html/fig-forre08a-4-output-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/001_sampling_files/figure-html/fig-rlh-edges0-output-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/001_sampling_files/figure-html/fig-rlh-edges1-output-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/001_sampling_files/figure-pdf/cell-43-output-1.pdf
Binary file not shown.
Binary file modified docs/001_sampling_files/figure-pdf/cell-47-output-1.pdf
Binary file not shown.
Binary file modified docs/001_sampling_files/figure-pdf/fig-forre08a-1-2-output-1.pdf
Binary file not shown.
Binary file modified docs/001_sampling_files/figure-pdf/fig-forre08a-3-output-1.pdf
Binary file not shown.
Binary file modified docs/001_sampling_files/figure-pdf/fig-forre08a-4-output-1.pdf
Binary file not shown.
Binary file modified docs/001_sampling_files/figure-pdf/fig-forre08a-6-output-2.pdf
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified docs/001_sampling_files/figure-pdf/fig-jd-3points-output-1.pdf
Binary file not shown.
Binary file modified docs/001_sampling_files/figure-pdf/fig-mm-3points-output-1.pdf
Binary file not shown.
Binary file not shown.
Binary file modified docs/001_sampling_files/figure-pdf/fig-rlh-edges0-output-1.pdf
Binary file not shown.
Binary file modified docs/001_sampling_files/figure-pdf/fig-rlh-edges1-output-1.pdf
Binary file not shown.
26 changes: 13 additions & 13 deletions docs/002_awwe.html
Original file line number Diff line number Diff line change
Expand Up @@ -765,7 +765,7 @@ <h1 class="title"><span id="sec-awwe" class="quarto-section-identifier"><span cl
<li>This section is based on chapter 1.3 “A ten-variable weight function” in <span class="citation" data-cites="Forr08a">Forrester et al. (<a href="references.html#ref-Forr08a" role="doc-biblioref">2008</a>)</span>.</li>
<li>The following Python packages are imported:</li>
</ul>
<div id="f0179218" class="cell" data-execution_count="1">
<div id="ff8b7055" class="cell" data-execution_count="1">
<div class="code-copy-outer-scaffold"><div class="sourceCode cell-code" id="cb1"><pre class="sourceCode python code-with-copy"><code class="sourceCode python"><span id="cb1-1"><a href="#cb1-1" aria-hidden="true" tabindex="-1"></a><span class="im">import</span> math</span>
<span id="cb1-2"><a href="#cb1-2" aria-hidden="true" tabindex="-1"></a><span class="im">import</span> matplotlib.pyplot <span class="im">as</span> plt</span>
<span id="cb1-3"><a href="#cb1-3" aria-hidden="true" tabindex="-1"></a><span class="im">import</span> numpy <span class="im">as</span> np</span>
Expand Down Expand Up @@ -899,7 +899,7 @@ <h2 data-number="34.3" class="anchored" data-anchor-id="goals-understanding-and-
\tag{34.1}\]</span></span> To reverse this mapping and obtain the original values, the formula <span id="eq-reverse"><span class="math display">\[
g(y) = a + (b - a) y
\tag{34.2}\]</span></span> can be used. The function <code>wingwt()</code> expects inputs from the unit cube, which are then transformed back to their original scales using <a href="#eq-reverse" class="quarto-xref">Equation&nbsp;<span>34.2</span></a>. The function is defined as follows:</p>
<div id="931738c1" class="cell" data-execution_count="2">
<div id="85b925d3" class="cell" data-execution_count="2">
<div class="code-copy-outer-scaffold"><div class="sourceCode cell-code" id="cb2"><pre class="sourceCode python code-with-copy"><code class="sourceCode python"><span id="cb2-1"><a href="#cb2-1" aria-hidden="true" tabindex="-1"></a><span class="kw">def</span> wingwt(Sw<span class="op">=</span><span class="fl">0.48</span>, Wfw<span class="op">=</span><span class="fl">0.4</span>, A<span class="op">=</span><span class="fl">0.38</span>, L<span class="op">=</span><span class="fl">0.5</span>, q<span class="op">=</span><span class="fl">0.62</span>, l<span class="op">=</span><span class="fl">0.344</span>, Rtc<span class="op">=</span><span class="fl">0.4</span>, Nz<span class="op">=</span><span class="fl">0.37</span>, Wdg<span class="op">=</span><span class="fl">0.38</span>):</span>
<span id="cb2-2"><a href="#cb2-2" aria-hidden="true" tabindex="-1"></a> <span class="co"># put coded inputs back on natural scale</span></span>
<span id="cb2-3"><a href="#cb2-3" aria-hidden="true" tabindex="-1"></a> Sw <span class="op">=</span> Sw <span class="op">*</span> (<span class="dv">200</span> <span class="op">-</span> <span class="dv">150</span>) <span class="op">+</span> <span class="dv">150</span> </span>
Expand All @@ -922,7 +922,7 @@ <h2 data-number="34.4" class="anchored" data-anchor-id="properties-of-the-python
<p>The compute time required by the “wingwt” solver is extremely short and can be considered trivial in terms of computational resources. The approximation error is exceptionally small, effectively approaching machine precision, which indicates the high accuracy of the solver’s results.</p>
<p>To simulate time-consuming evaluations, a deliberate delay is introduced by incorporating a <code>sleep(3600)</code> command, which effectively synthesizes a one-hour execution time for a particular evaluation.</p>
<p>Moving on to the AWWE visualization, plotting in two dimensions is considerably simpler than dealing with nine dimensions. To aid in creating visual representations, the code provided below establishes a grid within the unit square to facilitate the generation of sliced visuals. This involves generating a “meshgrid” as outlined in the code.</p>
<div id="db051bb6" class="cell" data-execution_count="3">
<div id="b3aaaefd" class="cell" data-execution_count="3">
<div class="code-copy-outer-scaffold"><div class="sourceCode cell-code" id="cb3"><pre class="sourceCode python code-with-copy"><code class="sourceCode python"><span id="cb3-1"><a href="#cb3-1" aria-hidden="true" tabindex="-1"></a>x <span class="op">=</span> np.linspace(<span class="dv">0</span>, <span class="dv">1</span>, <span class="dv">3</span>)</span>
<span id="cb3-2"><a href="#cb3-2" aria-hidden="true" tabindex="-1"></a>y <span class="op">=</span> np.linspace(<span class="dv">0</span>, <span class="dv">1</span>, <span class="dv">3</span>)</span>
<span id="cb3-3"><a href="#cb3-3" aria-hidden="true" tabindex="-1"></a>X, Y <span class="op">=</span> np.meshgrid(x, y)</span>
Expand All @@ -941,7 +941,7 @@ <h2 data-number="34.4" class="anchored" data-anchor-id="properties-of-the-python
</div>
</div>
<p>The coding used to transform inputs from natural units is largely a matter of taste, so long as it’s easy to undo for reporting back on original scales</p>
<div id="d4107da7" class="cell" data-execution_count="4">
<div id="bf656924" class="cell" data-execution_count="4">
<div class="code-copy-outer-scaffold"><div class="sourceCode cell-code" id="cb5"><pre class="sourceCode python code-with-copy"><code class="sourceCode python"><span id="cb5-1"><a href="#cb5-1" aria-hidden="true" tabindex="-1"></a><span class="op">%</span>matplotlib inline</span>
<span id="cb5-2"><a href="#cb5-2" aria-hidden="true" tabindex="-1"></a><span class="co"># plt.style.use('seaborn-white')</span></span>
<span id="cb5-3"><a href="#cb5-3" aria-hidden="true" tabindex="-1"></a>x <span class="op">=</span> np.linspace(<span class="dv">0</span>, <span class="dv">1</span>, <span class="dv">100</span>)</span>
Expand All @@ -952,7 +952,7 @@ <h2 data-number="34.4" class="anchored" data-anchor-id="properties-of-the-python
<section id="plot-1-load-factor-n_z-and-aspect-ratio-a" class="level2" data-number="34.5">
<h2 data-number="34.5" class="anchored" data-anchor-id="plot-1-load-factor-n_z-and-aspect-ratio-a"><span class="header-section-number">34.5</span> Plot 1: Load Factor (<span class="math inline">\(N_z\)</span>) and Aspect Ratio (<span class="math inline">\(A\)</span>)</h2>
<p>We will vary <span class="math inline">\(N_z\)</span> and <span class="math inline">\(A\)</span>, with other inputs fixed at their baseline values.</p>
<div id="34ea505a" class="cell" data-execution_count="5">
<div id="d0a55a78" class="cell" data-execution_count="5">
<div class="code-copy-outer-scaffold"><div class="sourceCode cell-code" id="cb6"><pre class="sourceCode python code-with-copy"><code class="sourceCode python"><span id="cb6-1"><a href="#cb6-1" aria-hidden="true" tabindex="-1"></a>z <span class="op">=</span> wingwt(A <span class="op">=</span> X, Nz <span class="op">=</span> Y)</span>
<span id="cb6-2"><a href="#cb6-2" aria-hidden="true" tabindex="-1"></a>fig <span class="op">=</span> plt.figure(figsize<span class="op">=</span>(<span class="fl">7.</span>, <span class="fl">5.</span>))</span>
<span id="cb6-3"><a href="#cb6-3" aria-hidden="true" tabindex="-1"></a>plt.contourf(X, Y, z, <span class="dv">20</span>, cmap<span class="op">=</span><span class="st">'jet'</span>)</span>
Expand All @@ -970,7 +970,7 @@ <h2 data-number="34.5" class="anchored" data-anchor-id="plot-1-load-factor-n_z-a
</div>
</div>
<p>Contour plots can be refined, e.g., by adding explicit contour lines as shown in the following figure.</p>
<div id="8b05b99f" class="cell" data-execution_count="6">
<div id="7a125244" class="cell" data-execution_count="6">
<div class="code-copy-outer-scaffold"><div class="sourceCode cell-code" id="cb7"><pre class="sourceCode python code-with-copy"><code class="sourceCode python"><span id="cb7-1"><a href="#cb7-1" aria-hidden="true" tabindex="-1"></a>contours <span class="op">=</span> plt.contour(X, Y, z, <span class="dv">4</span>, colors<span class="op">=</span><span class="st">'black'</span>)</span>
<span id="cb7-2"><a href="#cb7-2" aria-hidden="true" tabindex="-1"></a>plt.clabel(contours, inline<span class="op">=</span><span class="va">True</span>, fontsize<span class="op">=</span><span class="dv">8</span>)</span>
<span id="cb7-3"><a href="#cb7-3" aria-hidden="true" tabindex="-1"></a>plt.xlabel(<span class="st">"A"</span>)</span>
Expand Down Expand Up @@ -1002,7 +1002,7 @@ <h2 data-number="34.6" class="anchored" data-anchor-id="plot-2-taper-ratio-and-f
<ul>
<li>The same experiment for two other inputs, e.g., taper ratio <span class="math inline">\(\lambda\)</span> and fuel weight <span class="math inline">\(W_{fw}\)</span></li>
</ul>
<div id="1e4a0ef2" class="cell" data-execution_count="7">
<div id="94956736" class="cell" data-execution_count="7">
<div class="code-copy-outer-scaffold"><div class="sourceCode cell-code" id="cb8"><pre class="sourceCode python code-with-copy"><code class="sourceCode python"><span id="cb8-1"><a href="#cb8-1" aria-hidden="true" tabindex="-1"></a>z <span class="op">=</span> wingwt(Wfw <span class="op">=</span> X, Nz <span class="op">=</span> Y)</span>
<span id="cb8-2"><a href="#cb8-2" aria-hidden="true" tabindex="-1"></a>contours <span class="op">=</span> plt.contour(X, Y, z, <span class="dv">4</span>, colors<span class="op">=</span><span class="st">'black'</span>)</span>
<span id="cb8-3"><a href="#cb8-3" aria-hidden="true" tabindex="-1"></a>plt.clabel(contours, inline<span class="op">=</span><span class="va">True</span>, fontsize<span class="op">=</span><span class="dv">8</span>)</span>
Expand Down Expand Up @@ -1033,10 +1033,10 @@ <h2 data-number="34.6" class="anchored" data-anchor-id="plot-2-taper-ratio-and-f
</section>
<section id="the-big-picture-combining-all-variables" class="level2" data-number="34.7">
<h2 data-number="34.7" class="anchored" data-anchor-id="the-big-picture-combining-all-variables"><span class="header-section-number">34.7</span> The Big Picture: Combining all Variables</h2>
<div id="eb3c115d" class="cell" data-execution_count="8">
<div id="ea821396" class="cell" data-execution_count="8">
<div class="code-copy-outer-scaffold"><div class="sourceCode cell-code" id="cb9"><pre class="sourceCode python code-with-copy"><code class="sourceCode python"><span id="cb9-1"><a href="#cb9-1" aria-hidden="true" tabindex="-1"></a>pl <span class="op">=</span> [<span class="st">"Sw"</span>, <span class="st">"Wfw"</span>, <span class="st">"A"</span>, <span class="st">"L"</span>, <span class="st">"q"</span>, <span class="st">"l"</span>, <span class="st">"Rtc"</span>, <span class="st">"Nz"</span>, <span class="st">"Wdg"</span>]</span></code></pre></div><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></div>
</div>
<div id="1de45c87" class="cell" data-execution_count="9">
<div id="fa243491" class="cell" data-execution_count="9">
<div class="code-copy-outer-scaffold"><div class="sourceCode cell-code" id="cb10"><pre class="sourceCode python code-with-copy"><code class="sourceCode python"><span id="cb10-1"><a href="#cb10-1" aria-hidden="true" tabindex="-1"></a>Z <span class="op">=</span> []</span>
<span id="cb10-2"><a href="#cb10-2" aria-hidden="true" tabindex="-1"></a>Zlab <span class="op">=</span> []</span>
<span id="cb10-3"><a href="#cb10-3" aria-hidden="true" tabindex="-1"></a>l <span class="op">=</span> <span class="bu">len</span>(pl)</span>
Expand All @@ -1050,15 +1050,15 @@ <h2 data-number="34.7" class="anchored" data-anchor-id="the-big-picture-combinin
<span id="cb10-11"><a href="#cb10-11" aria-hidden="true" tabindex="-1"></a> Zlab.append([pl[i],pl[j]])</span></code></pre></div><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></div>
</div>
<p>Now we can generate all 36 combinations, e.g., our first example is combination <code>p = 19</code>.</p>
<div id="c9232c9b" class="cell" data-execution_count="10">
<div id="ef0d9083" class="cell" data-execution_count="10">
<div class="code-copy-outer-scaffold"><div class="sourceCode cell-code" id="cb11"><pre class="sourceCode python code-with-copy"><code class="sourceCode python"><span id="cb11-1"><a href="#cb11-1" aria-hidden="true" tabindex="-1"></a>p <span class="op">=</span> <span class="dv">19</span></span>
<span id="cb11-2"><a href="#cb11-2" aria-hidden="true" tabindex="-1"></a>Zlab[p]</span></code></pre></div><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></div>
<div class="cell-output cell-output-display" data-execution_count="10">
<pre><code>['A', 'Nz']</code></pre>
</div>
</div>
<p>To help interpret outputs from experiments such as this one—to level the playing field when comparing outputs from other pairs of inputs—code below sets up a color palette that can be re-used from one experiment to the next. We use the arguments <code>vmin=180</code> and <code>vmax =360</code> to implement comparibility</p>
<div id="bc981bab" class="cell" data-execution_count="11">
<div id="5b4410af" class="cell" data-execution_count="11">
<div class="code-copy-outer-scaffold"><div class="sourceCode cell-code" id="cb13"><pre class="sourceCode python code-with-copy"><code class="sourceCode python"><span id="cb13-1"><a href="#cb13-1" aria-hidden="true" tabindex="-1"></a>plt.contourf(X, Y, Z[p], <span class="dv">20</span>, cmap<span class="op">=</span><span class="st">'jet'</span>, vmin<span class="op">=</span><span class="dv">180</span>, vmax<span class="op">=</span><span class="dv">360</span>)</span>
<span id="cb13-2"><a href="#cb13-2" aria-hidden="true" tabindex="-1"></a>plt.xlabel(Zlab[p][<span class="dv">0</span>])</span>
<span id="cb13-3"><a href="#cb13-3" aria-hidden="true" tabindex="-1"></a>plt.ylabel(Zlab[p][<span class="dv">1</span>])</span>
Expand All @@ -1075,14 +1075,14 @@ <h2 data-number="34.7" class="anchored" data-anchor-id="the-big-picture-combinin
<li>Let’s plot the second example, taper ratio <span class="math inline">\(\lambda\)</span> and fuel weight <span class="math inline">\(W_{fw}\)</span></li>
<li>This is combination <code>11</code>:</li>
</ul>
<div id="0f75c169" class="cell" data-execution_count="12">
<div id="c615571b" class="cell" data-execution_count="12">
<div class="code-copy-outer-scaffold"><div class="sourceCode cell-code" id="cb14"><pre class="sourceCode python code-with-copy"><code class="sourceCode python"><span id="cb14-1"><a href="#cb14-1" aria-hidden="true" tabindex="-1"></a>p <span class="op">=</span> <span class="dv">11</span></span>
<span id="cb14-2"><a href="#cb14-2" aria-hidden="true" tabindex="-1"></a>Zlab[p]</span></code></pre></div><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></div>
<div class="cell-output cell-output-display" data-execution_count="12">
<pre><code>['Wfw', 'l']</code></pre>
</div>
</div>
<div id="367c6751" class="cell" data-execution_count="13">
<div id="9b5df85c" class="cell" data-execution_count="13">
<div class="code-copy-outer-scaffold"><div class="sourceCode cell-code" id="cb16"><pre class="sourceCode python code-with-copy"><code class="sourceCode python"><span id="cb16-1"><a href="#cb16-1" aria-hidden="true" tabindex="-1"></a>plt.contourf(X, Y, Z[p], <span class="dv">20</span>, cmap<span class="op">=</span><span class="st">'jet'</span>, vmin<span class="op">=</span><span class="dv">180</span>, vmax<span class="op">=</span><span class="dv">360</span>)</span>
<span id="cb16-2"><a href="#cb16-2" aria-hidden="true" tabindex="-1"></a>plt.xlabel(Zlab[p][<span class="dv">0</span>])</span>
<span id="cb16-3"><a href="#cb16-3" aria-hidden="true" tabindex="-1"></a>plt.ylabel(Zlab[p][<span class="dv">1</span>])</span>
Expand Down
Binary file not shown.
Binary file modified docs/002_awwe_files/figure-pdf/cell-12-output-1.pdf
Binary file not shown.
Binary file modified docs/002_awwe_files/figure-pdf/cell-14-output-1.pdf
Binary file not shown.
Binary file modified docs/002_awwe_files/figure-pdf/cell-6-output-1.pdf
Binary file not shown.
Binary file modified docs/002_awwe_files/figure-pdf/cell-7-output-1.pdf
Binary file not shown.
Binary file modified docs/002_awwe_files/figure-pdf/cell-8-output-1.pdf
Binary file not shown.
Binary file modified docs/002_awwe_files/figure-pdf/fig-awwe-example-output-1.pdf
Binary file not shown.
Loading
Loading