Model-based Predictive Control of Hybrid Systems: A Probabilistic Neural-network Approach to Real-time Control