An introduction to optimal power flow: Theory, formulation, and examples. Issue 12 (1st December 2016)