Dear Prof. Ray, I have modeled capability curve in triangular shape. Ex. P1=0, P2= 10 MW, Qmax =4.84, Qmin =-3.28, Pmax=Pmin=9.5. So at this Pmax limit generator should produce reactive power =0.24 MVAr but in opf it generates 4.60 MVAr. I don't understand the reason because I have fixed the active power generation and Qg should generate from zero to vertical max limit of capability curve. I read previous answers on forum https://www.mail-archive.com/matpower-l%40cornell.edu/msg03986.html but could not understand what changes you have made in hasPQcap function. Thank you for your time.
regards Mirish
