Assuming you can model it as a linear relationship (e.g. a constant power factor), you could add this as a user-defined constraint. See Section 7.1.2 in the manual for more details.
Ray On Aug 23, 2021, at 9:03 PM, hhuw...@163.com<mailto:hhuw...@163.com> wrote: Hi all, I'm using Matpower 7.1 to model PV and I want to add it into mpc.gen matrix to see how much PV generation can be consumed in opf. Here comes the problem: There is a relationship between the active power output and reactive power output of PV, but I do not see how to consider it in the mpc.gen matrix. (It seems I can only set upper/lower bounds for P and Q respectively?) So, is there any useful method to model PV in matpower? Plaese help me. Thank you very much.