deriv_tests: Check whether non-linear least squares restricted MIDAS regression problem has converged
Description
Computes the gradient and hessian of the optimisation function of restricted MIDAS regression and checks whether the conditions of local optimum are met. Numerical estimates are used.