Skip to content

Commit

Permalink
build based on 0801b59
Browse files Browse the repository at this point in the history
  • Loading branch information
Documenter.jl committed Dec 4, 2023
1 parent dcf6ca0 commit 6416ed0
Show file tree
Hide file tree
Showing 17 changed files with 726 additions and 718 deletions.
12 changes: 6 additions & 6 deletions dev/DCsOPF/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@
Nl, N = size(A, 1), size(A, 2)
Bbr = diagm(0 => -(2 .+ 10 * rand(Nl))) # line parameters
Ψ = [zeros(Nl) -Bbr * A[:, 2:end] * inv(A[:, 2:end]&#39; * Bbr * A[:, 2:end])] # PTDF matrix</code></pre><pre class="documenter-example-output"><code class="nohighlight hljs ansi">5×4 Matrix{Float64}:
0.0 -0.558172 -0.238942 -0.137026
0.0 -0.138155 -0.237974 -0.136471
0.0 -0.303674 -0.523084 -0.726503
0.0 -0.441828 0.238942 0.137026
0.0 0.303674 0.523084 -0.273497</code></pre><p>Now we can continue the remaining ingredients that specify our systems:</p><pre><code class="language-julia hljs">Cp, Cd = [1 0; 0 0; 0 0; 0 1], [0 0; 1 0; 0 1; 0 0] # book-keeping
0.0 -0.780549 -0.291588 -0.143533
0.0 -0.0948995 -0.306346 -0.150798
0.0 -0.124552 -0.402066 -0.705668
0.0 -0.219451 0.291588 0.143533
0.0 0.124552 0.402066 -0.294332</code></pre><p>Now we can continue the remaining ingredients that specify our systems:</p><pre><code class="language-julia hljs">Cp, Cd = [1 0; 0 0; 0 0; 0 1], [0 0; 1 0; 0 1; 0 0] # book-keeping
Ng, Nd = size(Cp, 2), size(Cd, 2)
c = 4 .+ 10 * rand(Ng) # cost function parameters
λp, λl = 1.6 * ones(Ng), 1.6 * ones(Nl) # lambdas for chance constraint reformulations
Expand Down Expand Up @@ -43,4 +43,4 @@
[1 / λl[i] * (mean(pl[1, :], mop) - plmin[i]); buildSOC(pl[i, :], mop)] in SecondOrderCone())
@objective(model, Min, sum(mean(p[i, :], mop) * c[i] for i in 1:Ng))
optimize!(model) # here we go</code></pre><p>Let&#39;s extract the numerical values of the optimal solution.</p><pre><code class="language- hljs">@assert termination_status(model)==MOI.OPTIMAL &quot;Model not solved to optimality.&quot;
psol, plsol, obj = value.(p), value.(pl), objective_value(model)</code></pre><p>Great, we&#39;ve solved the problem. How do we now make sense of the solution? For instance, we can look at the moments of the generated power:</p><pre><code class="language- hljs">p_moments = [[mean(psol[i, :], mop) var(psol[i, :], mop)] for i in 1:Ng]</code></pre><p>Similarly, we can study the moments for the branch flows:</p><pre><code class="language- hljs">pbr_moments = [[mean(plsol[i, :], mop) var(plsol[i, :], mop)] for i in 1:Nl]</code></pre></article><nav class="docs-footer"><a class="docs-footer-prevpage" href="../random_ode/">« Random ODE</a><a class="docs-footer-nextpage" href="../math/">Mathematical Background »</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="documenter-light">documenter-light</option><option value="documenter-dark">documenter-dark</option></select></div></p><hr/><p>This document was generated with <a href="https://github.com/JuliaDocs/Documenter.jl">Documenter.jl</a> version 0.27.25 on <span class="colophon-date" title="Saturday 2 December 2023 15:00">Saturday 2 December 2023</span>. Using Julia version 1.9.4.</p></section><footer class="modal-card-foot"></footer></div></div></div></body></html>
psol, plsol, obj = value.(p), value.(pl), objective_value(model)</code></pre><p>Great, we&#39;ve solved the problem. How do we now make sense of the solution? For instance, we can look at the moments of the generated power:</p><pre><code class="language- hljs">p_moments = [[mean(psol[i, :], mop) var(psol[i, :], mop)] for i in 1:Ng]</code></pre><p>Similarly, we can study the moments for the branch flows:</p><pre><code class="language- hljs">pbr_moments = [[mean(plsol[i, :], mop) var(plsol[i, :], mop)] for i in 1:Nl]</code></pre></article><nav class="docs-footer"><a class="docs-footer-prevpage" href="../random_ode/">« Random ODE</a><a class="docs-footer-nextpage" href="../math/">Mathematical Background »</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="documenter-light">documenter-light</option><option value="documenter-dark">documenter-dark</option></select></div></p><hr/><p>This document was generated with <a href="https://github.com/JuliaDocs/Documenter.jl">Documenter.jl</a> version 0.27.25 on <span class="colophon-date" title="Monday 4 December 2023 14:23">Monday 4 December 2023</span>. Using Julia version 1.9.4.</p></section><footer class="modal-card-foot"></footer></div></div></div></body></html>
22 changes: 11 additions & 11 deletions dev/assets/Manifest.toml
Original file line number Diff line number Diff line change
Expand Up @@ -115,9 +115,9 @@ uuid = "56f22d72-fd6d-98f1-02f0-08ddc0907c33"

[[deps.BandedMatrices]]
deps = ["ArrayLayouts", "FillArrays", "LinearAlgebra", "PrecompileTools"]
git-tree-sha1 = "67bcff3f50026b6fa952721525d3a04f0570d432"
git-tree-sha1 = "06a2a94d5a4979c36cc7a3c28d70800f448ae5bb"
uuid = "aae01518-5342-5314-be14-df237901396f"
version = "1.2.1"
version = "1.3.0"
weakdeps = ["SparseArrays"]

[deps.BandedMatrices.extensions]
Expand All @@ -128,9 +128,9 @@ uuid = "2a0f44e3-6c83-55bd-87e4-b1978d98bd5f"

[[deps.BenchmarkTools]]
deps = ["JSON", "Logging", "Printf", "Profile", "Statistics", "UUIDs"]
git-tree-sha1 = "d9a9701b899b30332bbcb3e1679c41cce81fb0e8"
git-tree-sha1 = "f1f03a9fa24271160ed7e73051fba3c1a759b53f"
uuid = "6e4b80f9-dd63-53aa-95a3-0cdb28fa8baf"
version = "1.3.2"
version = "1.4.0"

[[deps.BitFlags]]
git-tree-sha1 = "2dc09997850d68179b69dafb58ae806167a32b1b"
Expand Down Expand Up @@ -550,9 +550,9 @@ uuid = "7b1f6079-737a-58dc-b8bc-7a2ca5c1b5ee"

[[deps.FillArrays]]
deps = ["LinearAlgebra", "Random"]
git-tree-sha1 = "28e4e9c4b7b162398ec8004bdabe9a90c78c122d"
git-tree-sha1 = "fdd015769934644858b4bcc69a03bb06f4e31357"
uuid = "1a297f60-69ca-5386-bcde-b61e274b549b"
version = "1.8.0"
version = "1.9.0"
weakdeps = ["PDMats", "SparseArrays", "Statistics"]

[deps.FillArrays.extensions]
Expand Down Expand Up @@ -748,10 +748,10 @@ uuid = "18e54dd8-cb9d-406c-a71d-865a43cbb235"
version = "0.1.2"

[[deps.IntelOpenMP_jll]]
deps = ["Artifacts", "JLLWrappers", "Libdl", "Pkg"]
git-tree-sha1 = "ad37c091f7d7daf900963171600d7c1c5c3ede32"
deps = ["Artifacts", "JLLWrappers", "Libdl"]
git-tree-sha1 = "31d6adb719886d4e32e38197aae466e98881320b"
uuid = "1d5cc7b8-4909-519e-a0f8-d0f5ad9712d0"
version = "2023.2.0+0"
version = "2024.0.0+0"

[[deps.InteractiveUtils]]
deps = ["Markdown"]
Expand Down Expand Up @@ -799,9 +799,9 @@ version = "2.1.91+0"

[[deps.JuMP]]
deps = ["LinearAlgebra", "MacroTools", "MathOptInterface", "MutableArithmetics", "OrderedCollections", "Printf", "SnoopPrecompile", "SparseArrays"]
git-tree-sha1 = "25b2fcda4d455b6f93ac753730d741340ba4a4fe"
git-tree-sha1 = "cd161958e8b47f9696a6b03f563afb4e5fe8f703"
uuid = "4076af6c-e467-56ae-b986-b466b2749572"
version = "1.16.0"
version = "1.17.0"

[deps.JuMP.extensions]
JuMPDimensionalDataExt = "DimensionalData"
Expand Down
560 changes: 274 additions & 286 deletions dev/chi_squared_k1/index.html

Large diffs are not rendered by default.

302 changes: 161 additions & 141 deletions dev/chi_squared_k_greater1/index.html

Large diffs are not rendered by default.

Loading

0 comments on commit 6416ed0

Please sign in to comment.