Replies: 1 comment 2 replies
-
Hi, there's multiple ways to do that, here are some suggestions:
data["gen"]["1"] = Dict{String, Any}(......, "solar"=>true)
...
data["gen"]["14"] = Dict{String, Any}(......, "solar"=>false) so in your objective you can go (you need to double-check the syntax, as I don't have a laptop with Julia here, but you get the idea): function objective_reactive_min(pm)
JuMP.@objective(pm.model, Min, sum(sum(sum(PMD.var(pm, n, :qg, i) for i in PMD.ids(pm, n, :gen) if PMD.ref(pm, n, :gen,i)["solar"]) for n in PMD.nw_ids(pm)))
end Regarding the bounds on the power, I am not sure why you want to rely on ``nodes each generator is connected to". You can add again some bounds on the "gen" dictionary for (_, gen) in data["gen"]
if gen["solar"]
gen["pgmin"] = xxxx
gen["pgmax"] = yyy
... and so on for Hope this helps |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello all,
Can I use PMD to minimize the reactive power injection by solar PV? I tried using the below (I am still new to PMD so it could be wrong),
But according to my understanding when I use (qg) does it minimize all the reactive power generation of vsource, generators and solar? Is it possible to isolate the reactive power of solar pv and consider only it as a variable?
Also I want the reactive power injection of solar to be bounded within 0<=qg(solar)<=qgsolar(max), I wrote the below constraint but it is not working.
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions