POWER MANAGEMENT AND OPTIMIZED CONTROL OF HYBRID PV BESS GRID