Configurable function for solving families of nonlinear