From c5bcb6811f9e8bba4ddd7195f74c5c079dc1f48b Mon Sep 17 00:00:00 2001 From: David M Fobes Date: Tue, 10 Oct 2023 14:32:03 -0600 Subject: [PATCH] WIP: obj --- test/mld.jl | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/test/mld.jl b/test/mld.jl index 34590baa..bf5ce985 100644 --- a/test/mld.jl +++ b/test/mld.jl @@ -7,7 +7,7 @@ prepare_data!(orig_args) set_setting!(orig_args, ("options", "outputs", "log-level"), "error") set_setting!(orig_args, ("solvers", "HiGHS", "mip_feasibility_tolerance"), 1e-6) - set_setting!(orig_args, ("options", "objective", "enable-switch-state-open-cost"), false) + set_setting!(orig_args, ("options", "objective", "enable-switch-state-open-cost"), true) # DEBUGGING # set_settings!(orig_args, Dict(("options", "outputs", "log-level")=>"info", ("solvers", "HiGHS", "output_flag")=>true)) @@ -101,7 +101,7 @@ r = optimize_switches!(args) @test first(r).second["termination_status"] == OPTIMAL - @test isapprox(r["1"]["objective"], 66.30; atol=1) + @test isapprox(r["1"]["objective"], 82.06; atol=1) end @testset "test full-lookahead optimal switching - lindistflow - traditional" begin @@ -116,7 +116,7 @@ r = optimize_switches!(args) @test first(r).second["termination_status"] == OPTIMAL - @test isapprox(r["1"]["objective"], 66.30; atol=1) + @test isapprox(r["1"]["objective"], 82.06; atol=1) end @testset "test full-lookahead optimal switching - lindistflow - block - radial-disabled - inverter-disabled" begin @@ -133,7 +133,7 @@ r = optimize_switches!(args) @test first(r).second["termination_status"] == OPTIMAL - @test isapprox(r["1"]["objective"], 66.29; atol=1) + @test isapprox(r["1"]["objective"], 80.65; atol=1) end @testset "test full-lookahead optimal switching - lindistflow - traditional - radial-disabled - inverter-disabled" begin @@ -150,7 +150,7 @@ r = optimize_switches!(args) @test first(r).second["termination_status"] == OPTIMAL - @test isapprox(r["1"]["objective"], 66.29; atol=1) + @test isapprox(r["1"]["objective"], 80.65; atol=1) end @testset "test full-lookahead optimal switching - nfa - block" begin @@ -165,7 +165,7 @@ r = optimize_switches!(args) @test first(r).second["termination_status"] == OPTIMAL - @test isapprox(r["1"]["objective"], 56.12; atol=1) + @test isapprox(r["1"]["objective"], 72.52; atol=1) end @testset "test full-lookahead optimal switching - nfa - traditional" begin @@ -180,7 +180,7 @@ r = optimize_switches!(args) @test first(r).second["termination_status"] == OPTIMAL - @test isapprox(r["1"]["objective"], 56.12; atol=1) + @test isapprox(r["1"]["objective"], 72.52; atol=1) end @testset "test robust switching - lindistflow - block" begin