Skip to content
Snippets Groups Projects
Commit e35da798 authored by Julian Stürmer's avatar Julian Stürmer
Browse files

Remove printed outputs

parent 00b4d8bf
No related branches found
No related tags found
No related merge requests found
Pipeline #546 failed
......@@ -378,11 +378,8 @@ function calc_new_state!(
)
save(save_pf_iter[2], "network_data", network_data)
end
### Restore active power balance and calculate DC-PF
# println(network_data["gen"]["343"])
# println(network_data["gen"]["349"])
# println(network_data["gen"]["350"])
### Restore active power balance and calculate DC-PF
correct_reference_buses!(network_data)
restore_p_balance!(network_data, f)
......@@ -1006,10 +1003,6 @@ function redistribute_slack_dispatches!(
sum_pmax += g["pmax"]
sum_pg += g["pg"]
end
println(sum_pmin)
println(sum_pmax)
println(sum_pg)
println(slack_gens)
total_pg = sum_pg # total generation to redistribute
if isapprox(sum_pg, sum_pmin, atol=1.0e-7) # sum_pg == sum_pmin
......@@ -1055,10 +1048,6 @@ function redistribute_slack_dispatches!(
"Aggregated dispatch $sum_pg violates aggregated capacity interval [$sum_pmin, $sum_pmax]!"
)
end
println(sum_pmin)
println(sum_pmax)
println(sum_pg)
println(slack_gens)
return nothing
end
......@@ -1089,17 +1078,11 @@ function _reduce_p_dispatch!(
### Reduce dispatches as much as possible
for g in capable_cc_gens
gen = network_data["gen"]["$g"]
# if gen["gen_bus"] == 6349
# println(gen)
# end
if g_Δp >= gen["pg"] - gen["pmin"] # generator reaches minimum dispatch
gen["pg"] = gen["pmin"]
else # generator can reduce dispatch sufficiently
gen["pg"] -= g_Δp
end
# if gen["gen_bus"] == 6349
# println(gen)
# end
end
### Recalculate active power mismatch and repeat reduction, if necessary
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment