Correct optimize_model_parameters to check param file as intended