Detailed Analysis of Reactive Power Optimization Algorithms with Compact Modeling for Power Systems