Skip to content

Commit

Permalink
added test for loading reduction
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhengLiu1119 committed Jan 18, 2023
1 parent be187a1 commit 25eced2
Show file tree
Hide file tree
Showing 4 changed files with 1,115 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/PandaModels.jl
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ export run_powermodels_pf,
run_pandamodels_ploss,
run_pandamodels_vstab_test,
run_pandamodels_qflex_test,
run_pandamodels_ploss_test
run_pandamodels_ploss_test,
run_pandamodels_loading

include("input/pp_to_pm.jl")
include("input/tools.jl")
Expand All @@ -43,4 +44,5 @@ include("models/call_pandamodels.jl")
include("models/call_powermodels.jl")
include("models/run_pm_vstab_dev.jl")
include("models/run_pm_qflex_dev.jl")
include("models/loading.jl")
end
11 changes: 11 additions & 0 deletions test/call_pandamodels.jl
Original file line number Diff line number Diff line change
Expand Up @@ -85,4 +85,15 @@
@test result["solve_time"] > 0.0
end


@testset "case_loading: cigre mv" begin
result = run_pandamodels_loading(case_loading)
pm = _PdM.load_pm_from_json(case_loading)
params = _PdM.extract_params!(pm)

@test string(result["termination_status"]) == "LOCALLY_SOLVED"
@test string(result["dual_status"]) == "FEASIBLE_POINT"
@test string(result["primal_status"]) == "FEASIBLE_POINT"
end

end
Loading

0 comments on commit 25eced2

Please sign in to comment.