Novel forecast-based dispatch strategy optimization for PV hybrid systems in real time