1 Introduction

Plant producers have recognized the issue of plant protection from pests for a long time. The various practices to prevent pests have been thus modified according to the situations in which the plant producers have encountered. We may classify those practices into two main categories, i.e., the human-made and the natural practices. The former refers to any intervention invented by humans, e.g., chemicals, cages, and guns, while the latter refers to mechanisms that occur naturally to strengthen the ecological balance. In the mathematical approach, there are attempts to discover the combination of these methods. Because, by means of the natural mechanisms, although they are useful in maintaining the ecological balance, they may not be effective because the natural control usually takes a longer time than human interventions. In contrast, human interventions may be more punctual, but they may negatively distort the natural system in the long term. Inspired by the well-known ecologically mathematical model proposed in 1931 by Lotka–Volterra [1], the application of pest management that combines these two practices has been successively developed. This collective practice is known as Integrated Pest Management (IPM). The progress of IPM in the creation of mathematical models has been reflected by the invention of the parameters, variables, functional forms, and the ability to reflect the nature of the studied ecosystem. Previously proposed models included, e.g., the IPM model with the fixed moment that employs the pest pesticide resistance rate [2] and the IPM model with the threshold condition that takes into account the effect of carrying capacity, environment fluctuation, human activities [3], the pest growth rate, types of the functional response, and the pesticide effect on natural predators [4].

In 2010, Tang et al. [5] formulated the IPM model with a different pulsing time of the chemical and natural enemy and showed the periodic solution under a specific threshold. This IPM model has been further developed to scrutinize the existence and stability of the periodic solution by Xiao Dai in 2015 [6] by inserting the logistic growth function into the model. They conducted the sensitivity analysis of the periodic solution by varying the number of natural predators and discovered that the pest becomes extinct if the released predators are large enough. Likewise, in 2017, Sun et al. [7] relaunched their IPM model. Their updated version was not much different from the previous one; in particular, they showed the periodic solutions by varying the values of parameters [2].

Recently, to show the novels of impulsive application in various fields, Zhao et al. [8] formulated an impulsive delayed phytoplankton-zooplankton model:

$$ \textstyle\begin{cases} \left . \textstyle\begin{array}{l} \frac{dP_{1}}{dt} =P_{1} (r_{1}-a_{1}P_{1}^{\theta _{1}} )- \alpha _{1}P_{1}Z,\\ \frac{dP_{2}}{dt}=P_{2} (r_{2}-a_{2}P_{2} ^{\theta _{2}} )-\alpha _{2}P_{2}Z,\\ \frac{dZ}{dt}=Z (\varrho _{1}P _{1}+\varrho _{2}P_{2}-a_{3}Z(t-\tau )-\mu - \frac{\beta P_{2}}{K+P_{2}} ), \end{array}\displaystyle \right \rbrace \quad t\ne nT, \\ \left . \textstyle\begin{array}{l} \Delta P_{1} =d (P_{2}-P_{1} ), \\ \Delta P_{2}=d (P _{1}-P_{2} ), \\ \Delta Z= 0, \end{array}\displaystyle \right \rbrace \quad t= nT, \end{cases} $$

where \(P_{1}(t)\) denotes the concentration of the nontoxic phytoplankton (NPP) and \(P_{2}(t)\) is the concentration of the toxin-producing phytoplankton (TPP). \(Z(t)\) is the concentration of the zooplankton. The meaning of all parameters in the model can be found in [8]. The numerical solutions conducted by this work established the global attractivity of zooplankton-extinction periodic solutions.

Also, Zhang et al.[9] proposed an impulsive SIRS computer virus propagation model:

$$ \textstyle\begin{cases} \left . \textstyle\begin{array}{l} \frac{dS(t)}{dt} =\mu -\frac{\beta S(t) I(t)}{1+\alpha I(t)}-\mu S(t)+ \delta R(t),\\ \frac{dI(t)}{dt}= \frac{\beta S(t) I(t)}{1+\alpha I(t)}-(\mu +\gamma )I(t),\\ \frac{dR(t)}{dt}=\gamma I(t)-(\mu +\delta ) R(t), \end{array}\displaystyle \right \rbrace \quad t\ne kT, \\ \left . \textstyle\begin{array}{l} S (t^{+} ) =S(t), \\ I (t^{+} )=(1-q) I(t), \\ R (t^{+} )=R(t)+q I(t), \end{array}\displaystyle \right \rbrace \quad t= kT, \end{cases} $$

where \(S(t)\), \(I(t)\), and \(R(t)\) denote the percentages of susceptible, infected, and recovered internal computers at time t, respectively. In their work, the numerical results demonstrated that the virus-free equilibrium is globally stable. In addition, several applications of the impulsive models have been studied in, e.g., [10,11,12,13].

In Thailand, the problem of squirrels has been recognized by the coconut farmers in the Samut Songkhram, a province of Thailand, for long time. The squirrels become the major animal that destroys a number of not only coconuts but also other plants produced in the same areas. Until now, farmers still do not have an effective way to prevent the coconut loss from squirrel invasion. Even though some strategies have been employed to control the squirrels, e.g., poisoning, catching, and hunting, they seem ineffective because of the limitation of the farmer capability and the support from the related agents, especially from the government. Therefore the problem of squirrels has still been embedded in this area. However, the intention to alleviate the squirrel problem was reflected by a campaign that Samut Songkhram Provincial Agriculture Office (PAO) organized in 2013 to burn the 60,000 tails of squirrels which the agricultural office purchased from farmers at a price of 15 baht per tail. This campaign covered ten months and invited the farmers from three sub-districts to sell the squirrel tails to PAO at maximum 2000 tails per month per sub-district. Eventually, this campaign cost the government budget of approximately 700,000 baht. Additional information could be found at http://pr.prd.go.th/samutsongkhram. Due to the limitation of the government budget, the law against the air gun carrying in public area, and resistance from some people who have protected squirrels, this campaign was finally terminated. However, in the coconut farmers’ perspective, squirrel hunting is an essential practice for controlling the squirrel density.

Motivated by various applications of the impulsive technique and the problem faced by coconut farmers, we hence propose an impulsive CSOH model describing the actual situation of the squirrel problem in the coconut farms. We aim to apply the mathematical technique to this real problem and then to make a contribution by proposing new perspectives on the mathematical model. In other words, we add two new equations into the classical prey-predator relationship. The first one represents the coconut yield indicating the ultimate result and the other one is the squirrel hunter presenting a group of people who have been used in the squirrel control strategy. In addition, this hunter equation shows a new kind of predators who can improve their predation skills which are not generally presented in the traditional prey-predator model. This paper is organized as follows. A CSOH model with impulsive practice is presented in Sect. 2. Some essential lemmas which are required in our work are given in Sect. 3. In Sect. 4, the implication of lemmas and theories is presented. The sufficient conditions for the local and global attraction of solution are derived in Sect. 5. Finally, numerical simulations and short discussions are provided in Sect. 6 and Sect. 7, respectively.

2 Mathematical model

Since eliminating the squirrels is not an ultimate objective of the model that we propose, we improve the traditional prey-predator model, which mainly focuses on the interaction and control between the preys and predators, by incorporating a coconut yield equation into the model to investigate the effect of the squirrel controlling strategies on the number of coconuts as follows:

$$ \textstyle\begin{cases} \left . \textstyle\begin{array}{l} \frac{dC(t)}{dt} =\beta C(t) ( 1-\frac{C(t)}{K} )-\gamma C(t)S(t)-\mu C(t),\\ \frac{dS(t)}{dt}=\eta S(t) ( 1-\frac{S(t)}{ \omega C(t)+Q} )+\lambda C(t)S(t)-\delta S(t)O(t)-\sigma S(t)H(t), \\ \frac{dO(t)}{dt}=\xi O(t) ( 1-\frac{O(t)}{\kappa S(t)+B} )+ \zeta S(t)O(t),\\ \frac{dH(t)}{dt}=cS(t)-dH(t), \end{array}\displaystyle \right \rbrace \quad t\ne nT, \\ \left . \textstyle\begin{array}{l} C ( t^{+} ) =C(t), \\ S ( t^{+} )=S(t), \\ O ( t^{+} )=O(t), \\ H ( t^{+} )=H(t)+h, \end{array}\displaystyle \right \rbrace \quad t= nT, \end{cases} $$
(1)

with the initial condition \(( C ( 0 ^{ + } ) , S ( 0 ^{ + } ) , O ( 0 ^{ + } ) , H ( 0 ^{ + } ) ) = ( C _{ 0 } , S _{ 0 } , O _{ 0 } , H _{ 0 } ) = X _{ 0 }\), where \(C(t)\), \(S(t)\), \(O(t)\), and \(H(t)\) are the number of coconut yields, squirrels, barn owls, and squirrel hunters at time t, respectively. In addition, \(C(t^{+})\), \(S(t^{+})\), \(O(t^{+})\), and \(H(t^{+})\) represent the number of coconut yields, squirrels, barn owls, and squirrel hunters immediately after the nth pulse. The basic assumptions of the model are that coconut yields, squirrels, and bran owls grow logistically. For coconut yields, K is the coconut carrying capacity which is held constant and limited by the growing area and nutrient of soil. Since squirrels and barn owls do not only rely on one source of food, their carrying capacities are defined differently from the carrying capacity of the coconuts, i.e., the squirrel carrying capacity is defined by the combination between coconuts and other sources of food Q. Similarly, the carrying capacity of barn owls is defined by the combination between the number of squirrels and other sources of food B. For the rest of the parameters, the constants β, η, and ξ denote the reproduction rate of coconut yields, squirrels, and barn owls, respectively. γ is the predation rate of squirrels, μ is the harvesting rate of coconut yields, ω is the marginal carrying capacity of squirrels induced by the number of coconuts, λ is the conversion rate of squirrels, δ is the predation rate of barn owls, σ is the hunting rate of squirrel hunters, κ is the marginal carrying capacity of barn owls induced by the number of squirrels, and ζ is the conversion rate of barn owls.

Regarding the squirrel hunter equation, this equation presents the squirrel controlling strategy employed in the coconut farm and a kind of the predator that deviates from the predators introduced in the traditional prey-predator model, i.e., the hunters in our model can improve their predation skills. The equation shows the straightforward relationship between the number of hunters and squirrels with the assumption that when the squirrel emerges, the squirrel hunter emerges too. This phenomenon has happened since the farmers needed to find some way to eliminate squirrels to prevent their coconut loss and one easy way is becoming the hunters. Also, hiring the hunters is an option that the farmers can pursue to increase the number of hunters for eliminating the squirrels when they increase in their density. Nevertheless, the number of hunters can be declined by the deterioration of the squirrel hunting skills when squirrels are scarce for hunting. Also, a loss of interest in squirrel hunting can cause hunter reduction. Two parameters in the equation, which are related to these events, are the entered rate of hunters c presenting the marginal effect of the squirrel density on the number of hunters and the exit rate of hunters d showing the marginal effect of hunter density on the number of hunters.

Since we are interested in observing the effects of the squirrel hunters pulsing on the squirrel density, we impose a fixed number of hunters h at each fixed moment of pulsing time nT, where \(n=1,2,\ldots \) , and T is the period of impulsive effect, into the model.

3 Preliminaries

Before providing the main results, we introduce some notations and few auxiliary results related to the comparison theorem, which will be useful for establishing our results.

Let \(R_{+}= [ 0,+\infty )\), \(R_{+}^{4}= \{ X= (C(t),S(t),O(t),H(t) )\in R^{4}:C(t)\ge 0, S(t)\ge 0, O(t) \ge 0, H(t)\ge 0 \}\). The functions on the right-hand sides of the former four equations in system (1) are denoted by \(f={{ ( f_{1},f_{2},f_{3},f_{4} )} ^{T}}\). Let \(V_{0}\) be the set of functions \(V:R_{+}\times R_{+}^{4}\to R_{+}\) having the following properties [11, 14,15,16,17]:

  1. (1)

    V is continuous in \(( nT, ( n+1 )T ] \times R_{+}^{4}\) for each \(X\in R_{+}^{4}\), \(n\in Z_{+}\) and \(\lim_{ ( t , y ) \rightarrow ( n T ^{ + } , X ) } V ( t , y ) = V ( n T ^{ + } , X ) \) exists,

  2. (2)

    V is locally Lipschitzian in X.

Definition 1

([18])

Suppose that \(V\in V_{0}\), then, for \(( t,X )\in ( nT, ( n+1 )T ]\times R_{+}^{4}\), the upper right derivative of \(V ( t,X )\) with respect to the impulsive differential system (1) is defined as

$$ D ^{ + } V ( t , X ) = \limsup_{ h \rightarrow 0 ^{ + } } \frac{ 1 }{ h } \bigl[ V \bigl( t + h , X + h f ( t , X ) \bigr) - V ( t , X ) \bigr]. $$
(2)

The solution of system (1), denoted by \(X: R _{ + } \rightarrow R _{ + } ^{ 4 }\), is a piecewise continuous function on \(( nT, ( n+1 )T ]\), \(n\in Z_{+}\), and \(X(nT^{+})= \lim_{t \rightarrow n T ^{+}} X(t)\) exists. Obviously, the smoothness properties of f guarantee the global existence and uniqueness of solutions of system (1).

Lemma 1

([11, 19,20,21,22])

Let \(V\in V_{0}\) and assume that

$$ \textstyle\begin{cases} D ^{ + } V ( t , X ) \leq g ( t , V ( t , X ) ) , & t \neq n T , \\ V ( t , X ( t ^{ + } ) ) \leq \psi _{ n } ( V ( t , X ) ) ,& t = n T , \end{cases} $$
(3)

where \(g:R_{+}\times R_{+}\rightarrow R\) is continuous in \(( nT, ( n+1 )T ]\times R_{+}\), and for \(u\in R_{+}\), \(n\in Z_{+}\) and \(\lim_{ ( t , v ) \rightarrow ( n T ^{ + } , u ) } g ( t , v ) = g ( n T ^{ + } , u )\) exists and \(\psi _{n}:R_{+} \to R_{+}\) is non-decreasing. Let \(r ( t )\) be the maximal solution of the scalar impulsive differential equation

$$ \textstyle\begin{cases} \dot{ u } ( t ) = g ( t , u ( t ) ) , & t \neq n T , \\ u ( t ^{ + } ) = \psi _{ n } ( u ( t ) ) , & t = n T , \\ u ( 0 ^{ + } ) = u _{ 0 }, \end{cases} $$
(4)

existing on \([ 0,\infty )\). Then \(V ( 0^{+},X_{0} ) \le u_{0}\) implies that \(V ( t,X(t) )\le r ( t )\) for all \(t \ge 0\), where \(X(t)\) is any solution of system (1).

Similarly, when all the directions of the inequalities in Lemma 1 are reversed and \(\psi _{n}\) is non-increasing, \(r ( t )\) will become the minimal solution of the scalar impulsive differential equation. Note that if we have some smoothness conditions of g to guarantee the existence and uniqueness of solutions for (4), then \(u ( t )\) is exactly the unique solution of (4).

Let us consider the basic properties of the following example of impulsive differential equation.

$$ \textstyle\begin{cases} \dot{ u } ( t ) = - d u ( t ) , & t \neq n T , \\ u ( t ^{ + } ) = u ( t ) + p , & t = n T , \\ u ( 0 ^{ + } ) = u _{ 0 } , & u _{ 0 } \geq 0 . \end{cases} $$
(5)

We have the following lemma.

Lemma 2

([23, 24])

System (5) has a unique positive periodic solution \(\tilde{ u } ( t )\) with period T, and for every solution \(u ( t )\) of (5), it follows that \(|u(t)-\tilde{ u } ( t )| \to 0\) as \(t\to \infty \), where

$$ \tilde{ u } ( t ) = \frac{ p e ^{ - d ( t - n T ) } }{ ( 1 - e ^{ - d T } ) } ,\quad\quad\tilde{ u } \bigl( 0 ^{ + } \bigr) = \frac{ p }{ ( 1 - e ^{ - d T } ) }, \quad \textit{and}\quad u ( t ) = \bigg( u _{ 0 } - \frac { p }{ 1 - e ^{ - d T } } \bigg) e ^{ - d t } + \tilde { u } ( t ), $$

with \(t \in ( n T , ( n + 1 ) T ]\), \(n \in Z _{ + } \).

Lemma 3

([18])

Let the function \(m \in PC^{\prime } [ R^{+},R ]\) be left-continuous at \(t_{k}\), \(k\in Z_{+} \) satisfying the inequalities

$$ \textstyle\begin{cases} m ^{ \prime } ( t ) \leq p ( t ) m ( t ) + q ( t ) , & t \geq t _{ 0 } , t \neq t _{ k }, \\ m ( t ^{ + } ) \leq d _{ k } m ( t ) + b _{ k } , & t = t _{ k }, \end{cases} $$
(6)

where \(p,q\in C [ R^{+},R ]\) and \(d_{k}\ge 0\), \(b_{k}\) are constants, then the solution of (6) is bounded by the following inequality

$$ \begin{aligned}[b] m(t)&\le m (t_{0} )\prod _{t_{0}< t_{k}< t}{d_{k}} \exp \biggl( \int _{t_{0}}^{t}{p}(s)\,ds \biggr)+\sum _{t_{0}< t _{k}< t}{ \biggl( \prod_{t_{k}< t_{j}< t}{d_{j}} \exp \biggl( \int _{t_{k}}^{t}{p}(s)\,ds \biggr) \biggr)}b_{k} \\ &\quad {}+ \int _{t_{0}}^{t}{\prod_{s< t_{k}< t}{d_{k}}} \exp \biggl( \int _{s}^{t}{p}(\sigma )\,d\sigma \biggr)q(s)\,ds,\quad t\ge t_{0}. \end{aligned} $$
(7)

Similar results can be obtained when all the directions of the inequalities in (6) are reversed.

4 The existence and boundedness of squirrel-free periodic solutions

In this section, we apply the lemmas presented in the previous section to our main results. To investigate the squirrel-free periodic solution, system (1) becomes

$$ \textstyle\begin{cases} \left . \textstyle\begin{array}{l} \frac{dC(t)}{dt} =\beta C(t) ( 1-\frac{C(t)}{K} )-\mu C(t), \\ \frac{dO(t)}{dt}=\xi O(t) ( 1-\frac{O(t)}{B} ), \\ \frac{dH(t)}{dt}=-dH(t), \end{array}\displaystyle \right \rbrace \quad t\ne nT, \\ \left . \textstyle\begin{array}{l} C ( t^{+} ) =C(t), \\ O ( t^{+} )=O(t), \\ H ( t^{+} )=H(t)+h, \end{array}\displaystyle \right \rbrace \quad t= nT, \end{cases} $$
(8)

with the initial condition \(( C ( 0 ^{+}) , O ( 0 ^{+}) , H ( 0 ^{+})) = ( C _{0}, O _{0}, H _{0})\).

Based on the first and second equations of (8), which are independent of the rest of the equations, we get the positive equilibrium points, namely \(C^{*}={ (\beta -\mu )K}/{\beta }\) and \(O^{*}=B\).

Now consider the subsystem

$$ \textstyle\begin{cases} \frac{dH(t)}{dt} = -dH(t) , & t \neq n T , \\ H ( t^{+} ) = H(t)+h, & t = n T , \\ H ( 0^{+} )=H_{0}. \end{cases} $$
(9)

Using Lemma 2, we have that the solution for \(t \in ( n T , ( n + 1 ) T ] \), \(n \in Z_{+}\) of (9) is \(H ( t ) = ( H _{ 0 } - \frac { h }{ 1 - e ^{ - d T } } ) e ^{ - d t } + \tilde { H } ( t )\) and the positive periodic solution of (9) is \(\tilde{H}(t)={he^{-d(t-nT)}}/{(1-e^{-dT})}\) with the initial value \(\tilde{H}(0^{+})={h}/{(1-e^{-dT})}\). Therefore \(\vert H(t)-\tilde{H}(t) \vert \to 0\) as \(t\to \infty \), i.e., \(H(t)\to \tilde{H}(t)\) as \(t\to \infty \). This implies that \(\tilde{H}(t)\) is globally asymptotically stable.

Assume that \(X(t)\) is a solution of (1). If \(X( 0 ^{+}) \geq 0\), then we have \(X ( t ) \geq 0\) for \(t \geq 0\) while if \(X ( 0 ^{+}) > 0\), then \(X ( t ) > 0\), \(t \geq 0\) [25]. Next, we want to show that all solutions of (1) are uniformly ultimately bounded. From the first equation of (1), it provides

$$ \frac{ d }{ d t } C ( t ) \leq \beta C ( t ) \biggl( 1 - \frac{ C ( t ) }{ K } \biggr), $$

which gives

$$ C ( t ) \leq \max \{ K, C _{ 0 } \} : = M _{ 1 } $$

and

$$ \frac{ d }{ d t } C ( t ) \leq \beta M _{ 1 }. $$

Also, applying this process to the second equation of (1), we have

$$\begin{aligned}& \frac{ d }{ d t } S ( t ) \leq \eta S ( t ) \biggl( 1 - \frac{ S ( t ) }{ C (t) \omega + Q } \biggr) + \lambda C (t) S ( t ), \\& S ( t ) \leq \max \biggl\{ \frac{ M _{ 1 } ^{ 2 } \lambda \omega + ( Q \lambda + \eta \omega ) M _{ 1 } + Q \eta }{ \eta } , S _{ 0 } \biggr\} : = M _{ 2 }, \\& \frac{ d }{ d t } S ( t ) \leq M _{ 1 } M _{ 2 } \lambda + M _{ 2 } \eta . \end{aligned}$$

Similarly, from the rest of the equations of (1), we obtain

$$ \begin{aligned} &O ( t ) \leq \max \biggl\{ \frac{ M _{ 2 } ^{ 2 } \zeta \kappa + B M _{ 2 } \zeta + M _{ 2 } \kappa \xi + B \xi }{ \xi } , O _{ 0 } \biggr\} : = M _{ 3 }, \\ &\frac{ d}{ d t } O ( t ) \leq M _{ 2 } M _{ 3 } \zeta + M _{ 3 } \xi , \end{aligned} $$

and

$$ \begin{aligned} &H ( t ) \leq \frac{ M _{ 2 } c }{ d } : = M _{ 4 }, \\ &\frac{ d }{ d t } H ( t ) \leq c M _{ 2 }. \end{aligned} $$

Define \(V(t)= C(t) + S(t) + O(t) + H(t)\). When \(t\ne nT\), we obtain

$$ \begin{aligned} &D^{+}V(t)+\varLambda V(t)\\ &\quad \le ( \varLambda + \beta ) M _{ 1 } + ( c + \eta + \varLambda ) M _{ 2 } + ( \varLambda + \xi ) M _{ 3 } + \varLambda M _{ 4 } + M _{ 1 } M _{ 2 } \lambda + M _{ 2 } M _{ 3 } \zeta : = M_{0}. \end{aligned} $$

When \(t=nT\), we have \(V(nT^{+})=V(nT)+h\). By applying Lemma 3, when \(t\in ( nT, ( n+1 )T ]\), we obtain

$$\begin{aligned} V ( t ) \leq & V ( 0 ) e ^{ - \varLambda t } + \int _{ 0 } ^{ t } M _{ 0 } e ^{ - \varLambda ( t - s ) } \,d s + \sum_{ 0 < n T < t } h e ^{ - \varLambda ( t - n T ) } \\ =& V ( 0 ) e ^{ - \varLambda t } + \frac{ M _{ 0 } }{ \varLambda } \bigl( 1 - e ^{ - \varLambda t } \bigr) + \sum_{ 0 < n T < t } h e ^{ - \varLambda ( t - n T ) }. \end{aligned}$$

When \(t \rightarrow \infty \), we have

$$ V ( t ) \le {M_{0}}/{\varLambda _{0}}+h {e^{\varLambda T}}/({e^{\varLambda T}-1}):=M_{5}. $$

So \(V (t)\) is uniformly ultimately bounded. Hence, by the definition of \(V (t)\), we have that there exists a constant \(M_{5} > 0\) such that \(C(t)\), \(S(t)\), \(O(t)\), \(H(t) \le M_{5}\) for all t large enough.

5 Stability analysis

In this section we will prove the existence and stability of the only survived squirrel hunter equilibrium \(( 0,0,0,\tilde{H} ( t ) )\) and the squirrel-free equilibrium \(( C^{*},0,O ^{*},\tilde{H} ( t ) )\) under certain conditions.

Theorem 1

Let \(( C ( t ),S ( t ),O ( t ),H ( t ) )\) be any solution of system (1). Then we have the following results.

  1. (1)

    The only survived squirrel hunter equilibrium \(( 0,0,0, \tilde{H} ( t ) )\) is unstable.

  2. (2)

    The squirrel-free periodic solution \(( C^{*},0,O^{*}, \tilde{H} ( t ) )\) is locally asymptotically stable provided that inequalities

    $$\beta < 2 \frac{ \beta C ^{ * } }{ K } + \mu \quad \textit{and}\quad \bigl(C^{*} \lambda -O^{*}\delta +\eta \bigr)T \biggl(\frac{d}{\sigma } \biggr)< h \quad \textit{hold} . $$

Proof

For the local stability of a T-period solution of \(( 0,0,0, \tilde{H} (t ) )\), we consider a small amplitude perturbation of the solution [26] defined by \(\hat{c}(t)=C(t)\), \(\hat{s}(t)=S(t)\), \(\hat{o}(t)=O(t)\), and \(\hat{h}(t)=H(t)-\tilde{h}(t)\), then system (1) can be reduced to the following linearized form:

$$ \textstyle\begin{cases} \left . \textstyle\begin{array}{l} \frac{d\hat{c}(t)}{dt} =(\beta -\mu )\hat{c}(t), \\ \frac{d\hat{s}(t)}{dt}=(- \tilde{H}(t)\sigma +\eta )\hat{s}(t), \\ \frac{d\hat{o}(t)}{dt}=\xi \hat{o}(t),\\ \frac{d\hat{h}(t)}{dt}=c\hat{s}(t)-d(\hat{h}(t) +\tilde{H}(t)), \end{array}\displaystyle \right \rbrace \quad t\ne nT, \\ \left . \textstyle\begin{array}{l} \hat{c} ( t^{+} ) =\hat{c}(t), \\ \hat{s} ( t^{+} )= \hat{s}(t), \\ \hat{o} ( t^{+} )=\hat{o}(t), \\ \hat{h} ( t^{+} )=\hat{h}(t), \end{array}\displaystyle \right \rbrace \quad t= nT. \end{cases} $$
(10)

Let \(\varPhi (t)\) be the fundamental matrix of (10), it must satisfy

$$ \dot{\varPhi }(t)= \begin{bmatrix} \beta -\mu & 0 & 0 & 0 \\ 0 & -\tilde{H}(t)\sigma +\eta & 0 & 0 \\ 0 & 0 & \xi & 0 \\ 0 & c & 0 & -d \end{bmatrix} \varPhi (t) . $$

Linearizing the impulsive conditions of (10), we obtain

$$ \begin{bmatrix} \hat{c} ( t^{+} ) \\ \hat{s} ( t^{+} ) \\ \hat{o} ( t^{+} ) \\ \hat{h} ( t^{+} ) \end{bmatrix} = \begin{bmatrix} 1 & 0 & 0 & 0 \\ 0 & 1 & 0 & 0 \\ 0 & 0 & 1 & 0 \\ 0 & 0 & 0 & 1 \end{bmatrix} \begin{bmatrix} \hat{c}(t) \\ \hat{s}(t) \\ \hat{o}(t) \\ \hat{h}(t) \end{bmatrix} . $$

Thus the monodromy matrix of (10) is

M= [ 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 ] Φ(T),

which implies that

$$ \begin{aligned} &\lambda _{1} = e^{(\beta -\mu )T}, \\ &\lambda _{2} =e^{\int _{0}^{T}(\eta -\tilde{H}(t)\sigma )\,dt}, \\ &\lambda _{3} =e^{\xi T}, \\ &\lambda _{4} =e^{-dT}. \end{aligned} $$

Obviously \(\vert \lambda _{3} \vert >1\), thus \(( 0,0,0, \tilde{H} (t ) )\) is unstable [26].

In order to discuss the stability of \(( C^{*},0,O^{*},\tilde{H} ( t ) )\), let \(C(t)=C^{*}+\hat{c}(t)\), \(S(t)= \hat{s}(t)\), \(O(t)=O^{*}+\hat{o}(t)\), \(H(t)=\tilde{H}(t)+\hat{h}(t)\). Then system (1) can be expressed in the linearized form as follows:

$$ \textstyle\begin{cases} \left . \textstyle\begin{array}{l} \frac{d\hat{c}(t)}{dt} = ( \beta ( 1-\frac{C^{*}}{K} )-\frac{ \beta C^{*}}{K}-\mu )\hat{c}(t)-\gamma C^{*}\hat{s}(t), \\ \frac{d \hat{s}(t)}{dt}=(C^{*}\lambda -\tilde{H}(t)\sigma -O^{*}\delta +\eta ) \hat{s}(t), \\ \frac{d\hat{o}(t)}{dt}= ( \frac{\xi O^{*2}\kappa }{B ^{2}}+\zeta O^{*} )\hat{s}(t)+ ( \xi ( 1- \frac{O^{*}}{B} )-\frac{\xi O^{*}}{B} )\hat{o}(t),\\ \frac{d \hat{h}(t)}{dt}=c\hat{s}(t)-d(\hat{h}(t)+\tilde{H}(t)), \end{array}\displaystyle \right \rbrace \quad t\ne nT, \\ \left . \textstyle\begin{array}{l} \hat{c} ( {{t}^{+}} ) =\hat{c}(t), \\ \hat{s} ( {{t} ^{+}} )=\hat{s}(t), \\ \hat{o} ( {{t}^{+}} )= \hat{o}(t), \\ \hat{h} ( {{t}^{+}} )=\hat{h}(t), \end{array}\displaystyle \right \rbrace \quad t= nT. \end{cases} $$
(11)

Let \(\varPhi (t)\) be the fundamental matrix of (11), it must satisfy

Φ ˙ (t)= [ β ( 1 C K ) β C K μ γ C 0 0 0 C λ H ˜ ( t ) σ O δ + η 0 0 0 ξ O 2 κ B 2 + ζ O ξ ( 1 O B ) ξ O B 0 0 c 0 d ] Φ(t).

Thus the monodromy matrix of (11) is

M= [ 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 ] Φ(T),

which implies that

$$ \begin{aligned} &\lambda _{1} =e^{ ( \beta -2\frac{\beta C^{*}}{K}-\mu )T}, \\ &\lambda _{2} =e^{\int _{0}^{T}{ ( \lambda C^{*}-\tilde{H}(t) \sigma -\delta O^{*}+\eta )}\,dt}, \\ &\lambda _{3} =e^{-\xi T}< 1, \\ &\lambda _{4} =e^{-dT}< 1. \end{aligned} $$

Thus the squirrel eradication periodic solution is locally asymptotically stable if \(\vert \lambda _{1} \vert <1\) and \(\vert \lambda _{2} \vert < 1\), i.e., if \(\beta < 2 \frac{ \beta C ^{ * } }{ K } + \mu \) and \((C^{*} \lambda - O^{*} \delta + \eta ) T (\frac{d}{ \sigma } )< h\). □

In the following, we will discuss the condition for global stability of \(( C^{*},0,O^{*},\tilde{H} ( t ) )\).

Theorem 2

Let \(( C ( t ),S ( t ),O ( t ),H ( t ) )\) be any solution of system (1). Then the squirrel eradication periodic solution \(( C^{*},0,O^{*}, \tilde{H} ( t ) )\) is globally attractive provided that the inequality

$$ \bigl(C^{*} \lambda - O^{*} \delta + \eta \bigr) T \biggl( \frac{d}{\sigma } \biggr)< h \quad \textit{holds}. $$
(12)

Proof

Let \(( C ( t ),S ( t ),O ( t ),H ( t ) )\) be any solution of system (1). From the first equation of (1), we have

$$ \frac{dC(t)}{dt}\le \beta C(t) \biggl( 1-\frac{C(t)}{K} \biggr)- \mu C(t), $$

which implies that \(\lim_{t\to \infty } \sup C(t)={K(\beta -\mu )}/{\beta }:=C^{*}\). Thus, there exists an integer \(n_{1}>0\) such that, for \(t>n_{1}\), we have \(C(t)< C^{*}+ \varepsilon _{0}\), \(\varepsilon _{0}>0\). Similarly, we can obtain \(\lim_{t\to \infty } O(t)=B:=O^{*}\) and \(O(t)< O^{*}+\varepsilon _{0}\). Next consider the subsystem

$$ \textstyle\begin{cases} \frac{ d H ( t ) }{ d t } \geq - d H ( t ) ,& t \neq n T , \\ H ( t ^{ + } ) = H ( t ) + h ,& t = n T . \end{cases} $$
(13)

Applying Lemma 1 and Lemma 2 to (13), we obtain

$$ \tilde{H}(t)= \bigl( {h}/{\big(1-e^{-dT}\big)} \bigr)e^{-d(t-nT)} , \quad nT< t\le(n+1)T,n \in Z_{+}, $$

which is globally asymptotically stable. Then \(\exists n_{2}>n_{1}\), \(t>n _{2}\) such that \(H(t)>\tilde{H}(t)-\varepsilon _{0}\), \(nT< t\le (n+1)T\), \(n>n _{2}\).

Now consider the second equation of system (1) which can be written as

$$ \frac{dS(t)}{dt}\le \bigl( \eta +\lambda C^{*}-\delta O^{*}-\sigma \bigl( \tilde{H}(t)-\varepsilon _{0} \bigr) \bigr) S(t). $$

Integrating this equation between the pulses and after the successive pulse, we can obtain

$$ S\bigl((n+1)T^{+}\bigr)\le S\bigl(nT^{+}\bigr)q, $$

where \(q={{e}^{\int _{nT}^{(n+1)T}{ ( \eta +\lambda C^{*}-\delta O^{*}-\sigma ( \tilde{H}(t)-\varepsilon _{0} ) )}\,dt}}\). When \(\varepsilon _{0}\to 0\), we have \(q<1\) if the following condition

$$ \bigl( C^{*} \lambda - O^{*} \delta + \eta \bigr) T \biggl( \frac{ d }{ \sigma } \biggr) < h $$

holds. Consequently, we have \(S(nT^{+})\le S(0^{+})q^{n}\) and we therefore obtain \(S(t)\to 0\) as \(n\to \infty \). Now let \(\varepsilon _{1}>0\) such that \(0< S(t)< \varepsilon _{1}\), and consider the following subsystem:

$$ \textstyle\begin{cases} \frac{ d H ( t ) }{ d t } \leq c \varepsilon _{ 1 } - d H ( t ) ,& t \neq n T , \\ H ( t ^{ + } ) = H ( t ) + h ,& t = n T . \end{cases} $$
(14)

Also applying Lemma 1 and Lemma 2 to (14), we have that when \(\varepsilon _{1}\to 0\) then \(\tilde{ H } ( t ) = ( \frac{ h }{ 1 - e ^{ - d T } } ) e^{ - d ( t - n T ) }\), \(nT< t<(n+1)T\), \(n\in Z_{+}\), which is globally asymptotically stable. This completes the proof. □

The analysis indicates that it is possible to eliminate squirrels from the coconut farms by pursuing the squirrel hunting strategy. Moreover, an achievement of this strategy is unconditioned on the initial number of squirrels. This implies that the farmers can get rid of the squirrels from their farm if they desire. However, the decision of how many squirrels are to be eliminated may depend on many criteria, and hence zero squirrels might not be a desirable target. In the next section, we conduct a numerical analysis to test our theories derived in this section and discuss the conditions for which we should consider to control the number of the squirrels.

6 Numerical experiments

In this section, we provide the experimental results produced from testing the assumptions related to the strategies of controlling the squirrels. The assumptions are set by varying the number of pulsed squirrel hunters h, but fixing the duration of the pulsing time T to be six months. There are two reasons behind these assumptions, i.e., (1) it is useful for local governments to set budgets and projects to hire squirrel hunters and (2) a duration longer than six months can cause the extent to which the squirrels destroy the coconuts unnecessarily. To investigate the effect of pulsing strategies, we estimate the parameters from the information collected from both primary sources of discussion with coconut farmers and secondary sources of documents detailing the coconut growing practice and behavior of squirrels and barn owls. The obtained parameters are as follows: \(\beta =3\), \(\gamma =0.1\), \(\mu =0.3\), \(\eta =1\), \(\omega =0.2\), \(\lambda =0.005\), \(\delta =0.2\), \(\sigma =0.1\), \(\xi =1\), \(\kappa =0.05\), \(\zeta =0.002\), \(c=0.01\), \(d=0.06\), \(K=3500\), \(Q=100\), and \(B=10\).

By setting \(T=6\), we obtain the threshold number of the pulsed squirrel hunters h approximately from (12) which is equal to 52. We detecte the effects of the pulse by separating the actions into three strategies, namely the strategy of 100, 54, and 25 pulses.

Figure 1(a)–1(f) shows that the squirrels are all eradicated after the first pulse using the first strategy with \(h=100\). However, this strategy may require a large amount of money to hire the hunters and it tends to affect the emotions of the villagers who love squirrels adversely. Also, the situation of eliminating all squirrels from the coconut farm does not fit the biological sense that the species should coexist. Therefore, we proceed through by reducing squirrel hunters and the results are shown in Fig. 2(a)–2(f) for \(h=54\) and Fig. 3(a)–3(f) for \(h=25\). By hunter reduction, the cost of government can be reduced. However, the pulsing strategy of 54 hunters still do not allow squirrels to remain on the farm. When we use the pulsing strategy of 25 hunters, we find that coconuts, squirrels, barn owls, and squirrels hunters live together on the farm.

Figure 1
figure 1

Strategy 1: \(C(0) = 500\), \(S(0) = 20\), \(O(0) = 2\), \(H(0) = 2\), \(h = 100\), \(T = 6\) (a) the dynamic of \(C(t)\), (b) the dynamic of \(S(t)\), (c) the dynamic of \(O(t)\), (d) the dynamic of \(H(t)\), (e) the dynamic of \(C(t)\) and \(S(t)\), (f) the dynamic of \(S(t)\) and \(H(t)\)

Figure 2
figure 2

Strategy 2: \(C(0) = 500\), \(S(0) = 20\), \(O(0) = 2\), \(H(0) = 2\), \(h = 54\), \(T = 6\) (a) the dynamic of \(C(t)\), (b) the dynamic of \(S(t)\), (c) the dynamic of \(O(t)\), (d) the dynamic of \(H(t)\), (e) the dynamic of \(C(t)\) and \(S(t)\), (f) the dynamic of \(S(t)\) and \(H(t)\)

Figure 3
figure 3

Strategy 3: \(C(0) = 500\), \(S(0) = 20\), \(O(0) = 2\), \(H(0) = 2\), \(h = 25\), \(T = 6\) (a) the dynamic of \(C(t)\), (b) the dynamic of \(S(t)\), (c) the dynamic of \(O(t)\), (d) the dynamic of \(H(t)\), (e) the dynamic of \(C(t)\) and \(S(t)\), (f) the dynamic of \(S(t)\) and \(H(t)\)

7 Conclusion

In this work, we presented an impulsive CSOH model for managing squirrels on the coconut farm. The basic properties of the model and the conditions for the squirrel eradication have been provided. For the pulsing strategy, we have assigned a fixed 6-month period for each pulsing action to test the effect of hunters released on the number of squirrels and coconut outputs. The numerical experiments have shown that it is possible to eliminate all the squirrels from the coconut farm. However, the zero squirrel equilibrium has no meaning in the biological sense which requires that all species should be allowed to live together. Therefore, we suggest that the number of squirrels hunters pulsing into a coconut farm should be determined by taking into account the intervention time, expenditure, ecological reasons, and emotional sensitivity of the village members.