The Power Flow Control of UPFC for Cost Minimization