neural generalized predictive control