rootSolve::multiroot()
Newton-Raphson solver implemented with rootSolve::multiroot()
.sfcr_newton(m, equations, periods, max_ite, tol, ...)
The initialized matrix obtained with .make_matrix()
.
Prepared equations with .prep_equations()
.
Total number of rows (periods) in the model.
Maximum number of iterations allowed per block per period.
Tolerance accepted to determine convergence.
Extra parameters to pass to rootSolve::multiroot()
.
This function implements the Newton-Raphson method to solve the cyclical
blocks of equations. It relies on the multiroot()
function from rootSolve
.