Skip to content

Commit b298823

Browse files
author
Documenter.jl
committed
build based on 0bdf7bd
1 parent 0f48a38 commit b298823

File tree

101 files changed

+1066
-1081
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

101 files changed

+1066
-1081
lines changed

dev/.documenter-siteinfo.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"documenter":{"julia_version":"1.10.7","generation_timestamp":"2024-12-23T14:59:24","documenter_version":"1.8.0"}}
1+
{"documenter":{"julia_version":"1.10.8","generation_timestamp":"2025-02-09T12:30:17","documenter_version":"1.8.0"}}

dev/api.html

+4-4
Large diffs are not rendered by default.

dev/examples/basic_example-1141b5a5.svg

+277

dev/examples/basic_example-3a57c939.svg

-296
This file was deleted.

dev/examples/basic_example-47f987e4.svg

+280

dev/examples/basic_example-83292a87.svg

-48
This file was deleted.

dev/examples/basic_example-87e3d9ac.svg

+46

dev/examples/basic_example-9fa64baf.svg

-275
This file was deleted.

dev/examples/basic_example.html

+6-6
Large diffs are not rendered by default.

dev/examples/change_expectations-f457dcfe.svg dev/examples/change_expectations-8099abbf.svg

+68-68

dev/examples/change_expectations-05288ea4.svg dev/examples/change_expectations-f56ccf2d.svg

+237-237

dev/examples/change_expectations.html

+4-4
Large diffs are not rendered by default.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.

dev/examples/get_parameters_and_initial_conditions.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,4 @@
3131
".jld2",
3232
init_conds,
3333
)
34-
end</code></pre></article><nav class="docs-footer"><a class="docs-footer-prevpage" href="multithreading_speedup.html">« Multithreading within the model</a><a class="docs-footer-nextpage" href="../api.html">API »</a><div class="flexbox-break"></div><p class="footer-message">Powered by <a href="https://github.com/JuliaDocs/Documenter.jl">Documenter.jl</a> and the <a href="https://julialang.org/">Julia Programming Language</a>.</p></nav></div><div class="modal" id="documenter-settings"><div class="modal-background"></div><div class="modal-card"><header class="modal-card-head"><p class="modal-card-title">Settings</p><button class="delete"></button></header><section class="modal-card-body"><p><label class="label">Theme</label><div class="select"><select id="documenter-themepicker"><option value="auto">Automatic (OS)</option><option value="documenter-light">documenter-light</option><option value="documenter-dark">documenter-dark</option><option value="catppuccin-latte">catppuccin-latte</option><option value="catppuccin-frappe">catppuccin-frappe</option><option value="catppuccin-macchiato">catppuccin-macchiato</option><option value="catppuccin-mocha">catppuccin-mocha</option></select></div></p><hr/><p>This document was generated with <a href="https://github.com/JuliaDocs/Documenter.jl">Documenter.jl</a> version 1.8.0 on <span class="colophon-date" title="Monday 23 December 2024 14:59">Monday 23 December 2024</span>. Using Julia version 1.10.7.</p></section><footer class="modal-card-foot"></footer></div></div></div></body></html>
34+
end</code></pre></article><nav class="docs-footer"><a class="docs-footer-prevpage" href="multithreading_speedup.html">« Multithreading within the model</a><a class="docs-footer-nextpage" href="../api.html">API »</a><div class="flexbox-break"></div><p class="footer-message">Powered by <a href="https://github.com/JuliaDocs/Documenter.jl">Documenter.jl</a> and the <a href="https://julialang.org/">Julia Programming Language</a>.</p></nav></div><div class="modal" id="documenter-settings"><div class="modal-background"></div><div class="modal-card"><header class="modal-card-head"><p class="modal-card-title">Settings</p><button class="delete"></button></header><section class="modal-card-body"><p><label class="label">Theme</label><div class="select"><select id="documenter-themepicker"><option value="auto">Automatic (OS)</option><option value="documenter-light">documenter-light</option><option value="documenter-dark">documenter-dark</option><option value="catppuccin-latte">catppuccin-latte</option><option value="catppuccin-frappe">catppuccin-frappe</option><option value="catppuccin-macchiato">catppuccin-macchiato</option><option value="catppuccin-mocha">catppuccin-mocha</option></select></div></p><hr/><p>This document was generated with <a href="https://github.com/JuliaDocs/Documenter.jl">Documenter.jl</a> version 1.8.0 on <span class="colophon-date" title="Sunday 9 February 2025 12:30">Sunday 9 February 2025</span>. Using Julia version 1.10.8.</p></section><footer class="modal-card-foot"></footer></div></div></div></body></html>

dev/examples/multithreading_speedup.html

+4-4
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
using FileIO, Plots, StatsPlots</code></pre><p>First, we initialise the model, this time we use the Italy 2010Q1 scenario, and we want to simulate the model for a large number of epochs</p><pre><code class="language-julia hljs">parameters = Bit.ITALY2010Q1.parameters
44
initial_conditions = Bit.ITALY2010Q1.initial_conditions
55
T = 50
6-
model = Bit.init_model(parameters, initial_conditions, T);</code></pre><p>The model is in scale 1:2000, so it has around 30,000 households</p><pre><code class="language-julia hljs">model.prop.H</code></pre><pre class="documenter-example-output"><code class="nohighlight hljs ansi">29915</code></pre><p>Note that the households number is actually the sum of active and inactive households, the owners of firms and of the bank</p><pre><code class="language-julia hljs">length(model.w_act) + length(model.w_inact) + length(model.firms) + 1</code></pre><pre class="documenter-example-output"><code class="nohighlight hljs ansi">29915</code></pre><p>Let&#39;s fist check how many threads we have available in this Julia session</p><pre><code class="language-julia hljs">Threads.nthreads()</code></pre><pre class="documenter-example-output"><code class="nohighlight hljs ansi">2</code></pre><p>Then we need to first compile the code not to count compilation time, we can do that just by executing the function one time</p><pre><code class="language-julia hljs">Bit.run_one_sim!(model; multi_threading = false);</code></pre><p>Let&#39;s now compare the performance of single threading and multi threading</p><pre><code class="language-julia hljs">model = Bit.init_model(parameters, initial_conditions, T);
7-
@time data = Bit.run_one_sim!(model; multi_threading = false);
6+
model = Bit.init_model(parameters, initial_conditions, T);</code></pre><p>The model is in scale 1:2000, so it has around 30,000 households</p><pre><code class="language-julia hljs">model.prop.H</code></pre><pre class="documenter-example-output"><code class="nohighlight hljs ansi">29915</code></pre><p>Note that the households number is actually the sum of active and inactive households, the owners of firms and of the bank</p><pre><code class="language-julia hljs">length(model.w_act) + length(model.w_inact) + length(model.firms) + 1</code></pre><pre class="documenter-example-output"><code class="nohighlight hljs ansi">29915</code></pre><p>Let&#39;s fist check how many threads we have available in this Julia session</p><pre><code class="language-julia hljs">Threads.nthreads()</code></pre><pre class="documenter-example-output"><code class="nohighlight hljs ansi">2</code></pre><p>Then we need to first compile the code not to count compilation time, we can do that just by executing the function one time</p><pre><code class="language-julia hljs">Bit.run!(model; multi_threading = false);</code></pre><p>Let&#39;s now compare the performance of single threading and multi threading</p><pre><code class="language-julia hljs">model = Bit.init_model(parameters, initial_conditions, T);
7+
@time data = Bit.run!(model; multi_threading = false);
88

99
model = Bit.init_model(parameters, initial_conditions, T);
10-
@time data = Bit.run_one_sim!(model; multi_threading = true);</code></pre><pre class="documenter-example-output"><code class="nohighlight hljs ansi"> 5.702206 seconds (3.42 M allocations: 6.010 GiB, 20.83% gc time)
11-
2.719377 seconds (3.49 M allocations: 6.254 GiB, 8.82% gc time)</code></pre><p>Is the speedup in line to what we would expect? Yes!</p></article><nav class="docs-footer"><a class="docs-footer-prevpage" href="change_expectations.html">« Experimentations (advanced)</a><a class="docs-footer-nextpage" href="get_parameters_and_initial_conditions.html">Calibration »</a><div class="flexbox-break"></div><p class="footer-message">Powered by <a href="https://github.com/JuliaDocs/Documenter.jl">Documenter.jl</a> and the <a href="https://julialang.org/">Julia Programming Language</a>.</p></nav></div><div class="modal" id="documenter-settings"><div class="modal-background"></div><div class="modal-card"><header class="modal-card-head"><p class="modal-card-title">Settings</p><button class="delete"></button></header><section class="modal-card-body"><p><label class="label">Theme</label><div class="select"><select id="documenter-themepicker"><option value="auto">Automatic (OS)</option><option value="documenter-light">documenter-light</option><option value="documenter-dark">documenter-dark</option><option value="catppuccin-latte">catppuccin-latte</option><option value="catppuccin-frappe">catppuccin-frappe</option><option value="catppuccin-macchiato">catppuccin-macchiato</option><option value="catppuccin-mocha">catppuccin-mocha</option></select></div></p><hr/><p>This document was generated with <a href="https://github.com/JuliaDocs/Documenter.jl">Documenter.jl</a> version 1.8.0 on <span class="colophon-date" title="Monday 23 December 2024 14:59">Monday 23 December 2024</span>. Using Julia version 1.10.7.</p></section><footer class="modal-card-foot"></footer></div></div></div></body></html>
10+
@time data = Bit.run!(model; multi_threading = true);</code></pre><pre class="documenter-example-output"><code class="nohighlight hljs ansi"> 5.705671 seconds (3.42 M allocations: 6.010 GiB, 20.57% gc time)
11+
2.930004 seconds (3.49 M allocations: 6.254 GiB, 14.59% gc time)</code></pre><p>Is the speedup in line to what we would expect? Yes!</p></article><nav class="docs-footer"><a class="docs-footer-prevpage" href="change_expectations.html">« Experimentations (advanced)</a><a class="docs-footer-nextpage" href="get_parameters_and_initial_conditions.html">Calibration »</a><div class="flexbox-break"></div><p class="footer-message">Powered by <a href="https://github.com/JuliaDocs/Documenter.jl">Documenter.jl</a> and the <a href="https://julialang.org/">Julia Programming Language</a>.</p></nav></div><div class="modal" id="documenter-settings"><div class="modal-background"></div><div class="modal-card"><header class="modal-card-head"><p class="modal-card-title">Settings</p><button class="delete"></button></header><section class="modal-card-body"><p><label class="label">Theme</label><div class="select"><select id="documenter-themepicker"><option value="auto">Automatic (OS)</option><option value="documenter-light">documenter-light</option><option value="documenter-dark">documenter-dark</option><option value="catppuccin-latte">catppuccin-latte</option><option value="catppuccin-frappe">catppuccin-frappe</option><option value="catppuccin-macchiato">catppuccin-macchiato</option><option value="catppuccin-mocha">catppuccin-mocha</option></select></div></p><hr/><p>This document was generated with <a href="https://github.com/JuliaDocs/Documenter.jl">Documenter.jl</a> version 1.8.0 on <span class="colophon-date" title="Sunday 9 February 2025 12:30">Sunday 9 February 2025</span>. Using Julia version 1.10.8.</p></section><footer class="modal-card-foot"></footer></div></div></div></body></html>

0 commit comments

Comments
 (0)