From 693fa3ffd0bd1c71de5dc7a2fd1a722c12902831 Mon Sep 17 00:00:00 2001 From: ccoffrin Date: Wed, 5 Feb 2020 22:58:19 -0500 Subject: [PATCH] minor updates to docs --- docs/src/network-data.md | 14 ++++++++++++++ docs/src/quickguide.md | 8 ++++---- 2 files changed, 18 insertions(+), 4 deletions(-) diff --git a/docs/src/network-data.md b/docs/src/network-data.md index aee70ffdd..d27e925c0 100644 --- a/docs/src/network-data.md +++ b/docs/src/network-data.md @@ -98,6 +98,20 @@ The network data dictionary structure is roughly as follows: "2":{...}, ... }, +"switch":{ + "1":{ + "index":, + "f_bus":, + "t_bus":, + "psw":, + "qsw":, + "state":, + "thermal_rating":, + ... + }, + "2":{...}, + ... +}, ... } ``` diff --git a/docs/src/quickguide.md b/docs/src/quickguide.md index f9f246d86..f882624e4 100644 --- a/docs/src/quickguide.md +++ b/docs/src/quickguide.md @@ -43,12 +43,12 @@ For example, the following dictionary comprehension can be used to inspect the b Dict(name => data["va"] for (name, data) in result["solution"]["bus"]) ``` -For more information about PowerModels result data see the [PowerModels Result Data Format](@ref) section. +The `print_summary(result["solution"])` function can be used show an table-like overview of the solution data. For more information about PowerModels result data see the [PowerModels Result Data Format](@ref) section. ## Accessing Different Formulations -The function "run_ac_opf" and "run_dc_opf" are shorthands for a more general formulation-independent OPF execution, "run_opf". +The function `run_ac_opf` and `run_dc_opf` are shorthands for a more general formulation-independent OPF execution, "run_opf". For example, `run_ac_opf` is equivalent to, ```julia @@ -84,9 +84,9 @@ network_data = PowerModels.parse_file("pti/case3.raw"; import_all=true) This network data can be modified in the same way as the previous Matpower `.m` file example. For additional details about the network data, see the [PowerModels Network Data Format](@ref) section. ## Inspecting AC and DC branch flow results -The flow AC and DC branch results are not written to the result by default. To inspect the flow results, pass a Dict in through the `setting` keyword: +The flow AC and DC branch results are written to the result by default. The following can be used to inspect the flow results: ```julia -result = run_opf("matpower/case3_dc.m", ACPPowerModel, with_optimizer(Ipopt.Optimizer), setting = Dict("output" => Dict("branch_flows" => true))) +result = run_opf("matpower/case3_dc.m", ACPPowerModel, with_optimizer(Ipopt.Optimizer)) result["solution"]["dcline"]["1"] result["solution"]["branch"]["2"] ```