Weight Tuning for Model Predictive Controllers