Load Flow Optimization and Optimal Power Flow