Model Predictive Controller Weight Tuning and Real-Time Learning-Based Weight Selection