Generate a gradient function from a nonlinear model expression and a vector of named parameters.
Useful links