From a8d1aadeb0993b4efb706f4197e4f6178354a3db Mon Sep 17 00:00:00 2001 From: Carleton Coffrin Date: Mon, 28 Aug 2023 10:56:29 -0600 Subject: [PATCH] remove superfluous use of branch_flows output parameter in tests, closes #881 (#882) --- test/data.jl | 2 +- test/pf.jl | 2 +- test/warmstart.jl | 8 ++++---- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/test/data.jl b/test/data.jl index bfe6bd92..7cf6d999 100644 --- a/test/data.jl +++ b/test/data.jl @@ -157,7 +157,7 @@ end @testset "5-bus case solution with duals" begin - result = run_dc_opf("../test/data/matpower/case5.m", nlp_solver, setting = Dict("output" => Dict("branch_flows" => true, "duals" => true))) + result = run_dc_opf("../test/data/matpower/case5.m", nlp_solver, setting = Dict("output" => Dict("duals" => true))) result_base = deepcopy(result) PowerModels.make_mixed_units!(result["solution"]) diff --git a/test/pf.jl b/test/pf.jl index 253330d1..c853ce17 100644 --- a/test/pf.jl +++ b/test/pf.jl @@ -93,7 +93,7 @@ end #= # numerical issues with ipopt, likely div. by zero issue in jacobian @testset "5-bus case with hvdc line" begin - result = run_pf("../test/data/matpower/case5_dc.m", ACRPowerModel, nlp_solver, setting = Dict("output" => Dict("branch_flows" => true))) + result = run_pf("../test/data/matpower/case5_dc.m", ACRPowerModel, nlp_solver) @test result["termination_status"] == LOCALLY_SOLVED @test isapprox(result["objective"], 0; atol = 1e-2) diff --git a/test/warmstart.jl b/test/warmstart.jl index e956b357..3c0b450e 100644 --- a/test/warmstart.jl +++ b/test/warmstart.jl @@ -40,7 +40,7 @@ end @testset "dc warm starts" begin @testset "5 bus case" begin data = PowerModels.parse_file("../test/data/matpower/case5.m") - result = run_dc_opf(data, nlp_solver; setting = Dict("output" => Dict("branch_flows" => true))); + result = run_dc_opf(data, nlp_solver) PowerModels.update_data!(data, result["solution"]) @@ -55,7 +55,7 @@ end @testset "5 bus pwl case" begin data = PowerModels.parse_file("../test/data/matpower/case5_pwlc.m") - result = run_dc_opf(data, nlp_solver; setting = Dict("output" => Dict("branch_flows" => true))); + result = run_dc_opf(data, nlp_solver) PowerModels.update_data!(data, result["solution"]) @@ -73,7 +73,7 @@ end @testset "ac warm starts" begin @testset "5 bus case" begin data = PowerModels.parse_file("../test/data/matpower/case5.m") - result = run_ac_opf(data, nlp_solver; setting = Dict("output" => Dict("branch_flows" => true))); + result = run_ac_opf(data, nlp_solver) PowerModels.update_data!(data, result["solution"]) @@ -88,7 +88,7 @@ end @testset "5 bus pwl case" begin data = PowerModels.parse_file("../test/data/matpower/case5_pwlc.m") - result = run_ac_opf(data, nlp_solver; setting = Dict("output" => Dict("branch_flows" => true))); + result = run_ac_opf(data, nlp_solver) PowerModels.update_data!(data, result["solution"])