'Set integrator by name.
Parameters
name : str
Name of the integrator.
integrator_params
Additional parameters for the integrator.'

def set_integrator(self, name, **integrator_params):

    integrator = find_integrator(name)
    if (integrator is None):
        warnings.warn(('No    integrator    name    match    with    %r    or    is    not    available.' % name))
    else:
        self._integrator = integrator(**integrator_params)
        if (not len(self._y)):
            self.t = 0.0
            self._y = array([0.0], self._integrator.scalar)
        self._integrator.reset(len(self._y), (self.jac is not None))
    return self
