This function evaluates root mean squared error of a model
objective(theta, model, temp, obs)
theta
: values for each of the parametersmodel
: mathematical function to be used to model datatemp
: temperature valuesobs
: DTG mass valuesroot mean square error of model output