Skip to content

Commit

Permalink
fix precompile
Browse files Browse the repository at this point in the history
  • Loading branch information
mcosovic committed Sep 3, 2024
1 parent ef7cf40 commit 948f0a8
Showing 1 changed file with 2 additions and 41 deletions.
43 changes: 2 additions & 41 deletions src/utility/precompile.jl
Original file line number Diff line number Diff line change
Expand Up @@ -13,69 +13,30 @@ PrecompileTools.@setup_workload begin
addPmu!(system, device; bus = 2, magnitude = 1.0, angle = 0.0)

PrecompileTools.@compile_workload begin
########## DC Power Flow ###########
########## Power Flow ###########
analysis = dcPowerFlow(system)
solve!(system, analysis)
power!(system, analysis)

########## AC Power Flow ###########
analysis = newtonRaphson(system)
solve!(system, analysis)
power!(system, analysis)
current!(system, analysis)

analysis = newtonRaphson(system, QR)
solve!(system, analysis)

analysis = fastNewtonRaphsonBX(system)
solve!(system, analysis)

analysis = gaussSeidel(system)
solve!(system, analysis)

########## DC State Estimation ###########
########## State Estimation ###########
analysis = dcWlsStateEstimation(system, device)
solve!(system, analysis)

analysis = dcWlsStateEstimation(system, device, QR)
solve!(system, analysis)

analysis = dcWlsStateEstimation(system, device, LDLt)
solve!(system, analysis)

analysis = dcWlsStateEstimation(system, device, Orthogonal)
solve!(system, analysis)

########### PMU State Estimation ###########
analysis = pmuWlsStateEstimation(system, device)
solve!(system, analysis)

analysis = pmuWlsStateEstimation(system, device, QR)
solve!(system, analysis)

analysis = pmuWlsStateEstimation(system, device, LDLt)
solve!(system, analysis)

analysis = pmuWlsStateEstimation(system, device, Orthogonal)
solve!(system, analysis)

########### AC State Estimation ###########
analysis = gaussNewton(system, device)
solve!(system, analysis)

analysis = gaussNewton(system, device, QR)
solve!(system, analysis)

analysis = gaussNewton(system, device, LDLt)
solve!(system, analysis)

analysis = gaussNewton(system, device, Orthogonal)
solve!(system, analysis)
end

PrecompileTools.@compile_workload begin
########## DC Power Flow ###########
analysis = dcPowerFlow(system, QR)
solve!(system, analysis)
end
end

0 comments on commit 948f0a8

Please sign in to comment.