Hi I am trying to program an OPF for my Master's Thesis and I want to check its results against Matpower's results. Now I basically ended up with quite different solutions even though I also programmed AC OPF.
I would therefore like to check how you implemented the constraints in Matpower. I know that this is described in section 6.1 in the manual, however I would like to check with the code. Where do I find the formulation of the constraints in the code? I tried to debug the matpower opf and found the function add_constraints(). However, either I don't understand it or the function just sets names and indices for the constraints without implementing any equations. I'd be grateful for your help. Best regards, Stefanie
