Hybrid Cloud-Fog Radio Access Network (CF-RAN) is a recent network architecture proposed to increase network coverage from CRAN while leveraging power consumption in future 5G networks. In CF-RAN, the processing of baseband signals from Remote Radio-Heads (RRHs) can be performed in virtualized BaseBand Units (vBBUs) located in the cloud or in fog nodes that are instantiated in function of the network demand. Through a Time-and-Wavelength Division Multiplexing Passive Optical Network (TWDM-PON), virtualized PONs (VPONs) can be dynamically created to support transmissions from RRHs to vBBUs. However, due to traffic fluctuations, the amount of necessary vBBUs and VPONs may change along a day. In this paper, we propose a batch scheduling algorithm based on Integer Linear Programming (ILP) to perform reconfiguration of VPONs and migration of vBBUs among processing nodes in function of fluctuation on traffic demands. Our results show that, in comparison to an incremental algorithm without reconfiguration of VPONs and vBBUs migration capacities, our algorithm reduces power consumption and bandwidth wastage by up to 28% and 57%, respectively, and also eliminates blocking probability.