From 853ff95d71448b3ed57f47c30e78e7582f11a209 Mon Sep 17 00:00:00 2001 From: James Foster Date: Fri, 13 Sep 2024 17:10:56 +1000 Subject: [PATCH 1/2] Add Info box at start of OPF example --- .../applications/optimal_power_flow.jl | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/docs/src/tutorials/applications/optimal_power_flow.jl b/docs/src/tutorials/applications/optimal_power_flow.jl index 1fcae27da39..d66e255d4d4 100644 --- a/docs/src/tutorials/applications/optimal_power_flow.jl +++ b/docs/src/tutorials/applications/optimal_power_flow.jl @@ -1,12 +1,10 @@ -# Copyright 2017, Iain Dunning, Joey Huchette, Miles Lubin, and contributors #src +# Copyright (c) 2023 James Foster and contributors #src # This Source Code Form is subject to the terms of the Mozilla Public License #src # v.2.0. If a copy of the MPL was not distributed with this file, You can #src # obtain one at https://mozilla.org/MPL/2.0/. #src # # Optimal power flow -# *This tutorial was originally contributed by James Foster (@jd-foster).* - # This tutorial formulates and solves an alternating current optimal power flow # (AC-OPF) problem, a much-studied nonlinear problem from the field of # electrical engineering. @@ -23,13 +21,15 @@ # [Example: quantum state discrimination](@ref) tutorial, and see the # [Complex number support](@ref) section of the manual for more details. -# This tutorial takes a matrix-oriented approach focused on network nodes -# that simplifies the construction of semidefinite programs. -# Another approach is to formulate the problem focusing on network lines -# where it is easier to work with flow constraints. A general approach is -# provided by the Julia/JuMP package [PowerModels.jl](https://lanl-ansi.github.io/PowerModels.jl/stable/), -# an open-source framework to a broad range of power flow model formulations -# along with utilities for working with detailed network data. +# !!! info +# This tutorial takes a matrix-oriented approach focused on network nodes +# that simplifies the construction of semidefinite programs. +# Another approach is to formulate the problem focusing on network lines +# (known as a _branch model_) where it is easier to work with flow +# constraints. A general approach is provided by the Julia/JuMP package +# [PowerModels.jl](https://lanl-ansi.github.io/PowerModels.jl/stable/), +# an open-source framework to a broad range of power flow model formulations +# along with utilities for working with detailed network data. # ## Required packages From 6274c515c16a568c19d27076ce40b3758c6bc750 Mon Sep 17 00:00:00 2001 From: James Foster <38274066+jd-foster@users.noreply.github.com> Date: Fri, 13 Sep 2024 17:58:23 +1000 Subject: [PATCH 2/2] Update optimal_power_flow.jl Co-authored-by: Oscar Dowson --- docs/src/tutorials/applications/optimal_power_flow.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/src/tutorials/applications/optimal_power_flow.jl b/docs/src/tutorials/applications/optimal_power_flow.jl index d66e255d4d4..0284b187062 100644 --- a/docs/src/tutorials/applications/optimal_power_flow.jl +++ b/docs/src/tutorials/applications/optimal_power_flow.jl @@ -26,7 +26,7 @@ # that simplifies the construction of semidefinite programs. # Another approach is to formulate the problem focusing on network lines # (known as a _branch model_) where it is easier to work with flow -# constraints. A general approach is provided by the Julia/JuMP package +# constraints. A general approach is provided by # [PowerModels.jl](https://lanl-ansi.github.io/PowerModels.jl/stable/), # an open-source framework to a broad range of power flow model formulations # along with utilities for working with detailed network data.