Control And Optimization Of Power Systems With Renewables: Voltage Regulation And Generator Dispatch