Optimal reactive power and voltage control in regional power grids using temporal segmentation of wind and PV generation | Synapse