Hi, I'm running a cpf. In the base case there are some generators which are at their maximum generation limit, so these are converted to PQ buses in the base case pf. Then, on row 272 and 284 in runcpf, the QG for these buses becomes 0 since they are not updated like the other generator buses. So instead of the generator being a PQ bus with Pmax, Qmax, I get a PQ bus with Pmax, 0. Is it supposed to be like this or is it a bug?
I tried changing the code but couldn't see any big difference in my case. Help is kindly appreciated, Elis