Quadratic Loss Formula for Reactive Dispatch