True. That should also work and would actually probably be simpler. Don’t know why I didn’t think of that. So, yes. See Section 6.4.3 in the User’s Manual.
Ray On Aug 24, 2021, at 9:40 AM, hhuw...@163.com<mailto:hhuw...@163.com> wrote: Thank you very much. In fact, I want to model PV as a dispatchable reactive source within a 0.95 power factor. I have checked the matpower mail archive, and I find that someone in 2012 (see picture attached) has suggested that this can be modeled using matpower's generator P-Q capability curve. I think this is suitable for my case. Is it still in use today? Thank you. At 2021-08-24 22:18:49, "Ray Daniel Zimmerman" <r...@cornell.edu<mailto:r...@cornell.edu>> wrote: 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. <1629815926(1).png>