Skip to content

Commit

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

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

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

analysis = dcPowerFlow(system, LDLt)
solve!(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)

########## State Estimation ###########
########## DC State Estimation ###########
analysis = dcWlsStateEstimation(system, device)
solve!(system, analysis)
power!(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)
solve!(system, analysis)
power!(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
end

0 comments on commit 03a7151

Please sign in to comment.