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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions Project.toml
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
name = "PowerDiff"
uuid = "4fa8226c-b122-4e48-8217-6f318ba8ef74"
version = "0.1.0"
authors = ["Samuel Talkington"]
authors = ["Samuel Talkington", "Michael Klamkin", "Cameron Khanpour"]

[deps]
ForwardDiff = "f6369f11-7733-5829-9624-2563aa707210"
Ipopt = "b6b21f68-93f8-5de0-b562-5493be1d77c9"
JuMP = "4076af6c-e467-56ae-b986-b466b2749572"
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
Expand All @@ -19,15 +18,15 @@ PowerDiffAPFExt = "AcceleratedDCPowerFlows"

[compat]
AcceleratedDCPowerFlows = "0.1"
ForwardDiff = "0.10"
Ipopt = "1"
JuMP = "1"
PowerModels = "0.21"
julia = "1.9"

[extras]
ForwardDiff = "f6369f11-7733-5829-9624-2563aa707210"
Statistics = "10745b16-79ce-11e8-11f9-7d13ad32a3b2"
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"

[targets]
test = ["Statistics", "Test"]
test = ["ForwardDiff", "Statistics", "Test"]
11 changes: 11 additions & 0 deletions benchmark/benchmarks.jl
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ end
case_name, net_data = _load_benchmark_case()
prob = DCOPFProblem(net_data)
sol = solve!(prob)
ac_prob = ACOPFProblem(deepcopy(net_data); silent=true)
ac_sol = solve!(ac_prob)

SUITE["dc_opf"] = BenchmarkGroup()
SUITE["dc_opf"]["kkt_jacobian"] = BenchmarkGroup()
Expand All @@ -31,3 +33,12 @@ kkt_suite["flowlimit"] = @benchmarkable PowerDiff.calc_kkt_jacobian_flowlimit($p
kkt_suite["cost_linear"] = @benchmarkable PowerDiff.calc_kkt_jacobian_cost_linear($(prob.network))
kkt_suite["cost_quadratic"] = @benchmarkable PowerDiff.calc_kkt_jacobian_cost_quadratic($prob, $sol)
kkt_suite["susceptance"] = @benchmarkable PowerDiff.calc_kkt_jacobian_susceptance($prob, $sol)

SUITE["ac_opf"] = BenchmarkGroup()
SUITE["ac_opf"]["kkt_jacobian"] = BenchmarkGroup()
SUITE["ac_opf"]["kkt_jacobian"][case_name] =
@benchmarkable PowerDiff.calc_kkt_jacobian($ac_prob; sol=$ac_sol)
SUITE["ac_opf"]["kkt_param"] = BenchmarkGroup()
SUITE["ac_opf"]["kkt_param"][case_name] = BenchmarkGroup()
SUITE["ac_opf"]["kkt_param"][case_name]["switching"] =
@benchmarkable PowerDiff.calc_kkt_jacobian_param($ac_prob, $ac_sol, :sw)
1 change: 0 additions & 1 deletion src/PowerDiff.jl
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ using LinearAlgebra
using SparseArrays
using JuMP
using Ipopt
using ForwardDiff
import PowerModels
const PM = PowerModels

Expand Down
Loading
Loading