get_optim_fit function

Fit model to data using optim