Skip to content

Commit a8d1aad

Browse files
authored
remove superfluous use of branch_flows output parameter in tests, closes #881 (#882)
1 parent a7c6017 commit a8d1aad

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

test/data.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ end
157157

158158

159159
@testset "5-bus case solution with duals" begin
160-
result = run_dc_opf("../test/data/matpower/case5.m", nlp_solver, setting = Dict("output" => Dict("branch_flows" => true, "duals" => true)))
160+
result = run_dc_opf("../test/data/matpower/case5.m", nlp_solver, setting = Dict("output" => Dict("duals" => true)))
161161
result_base = deepcopy(result)
162162

163163
PowerModels.make_mixed_units!(result["solution"])

test/pf.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ end
9393
#=
9494
# numerical issues with ipopt, likely div. by zero issue in jacobian
9595
@testset "5-bus case with hvdc line" begin
96-
result = run_pf("../test/data/matpower/case5_dc.m", ACRPowerModel, nlp_solver, setting = Dict("output" => Dict("branch_flows" => true)))
96+
result = run_pf("../test/data/matpower/case5_dc.m", ACRPowerModel, nlp_solver)
9797
9898
@test result["termination_status"] == LOCALLY_SOLVED
9999
@test isapprox(result["objective"], 0; atol = 1e-2)

test/warmstart.jl

+4-4
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ end
4040
@testset "dc warm starts" begin
4141
@testset "5 bus case" begin
4242
data = PowerModels.parse_file("../test/data/matpower/case5.m")
43-
result = run_dc_opf(data, nlp_solver; setting = Dict("output" => Dict("branch_flows" => true)));
43+
result = run_dc_opf(data, nlp_solver)
4444

4545
PowerModels.update_data!(data, result["solution"])
4646

@@ -55,7 +55,7 @@ end
5555

5656
@testset "5 bus pwl case" begin
5757
data = PowerModels.parse_file("../test/data/matpower/case5_pwlc.m")
58-
result = run_dc_opf(data, nlp_solver; setting = Dict("output" => Dict("branch_flows" => true)));
58+
result = run_dc_opf(data, nlp_solver)
5959

6060
PowerModels.update_data!(data, result["solution"])
6161

@@ -73,7 +73,7 @@ end
7373
@testset "ac warm starts" begin
7474
@testset "5 bus case" begin
7575
data = PowerModels.parse_file("../test/data/matpower/case5.m")
76-
result = run_ac_opf(data, nlp_solver; setting = Dict("output" => Dict("branch_flows" => true)));
76+
result = run_ac_opf(data, nlp_solver)
7777

7878
PowerModels.update_data!(data, result["solution"])
7979

@@ -88,7 +88,7 @@ end
8888

8989
@testset "5 bus pwl case" begin
9090
data = PowerModels.parse_file("../test/data/matpower/case5_pwlc.m")
91-
result = run_ac_opf(data, nlp_solver; setting = Dict("output" => Dict("branch_flows" => true)));
91+
result = run_ac_opf(data, nlp_solver)
9292

9393
PowerModels.update_data!(data, result["solution"])
9494

0 commit comments

Comments
 (0)