Skip to content

Commit

Permalink
add 1e-4 tolerance on dc oswpf node-breaker test
Browse files Browse the repository at this point in the history
  • Loading branch information
ccoffrin committed Jul 4, 2024
1 parent 3a3a7a2 commit 27df07e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions test/opf-var.jl
Original file line number Diff line number Diff line change
Expand Up @@ -646,8 +646,7 @@ end
@test switch_status_total <= 13.000 && switch_status_total >= 10.000 # 1 to 4 swtiches off

branch_status_total = sum(branch["br_status"] for (i,branch) in result["solution"]["branch"])
println(branch_status_total)
@test branch_status_total >= 5.0 && branch_status_total <= 7.0 # zero-two branches off
@test branch_status_total >= 4.9999 && branch_status_total <= 7.0001 # zero-two branches off
end
end

Expand Down

0 comments on commit 27df07e

Please sign in to comment.