# Rcpp version of the Optimization function that returns the squared difference between user specified and calculated movement parameters.

Source:`R/RcppExports.R`

`movfit_Rcpp.Rd`

The user specifies the probability of staying in the same area and spatial heterogeneity (both in the unfished state). This function returns the squared difference between these values and those produced by the three logit movement model.