A decoupled quadratic programming approach for optimal power dispatch