Optimizing human-in-the-loop training: Real-time personalized task scheduling via model predictive control