|
1 | 1 | @testset "Test PTDF matrices, w/ and w/o tolerance" begin |
2 | 2 | sys5 = PSB.build_system(PSB.PSITestSystems, "c_sys5") |
3 | 3 | for solver in ["KLU", "Dense", "MKLPardiso"] |
| 4 | + if PowerNetworkMatrices.USE_AA && solver == "MKLPardiso" |
| 5 | + @info "Skipped MKLPardiso tests on Apple" |
| 6 | + continue |
| 7 | + end |
4 | 8 | for approach in ["standard", "separate_matrices"] |
5 | 9 | buses_5 = nodes5() |
6 | 10 | branches_5 = branches5(buses_5) |
@@ -213,11 +217,12 @@ end |
213 | 217 |
|
214 | 218 | P5_1 = PTDF(sys5; dist_slack = slack_array, linear_solver = "KLU") |
215 | 219 | P5_2 = PTDF(sys5; dist_slack = slack_array, linear_solver = "Dense") |
216 | | - P5_3 = PTDF(sys5; dist_slack = slack_array, linear_solver = "MKLPardiso") |
217 | | - |
218 | 220 | @test isapprox(P5_1.data, P5_2.data, atol = 1e-5) |
219 | | - @test isapprox(P5_1.data, P5_3.data, atol = 1e-5) |
220 | | - @test isapprox(P5_2.data, P5_3.data, atol = 1e-5) |
| 221 | + if !PowerNetworkMatrices.USE_AA |
| 222 | + P5_3 = PTDF(sys5; dist_slack = slack_array, linear_solver = "MKLPardiso") |
| 223 | + @test isapprox(P5_2.data, P5_3.data, atol = 1e-5) |
| 224 | + @test isapprox(P5_1.data, P5_3.data, atol = 1e-5) |
| 225 | + end |
221 | 226 | end |
222 | 227 |
|
223 | 228 | @testset "Test PTDF matrix with distributed bus and with 2 reference buses" begin |
|
0 commit comments