This document discusses an optimal power flow method with improved voltage stability analysis. It introduces voltage stability and instability concepts. It then describes a voltage stability indicator L derived from fundamental circuit laws that can predict proximity to voltage collapse. The document outlines the formulation of an optimal power flow problem to minimize generation costs and indicator L. It applies this method to the 9-bus WSCC test system in MATLAB and concludes the indicator can accurately predict voltage stability problems and vulnerable locations.