Optimal reset law design based on guaranteed cost control method for Lipschitz nonlinear systems