Added persistent_fmincon to fit_model function