Mathematical Modeling of the Evolutionary Dynamics of a Planktonic Community Using a Discrete-Time Model

: This study proposes a discrete-time eco-genetic model of a planktonic community that includes zooplankton and two competing phytoplankton haplotypes with and without a toxicity trait. The Holling type II response function describes predator consumption. We use the Ricker model to consider density limitation and regulation. The model is analytically and numerically studied. The loss of stability of ﬁxed points occurs via the Neimark–Sacker scenario and a cascade of period-doubling bifurcations. The model reveals bistability and multistability. Therefore, the initial conditions can determine which of the coexisting dynamic modes will be attracted. If the competition of haplotypes is weaker than their self-regulation, then the variation in the current densities of community components can shift the observed dynamics, while the evolution direction remains unchanged. The ratio of haplotype ﬁtnesses and predator pressure generally determines the asymptotic genetic composition of phytoplankton. If competition of haplotypes is higher than their self-regulation, then the bistability of monomorphic ﬁxed points occurs when the displacement of one haplotype by another depends on initial conditions. The presence of predators can maintain the genetic polymorphism of the prey. This system shows dynamic modes similar to experimental dynamics: oscillation with delay, long-period antiphase ﬂuctuations, and cryptic cycles emerging due to rapid evolution.


Introduction
Plankton are the basis of the marine food chain, supporting life from invertebrates and crustaceans to fish and large mammals.At the same time, phytoplankton provides more than half of the world's oxygen needs and absorbs carbon dioxide, potentially mitigating one of the causes of global warming [1].Understanding the dynamics of plankton communities is extremely important to predict fisheries [2-5] and the consequences of global climate change [6][7][8][9].Using mathematical models in studies of phytoplankton dynamics is a desired tool for managing aquatic ecosystems and resources by better understanding the processes.Mathematical models allow virtual experiments and studies that may be impossible or undesirable in natural ecological systems.Direct estimates of phytoplankton biomass and tens of thousands of species of herbivorous zooplankton that make up the plankton community are traditionally complex and expensive [10].Recently, biomass estimates of phytoplankton based on satellite observations have become increasingly popular [11][12][13][14].The identification and interpretation of the part of the spectrum emitted by plankton based on satellite monitoring data remains a non-simple challenge [15][16][17][18].In this context, theoretical modeling of plankton abundance dynamics remains relevant, as it allows us to understand the main mechanisms and physical processes that influence the dynamics of plankton and the consequences of its changes for the oceans and atmosphere.
Three-component models (NPZ models) that consider the interconnected dynamics of phytoplankton (P), zooplankton (Z), and critical nutrients (N) are the most popular in modeling plankton ecosystems.Analogous to plants, photosynthesis and nutrient availability determine the growth of phytoplankton.NPZ models, as a rule, consider zooplankton as an herbivorous species that feeds on phytoplankton [14,19].Models of phytoplankton and zooplankton dynamics without explicit consideration of nutrients (the Rosenzweig-MacArthur models) are equally popular [20].Zooplankton consists of herbivorous and predatory species; self-limitation allows one to explicitly or implicitly describe it during modeling [21].
Researchers pay considerable attention to modeling phytoplankton "blooms" characterized by a sharp growth of biomass, while toxic blooms negatively affect aquaculture, coastal tourism, and human health [22,23].The effect of phytoplankton toxicity can vary.Some species produce toxins that poison organisms, inhibiting their growth or leading to death.Others dramatically increase biomass, leading to oxygen starvation and the death of marine inhabitants [24].Delay equations are often applied to model the blooming effect [25,26].Recurrent equations, widely used in modeling populations and communities [27] and allowing us to describe delay effects naturally, are virtually unused in this subject area.
In mathematical models of a predator-prey plankton community without separating phytoplankton into toxic and non-toxic species, the harmful properties of phytoplankton contribute to the zooplankton mortality function [25,26,28,29].Zooplankton, which consume phytoplankton, can obtain toxins that can lead to their death.Modeling the contribution of consuming toxic phytoplankton to zooplankton development uses various functions.The difference between the contribution to birth and mortality rates is not infrequently expressed only in coefficients.An additional equation in the model to separate phytoplankton into toxic and non-toxic species allows us to consider that some phytoplankton species do not release toxins unless damaged [30].At the same time, zooplankton can reduce the level of predation in response to phytoplankton-emitted toxins, thus avoiding the adverse effects of these chemicals.For example, Copepoda are selective in their food choices and avoid consuming phytoplankton that produce toxins [31].
Within the eco-evolutionary modeling approach that has recently gained popularity [32,33], the toxic properties of phytoplankton are its adaptive defense traits against predator grazing.Phytoplankton can evolve rapidly in response to zooplankton predation.Comparing experimental data on the development of the Brachionus calyciflorus rotifer community and the unicellular green alga Chlorella vulgaris in a chemostat and model trajectories confirmed the ability of algae to evolve rapidly by increasing the level of defense against grazing of rotifers and decreasing, as compensation, its birth rate [34].The presence of a trade-off between the ability of algae to defend themselves from predators (or defense) and a decrease in their reproduction rate was usually a key factor in the evolution of the community.In particular, genetic analysis showed the presence of different algal genotypes in the chemostats, experimentally confirming the relationship between algal size, population density, and nutrition.However, a decrease in the reproduction rate did not always accompany the defense.In this context, the toxicity naturally transitions to the food value of algae, since this value of algae with maximum protection against rotifer grazing is zero.This fact is due to the refusal of zooplankton to consume toxic phytoplankton.The unicellular alga Chlamydomonas reinhardtii demonstrates another interesting example of defense.In the presence of rotifers, its protected genotypes form palmelloid cell clusters that are too large for the predator to ingest [35,36].Therefore, the algal food value for zooplankton of the protected phytoplankton genotype is zero.This type of phytoplankton implicitly impacts the community, since competing for resources with non-toxic phytoplankton regulates zooplankton food availability.
Clonal selection models [32] naturally describe the asexual reproduction of algae (including C. vulgaris) and are the most adequate for modeling algae evolution.This is consistent with the results of genetic analysis that reveal multiple clones in laboratory populations [37].In eco-evolutionary clonal selection models, the number of equations de-scribing phytoplankton dynamics equals the number of algal genotypes.Without a detailed study of the eco-evolutionary NPZ model with clonal selection of prey and continuous time, J.F. Fussmann et al. [32] have shown its ability to capture the main features of experimental dynamics.The model reveals the long-period out-of-phase cycles of predator and prey during prey evolution in chemostats with many different algal genotypes.Classical predator-prey non-evolutionary dynamics also emerge [38], which are oscillations with a quarter-period lag of predator dynamics behind prey in chemostats with a single algal genotype.In addition to out-of-phase cycles, so-called cryptic cycles [39] were discovered in which the density of prey remains almost unchanged while the density of predators fluctuates.Such dynamics of the time series give the impression that there is no interspecific interaction between rotifers and algae.However, the rapidly changing genetic composition of prey species can support such cryptic cycles when the defense is not accompanied by a sharp decrease in the growth rate of algae.Thus, the masking effect of rapid evolution is that it can conceal trophic species interactions.Similar dynamics have previously been experimentally discovered in bacteriophage communities [40], which may indicate the presence of hidden cycles in various natural systems with rapid evolution.
In this work, we propose a model with a minimal number of discrete-time equations that considers the basic features of the evolutionary dynamics of a plankton community based on the classical ideology for this field [28,29,41].Without consideration of the phytoplankton phenotypes located in the interval of the trade-off curve between the defense and growth rate of phytoplankton, we focus only on the extreme values of the trait, assuming that two haplotypes with zero food value (toxic) and unity food value (non-toxic) represent phytoplankton.The present study proposes a three-component discrete-time model of the planktonic community, where zooplankton feed on non-toxic phytoplankton and two phytoplankton haplotypes compete with each other for resources.Accordingly, in the community under consideration, "predator-prey" relationships are realized between zooplankton and the non-toxic phytoplankton haplotype, and competition between the two genetic groups of phytoplankton.

A Model of the Dynamics of the Plankton Community Considering the Genetic Composition of Phytoplankton
To describe the dynamics of toxic and non-toxic phytoplankton, we use a discrete-time Ricker's competition model, which considers both interspecies and intraspecies competition [42,43].Note that an argument in favor of applying such models to the analysis of phytoplankton community dynamics is the daily rhythm of such a community since many processes occurring in the phytoplankton community synchronize with circadian rhythms-cyclic fluctuations in the intensity of various biological processes associated with the alternation of day and night.Additionally, the Ricker model correctly describes changes in phytoplankton biomass because they occur through cell division.Additionally, in such a community, the model considers the consumption of phytoplankton by zooplankton.We propose toxicity as an adaptive trait of phytoplankton defense against zooplankton grazing, and such an approach has recently gained popularity [32,33].On the basis of this, we represent phytoplankton by two genetically different groups (or haplotypes): toxic and non-toxic.
where X 1 and X 2 are the abundances of the toxic and non-toxic phytoplankton haplotypes, n is the day number, and A 1 and A 2 are the growth rates of the first and second phytoplankton haplotypes, respectively.Coefficients a 1 and a 2 are the self-limitation, and b 1 and b 2 are parameters characterizing the intensity of competitive interactions between haplotypes.u is the proportion of the abundance of non-toxic phytoplankton consumed by zooplankton, which depends on the biomass of prey and predator and will be formalized later.Furthermore, let us denote X n = X 1,n + X 2,n as the total abundance of phytoplankton, and then p n = X 2,n /X n is the proportion of the non-toxic phytoplankton haplotype, which corresponds to the allele frequency without the toxicity trait in the population.The concentration of the toxic haplotype (or frequency of the other allele) is denoted by q n = X 1,n /X n .Then, based on X 1,n = q n X n and X 2,n = p n X n , we obtain the dynamics of haplotype frequencies in neighboring generations from Equation (1): Now, based on the equality p + q = 1, the dynamics equation of phytoplankton abundance has the form: The average fitness of phytoplankton equals W n = X n + 1 /X n , then Equation (3) can be rewritten as where W 1 and W 2 are the fitnesses of the toxic and nontoxic haplotypes, respectively; as seen from Equation (3), they are determined by the formulas Given all the above, we obtain the following system: , where We also use the Ricker model to describe the dynamics of zooplankton abundance: where Z is the abundance of zooplankton, ω is its self-limitation coefficient, R = rα(X 2,n ) is the growth rate of the predator, and r is its maximum possible value.To describe the feeding process of zooplankton α(X 2,n ) = α(X n p n ), we use the Holling type II trophic function with predator saturation: α(X n p n ) = p n X n /(X* + p n X n ), where X* is the abundance of non-toxic phytoplankton at which the reproductive potential of the predator will be equal to half of the maximum possible.
Predator feeding changes the abundance and genetic composition of prey: is the proportion of non-toxic phytoplankton consumed by zooplankton, and α 0 is the biomass conversion coefficient (α 0 >> 1).Thus, predators influence prey reproduction, competition, and survival.As a result, the community model takes the following form: where Mathematics 2023, 11, 4673 5 of 24 The following substitutions of variables a 2 X→x, ωZ→z and coefficients ρ = b 1 /a 2 , x* = a 2 X*, a 2 α 0 /ω = α, ϕ = b 2 /a 2 , a = a 1 /a 2 transform model ( 5) to a simpler form where Here, x and z describe the relative abundances or densities of phytoplankton and zooplankton, respectively; α is the average number of prey (in relative units) consumed by a relative unit of predator; and x* characterizes the half-saturation constant of the predator.In this case, the predator's half-saturation constant equals x*/p n , and is a dynamic variable since it depends on the density of the non-toxic phytoplankton haplotype.The coefficients ρ, a, and ϕ characterize the competitive relationships between toxic and nontoxic phytoplankton and self-limiting processes.In general, the coefficients ρ and ϕ are coupling coefficients; their equality to zero reduces model (1) to a system of two noninteracting groups of individuals between which there is no competition.In the case of a = 1, the contribution to interspecies competition for limiting resources from each haplotype is the same.
Applying model (6) to describe plankton community dynamics in the case of high predation pressure can lead to negative values of phytoplankton density.To ensure the nonnegativity and boundedness of solutions, we must consider additional conditions for the parameters and initial conditions of the model.In particular, if the expression α•z n x * +p n x n exceeds unity, then, due to overconsumption of prey by the predator, the non-toxic phytoplankton haplotype and zooplankton become extinct.Note that the growth rate and competitiveness of toxic haplotypes determine the success of their development.

Fixed Points of Model (6) and Scenarios of Community Development
One of the scenarios for community development whose dynamics can be described by model (6) is extinction, and it corresponds to the fixed point with coordinates: i.e., the stationary densities of the species equal zero, while the genetic composition can be either monomorphic p = 0, p = 1, or polymorphic 0 < p < 1 at A 1 = A 2 .Note that this scenario is possible at A 1,2 < 1 and follows from the nature of Equation ( 1).The Ricker model demonstrates degeneration when the reproductive potential is less than 1. Figure 1 shows the model (6) trajectories that demonstrate the extinction of the community with different genetic compositions of the phytoplankton population.Figure 1a shows that the community goes extinct at p = 1, when the monomorphic phytoplankton population is represented only by the non-toxic haplotype.Here, initially, the prey population is polymorphic, that is, both genetic groups are present.Then the more adapted haplotype, which is primarily determined by its growth rate A 1 < A 2 , displaces the less adapted competitor and then, due to the influence of factors of different natures, goes extinct.At A 1 > A 2 , other monomorphic solution p = 0, x = 0, z = 0 becomes attractive, where p = 0 corresponds to the community with the toxic phytoplankton haplotype (Figure 1b).With A 1 = A 2 and A 1,2 < 1, Figure 1c shows that the phytoplankton population is polymorphic: variable p stabilizes at some intermediate level different from unity.Obviously, this solution is unstable, and the condition A 1 = A 2 separates the attraction domains of solutions p = 0, x = 0, z = 0, and p = 1, x = 0, z = 0. Another scenario of the development of such a community is the extinction of zooplankton z = 0, while phytoplankton exists.Here, at least one of the parameters A 1 and A 2 is greater than 1.The zooplankton extinction can be caused both by its low growth rate r in combination with limitation processes and by insufficient food (or non-toxic phytoplankton haplotype density).In this regard, in each iteration step of model (6), it is necessary to check the condition 1 − α•z n x * +p n x n > 0. If this is not true, then there has been a complete removal of the non-toxic phytoplankton haplotype, which, in a closed system, will lead to zooplankton extinction.In general, the community without zooplankton can be represented by a monomorphic or polymorphic phytoplankton population.
is represented only by the non-toxic haplotype.Here, initially, the prey population is polymorphic, that is, both genetic groups are present.Then the more adapted haplotype, which is primarily determined by its growth rate  Another scenario of the development of such a community is the extinction of zooplankton 0 = z , while phytoplankton exists.Here, at least one of the parameters A1 and A2 is greater than 1.The zooplankton extinction can be caused both by its low growth rate r in combination with limitation processes and by insufficient food (or non-toxic phytoplankton haplotype density).In this regard, in each iteration step of model (6), it is necessary to check the condition . If this is not true, then there has been a complete removal of the non-toxic phytoplankton haplotype, which, in a closed system, will lead to zooplankton extinction.In general, the community without zooplankton can be represented by a monomorphic or polymorphic phytoplankton population.
The coordinates of the fixed point corresponding to the toxic haplotype monomorphism are as follows: The fixed point corresponding to the non-toxic phytoplankton haplotype monomorphism is: The solution corresponding to polymorphism is: The coordinates of the fixed point corresponding to the toxic haplotype monomorphism are as follows: The fixed point corresponding to the non-toxic phytoplankton haplotype monomorphism is: The solution corresponding to polymorphism is: Fixed points (8) and ( 9) are monomorphic solutions when only one of the phytoplankton haplotypes survives.Solution (10) is polymorphic and corresponds to the coexistence of two competing genetic groups of phytoplankton in the absence of zooplankton.
The results of model (1) can be extrapolated to model (6).In particular, in the works [44][45][46][47] for model (1) it has been shown that if the competition between species is higher than their self-limitation, i.e., a 1 a 2 − b 1 b 2 < 0, then the stable coexistence of two competing populations is impossible.Naturally, this statement is also true for model (6), i.e., if ϕρ > a, then the more adapted haplotype displaces the less adapted one, or there are parametric regions where the current ratio of genetic group densities determines the outcome of evolution, that is, the so-called "bistability trap" arises, when the more adapted haplotype can be displaced by the less adapted one.
Another group of community development scenarios characterizes zooplankton's presence in the ecosystem.Here, the following cases are possible.

1.
The reduced community consists of a predator and a monomorphic prey population, i.e., when the toxic phytoplankton haplotype is not competitive and goes extinct.In this case, the nontrivial monomorphic fixed point of model ( 6) is the solution of the following system: A complete community consists of a predator and a polymorphic prey population, where stationary densities are the solution of the system of equations: Note that systems (11) and ( 12) are nonlinear and, depending on parameter values, have from one to three roots corresponding to the number of nontrivial solutions of model ( 6) (Figure 2).The stability domains of fixed points are separated from each other by lines of transcritical bifurcations, at which stability exchange occurs between trivial and semitrivial, semitrivial and nontrivial solutions.System (11) must have three roots to provide the existence of three fixed points in system (12) for the complete community.The graphical solution of Equation ( 11) for the reduced community demonstrates that as the value of the parameter characterizing the growth rate of the non-toxic phytoplankton haplotype increases, the number of roots changes (Figure 2a-d).Initially, there is one solution, which we denote as 11 since the curves intersect at a single point.Furthermore, with an increase in the values of the coefficient A2, a saddle-node bifurcation occurs, and the unstable point 12 appears; it corresponds to the point of tangency (Figure 2b), which with further growth of the bifurcation parameter splits into stable point 13 and unstable 12; thus, the system has three nontrivial solutions.Then, the first fixed point 11 merges with unstable 12, and the only attractive solution 13 remains, born due to the saddle-node bifurcation (Figure 2d).The presence of a saddle-node bifurcation in the reduced system describing the dynamics of the "non-toxic phytoplankton haplotypezooplankton" community provides the emergence of this bifurcation in the system corresponding to the complete community; it depends on the values of the parameters x*, r, α, and A2 (Figure 2e).For the other coefficients, one can always select values at which tangent bifurcation will occur.Note that this bifurcation can emerge, but the attractive point will be outside the region of feasible values.For a complete community, Figure 2f shows the occurrence of tangent bifurcation and the variable p values that are greater than 1, and as seen, point 13 is outside the domain of feasible values.On the other hand, if we compare Figures 2d,g, we can see that in the first case, solution 13 remains after the collapse of the merging of points 11 and 12, while solution 11 in Figure 2g is attractive, The graphical solution of Equation ( 11) for the reduced community demonstrates that as the value of the parameter characterizing the growth rate of the non-toxic phytoplankton haplotype increases, the number of roots changes (Figure 2a-d).Initially, there is one solution, which we denote as 1 1 since the curves intersect at a single point.Furthermore, with an increase in the values of the coefficient A 2 , a saddle-node bifurcation occurs, and the unstable point 1 2 appears; it corresponds to the point of tangency (Figure 2b), which with further growth of the bifurcation parameter splits into stable point 1 3 and unstable 1 2 ; thus, the system has three nontrivial solutions.Then, the first fixed point 1 1 merges with unstable 1 2 , and the only attractive solution 1 3 remains, born due to the saddlenode bifurcation (Figure 2d).The presence of a saddle-node bifurcation in the reduced system describing the dynamics of the "non-toxic phytoplankton haplotype-zooplankton" community provides the emergence of this bifurcation in the system corresponding to the complete community; it depends on the values of the parameters x*, r, α, and A 2 (Figure 2e).For the other coefficients, one can always select values at which tangent bifurcation will occur.Note that this bifurcation can emerge, but the attractive point will be outside the region of feasible values.For a complete community, Figure 2f shows the occurrence of tangent bifurcation and the variable p values that are greater than 1, and as seen, point 1 3 is outside the domain of feasible values.On the other hand, if we compare Figure 2d,g, we can see that in the first case, solution 1 3 remains after the collapse of the merging of points 1 1 and 1 2 , while solution 1 1 in Figure 2g is attractive, and a variation in one of the parameters, for example, decreasing A 1 or ϕ, will lead to the occurrence of a saddle-node bifurcation.Thus, for some values of the coefficients, the system can have two fixed points, one of which is attractive-the point of intersection of two curves, and the other is the point of their tangency (Figure 2b).Moreover, the curves corresponding to the equations of system ( 12) can intersect at two points, and this is associated with a change in the curve shape due to variation in the values of parameters characterizing the limitation and competition in the phytoplankton population.In particular, at small a, the system can have two nontrivial fixed points, one attractive and the other not (Figure 2h).

Stability Regions of the Fixed Points of Model (6): Evolutionary Scenarios of Community Development
To study the stability of model ( 6) solutions, we write its Jacobian: where Fp = . The traditional method for finding the stability area of fixed points is based on the fact that the roots of the characteristic equation of system (6) belong to the circle |λ| < 1: where S, H, and K are three invariants of the Jacobian matrix (13).The conditions for codimension one bifurcations of system (6) are found based on coefficients of its characteristic polynomial (14) and have the form [48]: 1.
Transcritical bifurcation, T, λ = 1 (the dominant root is real and is equal to 1): H = S + K − 1.At the transcritical bifurcation line, the stationary solutions of the system exchange their stability.However, at λ = 1, a saddle-node bifurcation (SN) can also occur when, in addition to the existing fixed points of the system, an unstable equilibrium arises, which then splits into stable and unstable attractors.

Boundaries of the Stability Regions of the Fixed Points of System (6)
Based on the methodology presented above, the stability region of fixed point ( 7) is shown to be bounded by the transcritical bifurcation lines A 1 = 1 and A 2 = 1, at which the trivial (7) and semitrivial ( 8) and ( 9) solutions exchange their stabilities.Consequently, in the parameter plane (A 1 , A 2 ), the stability domain of the trivial fixed point is a unit square.Obviously, the extinction of both phytoplankton haplotypes with the following zooplankton elimination is observed for any values of the other parameters if A 1,2 < 1. Dividing the square along the bisector of the first coordinate angle, one can separate the parametric region where phytoplankton is represented only by the toxic haplotype from the one where only by the non-toxic haplotype by the time of phytoplankton elimination.The ratio of the parameters A 1 and A 2 determines this.
The stability domain of monomorphic fixed point p = 0, x = x 1 = (ln A 1 )/a, z = 0 (8) is formed by transcritical bifurcation lines A 1 = 1 and A 2 = A 1 ϕ/a and boundary A 1 = e 2 , whose crossing leads to period-doubling bifurcation.For the other monomorphic solution p = 1, x = x 2 = ln A 2 , z = 0 (9), the boundaries of its stability area are set by the T curves: , the stability region is bounded by the transcritical bifurcation lines A 2 = 1 and A 1 = A 2 ρ and the period-doubling bifurcation line PD: A 2 = e 2 .At r > 0, the stability domain of solution ( 9) is formed only by lines of transcritical bifurcations, and the larger the r value, the narrower the stability area.In particular, at very high r values, the boundary given by A 2 = exp(x*/(r − 1)) tends to A 2 = 1.
For polymorphic point (10), where both phytoplankton haplotypes coexist without zooplankton (z), one of the roots of the characteristic equation is a(1−r) that divides the stability regions of solutions (10) and (12).The Neimark-Sacker bifurcation does not occur in this case.Solution (10) loses its stability through a period-doubling bifurcation when the condition does not hold:ln From the point of view of evolutionary processes, the main interest is in the stability and mechanisms of its loss by nontrivial fixed points ( 11) and (12), which correspond to the coexistence of phytoplankton and zooplankton; in the first solution, the phytoplankton population is monomorphic, and in the second solution it is polymorphic.The Jacobian (13) at point (11) takes the form: It corresponds to the following characteristic equation: One of the eigenvalues of the polynomial is λ 1 = w 1 w 2 , and the other two are the roots of the quadratic equation.Based on system (11), we obtain the line of transcritical bifurcation, separating fixed points (11) and (12), which in parametric form is the following: To determine the nature of stability loss by solutions ( 11) and ( 12), it is reasonable to consider the behavior of bifurcation lines and the stationary solution z in the plane A 2 , z ar(exp(z)−r) , respectively.Note that such a graph is essentially a bifurcation diagram showing the values of the fixed point z with corresponding bifurcation transitions (Figure 3).
Figure 3 shows that, depending on the value of the parameter A 2 , the number of fixed points corresponding to both the reduced community represented by the non-toxic phytoplankton haplotype and zooplankton (Figure 3a) and the complete community (Figure 3b,c) changes: a specific value of A 2 can correspond to one to three values of z.Note that the stability loss of one of the roots is always realized through a cascade of period-doubling bifurcations: the solution line z intersects the PD curve at A 2 = A 2 PD .In the range where the system has three solutions, one can see that a tangent bifurcation occurs; the SN curve intersects the solution line, while the third root lies in the instability region.The increase in A 2 values leads to the emergence of both direct (at A 2 = A 2 NS+ ) and inverse (at A 2 = A 2 NS− ) Neimark-Sacker bifurcations.First, the fixed point loses stability by forming an invari-ant curve, which collapses with higher values of the bifurcation parameter, and only the attracting equilibrium remains.If the tangent bifurcation occurs after the collapse of the invariant curve or before the Neimark-Sacker bifurcation emergence, then bistability is observed; there are two stable nontrivial equilibria in the system, and which of them will be attractive is determined by the initial conditions (Figure 3a,b).In particular, Figure 3a,b show that two fragments of the solution curve lie in the stability area.If tangent bifurcation occurs before the collapse of the invariant curve, then an unstable fixed point undergoes a saddle-node bifurcation; two of the three nontrivial roots are located outside the stability region (Figure 3c). Figure 3 shows that, depending on the value of the parameter А2, the number of fixed points corresponding to both the reduced community represented by the non-toxic phytoplankton haplotype and zooplankton (Figure 3a) and the complete community (Figure 3b,c) changes: a specific value of А2 can correspond to one to three values of z .
Note that the stability loss of one of the roots is always realized through a cascade of period-doubling bifurcations: the solution line z intersects the PD curve at А2 = А2 PD .In the range where the system has three solutions, one can see that a tangent bifurcation occurs; the SN curve intersects the solution line, while the third root lies in the instability region.The increase in А2 values leads to the emergence of both direct (at А2 = А2 NS+ ) and inverse (at А2 = А2 NS− ) Neimark-Sacker bifurcations.First, the fixed point loses stability by forming an invariant curve, which collapses with higher values of the bifurcation parameter, and only the attracting equilibrium remains.If the tangent bifurcation occurs after the collapse of the invariant curve or before the Neimark-Sacker bifurcation emergence, then bistability is observed; there are two stable nontrivial equilibria in the system, and which of them will be attractive is determined by the initial conditions (Figure 3a,b).In particular, Figure 3a,b show that two fragments of the solution curve lie in the stability area.If tangent bifurcation occurs before the collapse of the invariant curve, then an unstable fixed point undergoes a saddle-node bifurcation; two of the three nontrivial roots are located outside the stability region (Figure 3c).

Stability Regions of Fixed Points of System (6)
The stability analysis presented above can be generalized by constructing stability domains for all fixed points of system (6) in the parameter plane (A1, A2) (Figure 4).We numerically found the period-doubling and the Neimark-Sacker bifurcation lines for solutions (11) and (12).
Figure 4a shows a parametric portrait of the community without zooplankton; there is a large area of parameter values where phytoplankton is polymorphic (both haplotypes coexist).The picture is symmetrical, as the coefficients ρ and φ, characterizing the competitive relationships between different genetic groups of phytoplankton, are the same, and the parameter a, corresponding to self-limitation, equals 1.At r = 0, the stability region coincides with the results published in [43] and demonstrates the possible scenarios of the evolution of competing phytoplankton haplotypes without zooplankton.Furthermore, by increasing r, we can analyze the changes occurring in the community

Stability Regions of Fixed Points of System (6)
The stability analysis presented above can be generalized by constructing stability domains for all fixed points of system (6) in the parameter plane (A 1 , A 2 ) (Figure 4).We numerically found the period-doubling and the Neimark-Sacker bifurcation lines for solutions (11) and (12).
Figure 4a shows a parametric portrait of the community without zooplankton; there is a large area of parameter values where phytoplankton is polymorphic (both haplotypes coexist).The picture is symmetrical, as the coefficients ρ and ϕ, characterizing the competitive relationships between different genetic groups of phytoplankton, are the same, and the parameter a, corresponding to self-limitation, equals 1.At r = 0, the stability region coincides with the results published in [43] and demonstrates the possible scenarios of the evolution of competing phytoplankton haplotypes without zooplankton.Furthermore, by increasing r, we can analyze the changes occurring in the community with the presence of another trophic level.In particular, the growth of r narrows the attraction areas of solutions ( 9) and (10).Note that the stability loss in Figure 4a-c,e,f occurs through a perioddoubling bifurcation.However, at higher values of r, solutions ( 11) and ( 12) can lose stability according to the Neimark-Sacker scenario; Figure 4d shows characteristic discontinuities within the stability region: these boundaries were found numerically.Here, because of the bistability associated with several attracting solutions, the initial condition can influence the type of parametric portrait.The increase in prey consumption by the predator expands the range of parameter values where solution ( 12) is stable, while increasing the half-saturation constant leads to reverse changes due to the emergence of a vast zone where zooplankton goes extinct and only phytoplankton remains, maintaining its genetic variety.
found numerically.Here, because of the bistability associated with several attracting so lutions, the initial condition can influence the type of parametric portrait.The increase in prey consumption by the predator expands the range of parameter values where solu tion ( 12) is stable, while increasing the half-saturation constant leads to reverse change due to the emergence of a vast zone where zooplankton goes extinct and only phyto plankton remains, maintaining its genetic variety.At φρ < a, the stability regions of solutions ( 8) and ( 9) do not intersect (Figure 4 domains 2 and 3).However, at φρ = a, they have a common border A1 = A2 ρ (Figure 5a) and at φρ > a, their stability domains overlap each other (Figure 5b), which leads to bi stability and multistability.Figure 5   At ϕρ < a, the stability regions of solutions ( 8) and ( 9) do not intersect (Figure 4, domains 2 and 3).However, at ϕρ = a, they have a common border A 1 = A 2 ρ (Figure 5a), and at ϕρ > a, their stability domains overlap each other (Figure 5b), which leads to bistability and multistability.Figure 5 shows the arrangement features of parametric areas corresponding to different community development scenarios depending on zooplankton reproduction and competitive relationships between different phytoplankton haplotypes.The lines of transcritical bifurcations: ) and curve (15) form the areas.
If ϕρ ≥ a, polymorphism in the phytoplankton population does not arise in the community without a predator, i.e., the more adapted haplotype always displaces the less adapted one, or the bistability of monomorphic states occurs when the current ratio of genetic group densities determines the outcome of evolution.The presence of a predator leads to the possibility of the successful coexistence of competing haplotypes in some regions of the parameter space (Figure 5c).In general, in the community with a predator, the scenario, corresponding to one haplotype displacing the other, presents, but here, the displacement conditions are associated with both intraspecies competition between phytoplankton haplotypes and predator-prey interactions.At the same time, changing the values of the parameter ρ affects the type of parametric portraits of the system either without a predator or with small r.The higher the reproductive potential of the predator r, the wider the area with the polymorphic prey population.Note that the bistability of monomorphic states corresponding to different genetic compositions in the phytoplankton population also occurs in the community with a predator.However, if the phytoplankton haplotype with the toxicity trait displaces the other haplotype, the zooplankton will go extinct in the long run.If the haplotype without the toxicity trait displaces its competitor, then the coexistence of predator and prey will continue.Thus, variations in the current genetic composition of phytoplankton, for example, due to the influence of environmental factors, can change the direction of evolution, entailing a change in the community development scenario.If φρ ≥ a, polymorphism in the phytoplankton population does not arise in the community without a predator, i.e., the more adapted haplotype always displaces the less adapted one, or the bistability of monomorphic states occurs when the current ratio of genetic group densities determines the outcome of evolution.The presence of a predator leads to the possibility of the successful coexistence of competing haplotypes in some regions of the parameter space (Figure 5c).In general, in the community with a predator, the scenario, corresponding to one haplotype displacing the other, presents, but here, the displacement conditions are associated with both intraspecies competition between phytoplankton haplotypes and predator-prey interactions.At the same time, changing the values of the parameter ρ affects the type of parametric portraits of the system either without a predator or with small r.The higher the reproductive potential of the predator r, the wider the area with the polymorphic prey population.Note that the bistability of monomorphic states corresponding to different genetic compositions in the phytoplankton population also occurs in the community with a predator.However, if the phytoplankton haplotype with the toxicity trait displaces the other haplotype, the zooplankton will go extinct in the long run.If the haplotype without the toxicity trait displaces its competitor, then the coexistence of predator and prey will continue.Thus, variations in the current genetic composition of phytoplankton, for example, due to the influence of environmental factors, can change the direction of evolution, entailing a change in the community development scenario.

Evolutionary Scenarios for Community Development
The results obtained for stability analysis allow us to determine the evolutionary scenarios for the planktonic community depending on the values of parameters characterizing the fitnesses of phytoplankton haplotypes.The generalization of possible evolutionary development scenarios is presented in Table 1.

Evolutionary Scenarios for Community Development
The results obtained for stability analysis allow us to determine the evolutionary scenarios for the planktonic community depending on the values of parameters characterizing the fitnesses of phytoplankton haplotypes.The generalization of possible evolutionary development scenarios is presented in Table 1.
Table 1.Evolutionary development scenarios for the plankton community, depending on the parameter values.

Parameter Value Ranges
Evolutionary Scenarios of Community Development

Parameter Value Ranges Evolutionary Scenarios of Community Development
Monomorphism 2 , zooplankton becomes extinct Polymorphism 3 , complete "phytoplankton-zooplankton" community Monomorphism 1 , zooplankton survives and develops Polymorphism 3 , zooplankton becomes extinct Bistability of monomorphic states: displacement of one haplotype by another depends on initial conditions, zooplankton becomes extinct Bistability of monomorphic states: displacement of haplotype x 2 leads to zooplankton extinction, otherwise zooplankton survives and develops ln Monomorphism 1 , zooplankton survives and develops Monomorphism 2 , zooplankton becomes extinct

Bistability and Multistability in System (6)
At ϕρ < a and z = 0, both monomorphic (11) and polymorphic (12) solutions demonstrate bistability (Figure 3).Let us examine this bistability in more detail by supplementing the graphs in Figure 3 with bifurcation diagrams constructed for specific initial conditions (Figure 6).
The bifurcation diagrams show sharp changes in dynamic modes, which is the identification of bistability and/or multistability.In particular, the intersection of line SN with the solution curve corresponds to a saddle-node bifurcation; as a result, we observe a transition from one dynamic mode to another.The dynamic behavior picture for communities represented by zooplankton with monomorphic phytoplankton without toxicity traits (A 1 = 0) and zooplankton with polymorphic phytoplankton (A 1 = 0) is similar (Figure 6).
The evolution of the dynamic modes of model ( 6) with increasing values of parameter A 2 can be described as follows: stable solution 1 1 exists and then loses its stability via the Neimark-Sacker bifurcation after the invariant curve collapses, and solution 1 1 becomes stable (Figure 6a,c).Against the background of this fixed point, a tangent bifurcation results in the appearance of an unstable solution 1 2 and a stable solution 1 3 , that loses stability through a cascade of period-doubling bifurcations with increasing A 2 .Note that in the vicinity of the tangent bifurcation at higher A 2 , solution 1 1 continues to exist and attract until the merger of 1 1 and 1 2 .As a result, only solution 1 3 remains.If stable solution 1 1 does not yet lose stability via the Neimark-Sacker bifurcation, but attractive solution 1 3 appears due to saddle-node bifurcation, then the bistability of nontrivial fixed points is observed (Figure 6a-c).

Bistability and Multistability in System (6)
At φρ < a and 0 ≠ z , both monomorphic (11) and polymorphic (12) solutions demonstrate bistability (Figure 3).Let us examine this bistability in more detail by supplementing the graphs in Figure 3 with bifurcation diagrams constructed for specific initial conditions (Figure 6).The bifurcation diagrams show sharp changes in dynamic modes, which is the identification of bistability and/or multistability.In particular, the intersection of line SN with the solution curve corresponds to a saddle-node bifurcation; as a result, we observe a transition from one dynamic mode to another.The dynamic behavior picture for communities represented by zooplankton with monomorphic phytoplankton without toxicity traits (A1 = 0) and zooplankton with polymorphic phytoplankton (A1 ≠ 0) is similar (Figure 6).
The evolution of the dynamic modes of model ( 6) with increasing values of parameter A2 can be described as follows: stable solution 11 exists and then loses its stability via the Neimark-Sacker bifurcation after the invariant curve collapses, and solution 11 becomes stable (Figure 6a,c).Against the background of this fixed point, a tangent bifurcation results in the appearance of an unstable solution 12 and a stable solution 13, that loses stability through a cascade of period-doubling bifurcations with increasing A2.Note that in the vicinity of the tangent bifurcation at higher A2, solution 11 continues to exist and attract until the merger of 11 and 12.As a result, only solution 13 remains.If stable solution 11 does not yet lose stability via the Neimark-Sacker bifurcation, but attractive solution 13 appears due to saddle-node bifurcation, then the bistability of nontrivial fixed points is observed (Figure 6a-c).
On the other hand, the tangent bifurcation leading to the appearance of 13 may occur before the inverse Neimark-Sacker bifurcation, resulting in the invariant curve collapsing and only the attracting fixed point 11 remaining.In this case, the stable solution On the other hand, the tangent bifurcation leading to the appearance of 1 3 may occur before the inverse Neimark-Sacker bifurcation, resulting in the invariant curve collapsing and only the attracting fixed point 1 1 remaining.In this case, the stable solution 1 3 coexists with quasi-periodic oscillations Q 1 (Figure 6d).However, the stable nontrivial fixed point 1 1 can also coexist with irregular oscillations.In particular, Figure 6b-d show that the oscillations denoted Q* arise before losing stability of point 1 1 via the Neimark-Sacker bifurcation: irregular dynamic modes occur before the bifurcation value A 2 NS+ .As a result, 1 1 and Q* can coexist (Figure 7).We constructed basins of attraction in the space of initial conditions (p 0 , z 0 ) to study the influence of genetic composition on the scenarios of community evolution.
At low values of the growth rate of non-toxic phytoplankton, for any initial conditions from the feasible region, the system's dynamics stabilize.Then, a cycle with period 11, which is the solution of the 11-time iterated system (6), occurs (Figure 7a).At higher reproductive potential, along with a stable state and cycle with period 11, extensive regions of irregular Q* dynamics arise (Figure 7b).Note that we counted 15 thousand iterations of mapping (6) to check whether the quasi-periodic dynamics is not a stabilized 11-cycle.At a higher growth rate of the phytoplankton haplotype without toxicity, the basins of attraction demonstrate the coexistence of quasi-periodic oscillations Q* and the single fixed point 1 1 .
A further increase in A 2 reduces the attraction basin of fixed point 1 1 (Figure 7d), and it loses stability via the Neimark-Sacker bifurcation (Figure 7e).As a result, the system demonstrates quasi-periodic oscillations with different phases for the various initial conditions (Figure 7c).To distinguish different phases of quasi-periodic oscillations, we selected one time series/trajectory and then calculated the correlation coefficients for it and others in each point of the parametric plane.It allowed the identification of areas with similar and distinct dynamics in region Q* (Figure 7c).Note that the loss of stability of point 1 1 leads to the appearance of an unstable curve Q 1 , merging with Q*.This process is presented in phase portrait 7f using an initial condition near point 1 1 .Consequently, subcritical Neimark-Sacker bifurcation occurs.In other words, the attraction basin of Q 1 collapses, and Q* captures the entire phase space (Figure 7c).
13 coexists with quasi-periodic oscillations Q1 (Figure 6d).However, the stable nontr fixed point 11 can also coexist with irregular oscillations.In particular, Figure 6b-d s that the oscillations denoted Q* arise before losing stability of point 11 via the Neim Sacker bifurcation: irregular dynamic modes occur before the bifurcation value A2 NS a result, 11 and Q* can coexist (Figure 7).We constructed basins of attraction in the s of initial conditions (p0, z0) to study the influence of genetic composition on the scena of community evolution.At low values of the growth rate of non-toxic phytoplankton, for any initial co tions from the feasible region, the system's dynamics stabilize.Then, a cycle with pe 11, which is the solution of the 11-time iterated system (6), occurs (Figure 7a).At hi reproductive potential, along with a stable state and cycle with period 11, extensiv gions of irregular Q* dynamics arise (Figure 7b).Note that we counted 15 thousand ations of mapping (6) to check whether the quasi-periodic dynamics is not a stabil 11-cycle.At a higher growth rate of the phytoplankton haplotype without toxicity basins of attraction demonstrate the coexistence of quasi-periodic oscillations Q* and single fixed point 11.
A further increase in A2 reduces the attraction basin of fixed point 11 (Figure and it loses stability via the Neimark-Sacker bifurcation (Figure 7e).As a result, the tem demonstrates quasi-periodic oscillations with different phases for the various in conditions (Figure 7c).To distinguish different phases of quasi-periodic oscillations selected one time series/trajectory and then calculated the correlation coefficients f and others in each point of the parametric plane.It allowed the identification of a with similar and distinct dynamics in region Q* (Figure 7c).Note that the loss of stab of point 11 leads to the appearance of an unstable curve Q1, merging with Q*.This cess is presented in phase portrait 7f using an initial condition near point 11.Co At the bifurcation value A 2 = A 2 SN , a saddle-node bifurcation appears, leading to the emergence of a new stable point 1 3 , which is attractive in a significant part of the initial condition space (Figure 7e).By increasing A 2 , we observe the bistability of two nontrivial fixed points, one of which is the result of a saddle-node (tangential) bifurcation, and its basin of attraction is substantially larger than the other (Figure 7e).Note that with further growth of parameter A 2 values, this stable point captures the entire space of initial conditions and then loses stability through a cascade of period-doubling bifurcations.
To investigate the multistability depicted in Figure 7, we constructed dynamic mode maps in the ranges of parameter values r and A 2 where quasi-periodic dynamics emerge (Figure 8).The maps were generated as follows: at each point (corresponding to a single pixel), 5000 iterations of the mapping were calculated.Based on the results of the last 500 steps, the period of the limit cycle was determined, and the point was colored according to the period obtained.
Figure 8 illustrates abrupt transitions between different dynamic modes, namely, multistability caused by the coexistence of a stable fixed point 1 1 and quasi-periodic oscillations Q* or 1 1 /Q 1 with 1 3 (Figure 6b-d).Consequently, a variation in initial conditions can change the area with quasi-periodic and periodic dynamics.As observed, the region of quasi-periodic dynamics located within the stability domain of the nontrivial fixed point is bounded from above by two intersecting curves, forming an angle, which is also indicative of multistability, as the system "abruptly" transitions from Q 1 oscillations to stable point 1 3 , as depicted in the bifurcation diagram shown in Figure 6d.In other words, a variation in initial conditions can both expand and contract the area of quasiperiodic dynamics.Accordingly, the "upper" boundary of the quasi-periodic oscillation region, generated as the stability loss by fixed point 1 1 , must be higher than that represented in Figure 8, smoothing out the angle.Conversely, the lower boundary can be higher, as point 1 1 loses stability later than Q* emerges.
basin of Q1 collapses, and Q* captures the entire phase space (Figure 7c).
At the bifurcation value A2 = A2 SN , a saddle-node bifurcation appears, leading to the emergence of a new stable point 13, which is attractive in a significant part of the initial condition space (Figure 7e).By increasing A2, we observe the bistability of two nontrivial fixed points, one of which is the result of a saddle-node (tangential) bifurcation, and its basin of attraction is substantially larger than the other (Figure 7e).Note that with further growth of parameter A2 values, this stable point captures the entire space of initial conditions and then loses stability through a cascade of period-doubling bifurcations.
To investigate the multistability depicted in Figure 7, we constructed dynamic mode maps in the ranges of parameter values r and A2 where quasi-periodic dynamics emerge (Figure 8).The maps were generated as follows: at each point (corresponding to a single pixel), 5000 iterations of the mapping were calculated.Based on the results of the last 500 steps, the period of the limit cycle was determined, and the point was colored according to the period obtained.6b-d).Consequently, a variation in initial conditions can change the area with quasi-periodic and periodic dynamics.As observed, the region of quasi-periodic dynamics located within the stability domain of the nontrivial fixed point is bounded from above by two intersecting curves, forming an angle, which is also indicative of multistability, as the system "abruptly" transitions from Q1 oscillations to stable point 13, as depicted in the bifurcation diagram shown in Figure 6d.In other words, a variation in initial conditions can both expand and contract the area of quasiperiodic dynamics.Accordingly, the "upper" boundary of the quasi-periodic oscillation region, generated as the stability loss by fixed point 11, must be higher than that represented in Figure 8, smoothing out the angle.Conversely, the lower boundary can be higher, as point 11 loses stability later than Q* emerges.
Thus, when φρ < a in the case of polymorphism, the variation in the current composition of the community can alter the observed dynamics mode, which changes the densities of different phytoplankton haplotypes.However, the evolution direction remains the same.At φρ < α in the case of monomorphism with a non-toxic haplotype of phytoplankton, variations in the current densities of algae and zooplankton can also lead to a shift in the dynamics mode.
At φρ ≥ a, system (6) reveals the bistability of monomorphic ( 8) and ( 9) states (Figure 5b,d, Table 1), as well as monomorphic (8) and polymorphic (11) solutions (Figure 5d-f, Table 1).We consider this bistability using genetic composition maps of the prey population with various initial conditions for the parametric portrait shown in Figure 5e Thus, when ϕρ < a in the case of polymorphism, the variation in the current composition of the community can alter the observed dynamics mode, which changes the densities of different phytoplankton haplotypes.However, the evolution direction remains the same.At ϕρ < α in the case of monomorphism with a non-toxic haplotype of phytoplankton, variations in the current densities of algae and zooplankton can also lead to a shift in the dynamics mode.
At ϕρ ≥ a, system (6) reveals the bistability of monomorphic ( 8) and ( 9) states (Figure 5b,d, Table 1), as well as monomorphic (8) and polymorphic (11) solutions (Figure 5d-f, Table 1).We consider this bistability using genetic composition maps of the prey population with various initial conditions for the parametric portrait shown in Figure 5e (Figure 9).As seen, variations in initial conditions with specific values of population parameters can change the evolution direction and, consequently, the dynamics mode (Figure 9e,f).Such multistability is caused by the system having several attracting solutions simultaneously (Figure 9c-h).In the case of the stability of two monomorphic fixed points, the "bistability trap" occurs, where a more promising genetic form cannot displace a weaker competitor (Figure 9c) [49].However, a drop in population size due to an external factor effect known as a "population bottleneck" [50] can lead to random changes in genetic composition and the transition of the population from one monomorphic state to another more promising but destabilizing dynamic.
Variation in current population sizes in the complete community can lead to the displacement of a phytoplankton haplotype with toxicity traits (Figure 9d,h) due to the bistability of monomorphic and polymorphic solutions.Specifically, Figure 9g shows that in the case of zooplankton presence, system (6) has three fixed points, two of which are attractive (Figure 9h). Figure 9 also demonstrates that the presence of predators contributes to the maintenance of genetic polymorphism in the prey population, particularly the fixation of the haplotype with toxicity traits.In this context, our findings are in agreement with the hypothesis proposed in the study by X. Irigoien et al. (2005) [51].This hypothesis is based on natural observations and suggests that blooming species are capable of avoiding predation by microzooplankton during the early stages of blooms.
(Figure 9e,f).Such multistability is caused by the system having several attracting solutions simultaneously (Figure 9c-h).In the case of the stability of two monomorphic fixed points, the "bistability trap" occurs, where a more promising genetic form cannot displace a weaker competitor (Figure 9c) [49].However, a drop in population size due to an external factor effect known as a "population bottleneck" [50] can lead to random changes in genetic composition and the transition of the population from one monomorphic state to another more promising but destabilizing dynamic.Variation in current population sizes in the complete community can lead to the displacement of a phytoplankton haplotype with toxicity traits (Figure 9d,h) due to the bistability of monomorphic and polymorphic solutions.Specifically, Figure 9g shows that in the case of zooplankton presence, system (6) has three fixed points, two of which are attractive (Figure 9h). Figure 9 also demonstrates that the presence of predators contributes to the maintenance of genetic polymorphism in the prey population, particularly the fixation of the haplotype with toxicity traits.In this context, our findings are in agreement with the hypothesis proposed in the study by X. Irigoien et al. (2005) [51].This hypothesis is based on natural observations and suggests that blooming species are capable of avoiding predation by microzooplankton during the early stages of blooms.

Dynamic Modes of Model (6)
System (6) comprises a pair of Ricker models coupled by the Holling type-II function.The dynamics of the Ricker model are well known: as the parameter characterizing the population growth rate increases, a cascade of period-doubling bifurcations leading to chaos is observed [42].However, in the proposed model, the Neimark-Sacker scenario

Dynamic Modes of Model (6)
System (6) comprises a pair of Ricker models coupled by the Holling type-II function.The dynamics of the Ricker model are well known: as the parameter characterizing the population growth rate increases, a cascade of period-doubling bifurcations leading to chaos is observed [42].However, in the proposed model, the Neimark-Sacker scenario of stability loss arises.Note that the "predator-prey" interaction gives quasi-periodic oscillations.The changes in the community development scenarios during evolution, depending on the values of system (6) parameters, are shown in Figure 10.
Figure 10 illustrates that a nontrivial fixed point can lose stability through the Neimark-Sacker scenario and a cascade of period-doubling bifurcations.If the system has a single nontrivial solution and the value of predator growth rate is such that the Neimark-Sacker bifurcation has not yet occurred, an increase in the birth rate of zooplankton results in the appearance of a two-cycle, which evolves toward chaos through a cascade of perioddoubling bifurcations.This scenario is possible due to the loss of stability of the fixed point when the growth of parameter r leads to crossing the bifurcation boundary on which one of the eigenvalues of the Jacobian matrix of system (6) becomes equal to (−1).If the Neimark-Sacker bifurcation occurs, then with higher values of the bifurcation parameter, the only nonzero solution loses stability through this scenario, forming an invariant curve that then "collapses", and the nontrivial fixed point becomes stable again.Furthermore, a saddle-node bifurcation occurs, and a new solution arises, losing stability through a cascade of period-doubling bifurcations.This dynamic mode evolution is depicted in Figure 6a.The presence of inverse Neimark-Sacker bifurcation suggests that an increase in the prey growth rate can stabilize irregular predator dynamics.With higher values of r, when the system has three nontrivial fixed points due to saddle-node bifurcation, the dynamics are similar but complicated by multistability (Figure 10c).
of stability loss arises.Note that the "predator-prey" interaction gives quasi-periodic oscillations.The changes in the community development scenarios during evolution, depending on the values of system (6) parameters, are shown in Figure 10. Figure 10 illustrates that a nontrivial fixed point can lose stability through the Neimark-Sacker scenario and a cascade of period-doubling bifurcations.If the system has a single nontrivial solution and the value of predator growth rate is such that the Neimark-Sacker bifurcation has not yet occurred, an increase in the birth rate of zooplankton results in the appearance of a two-cycle, which evolves toward chaos through a cascade of period-doubling bifurcations.This scenario is possible due to the loss of stability of the fixed point when the growth of parameter r leads to crossing the bifurcation boundary on which one of the eigenvalues of the Jacobian matrix of system (6) becomes equal to (−1).If the Neimark-Sacker bifurcation occurs, then with higher values of the bifurcation parameter, the only nonzero solution loses stability through this scenario, forming an invariant curve that then "collapses", and the nontrivial fixed point becomes stable again.Furthermore, a saddle-node bifurcation occurs, and a new solution arises, losing stability through a cascade of period-doubling bifurcations.This dynamic mode evolution is depicted in Figure 6a.The presence of inverse Neimark-Sacker bifurcation suggests that an increase in the prey growth rate can stabilize irregular predator dynamics.With higher values of r, when the system has three nontrivial fixed points due to saddle-node bifurcation, the dynamics are similar but complicated by multistability (Figure 10c).Analyzing the impact of parameter values on the system's dynamic behavior shows that an increase in the coefficient characterizing the predator's pressure on the prey population leads to the emergence of long-periodic delayed oscillations at a lower growth rate of the predator population (Figure 10e,f).Higher values of the half-saturation constant significantly expand the stability domain of the nontrivial fixed point, resulting in quasiperiodic oscillations at higher values of the predator's reproductive potential.Note that the non-smooth Neimark-Sacker bifurcation line suggests the maintenance of multistability due to the coexistence of several nontrivial fixed points in the system.
Maps constructed in the parameter space (r, A 2 ) allow us to analyze the changes in community dynamics caused by predator-prey interactions (Figure 10d-f).With a zero reproductive potential of the predator (r = 0), the abscissa axis corresponds to the dynamic modes of a community, represented by competing genetic groups of phytoplankton without the predator.If A 1 = 0, this community consists of a non-toxic haplotype, and the Ricker model describes its dynamics.At A 2 < 1, the non-toxic phytoplankton becomes extinct; at 1 < A 2 < e 2 , the population density stabilizes; and at A 2 > e 2 , the dynamics become complex via a cascade of period-doubling bifurcations.The presence of a predator with a low growth rate in the community of competitors does not change the phytoplankton dynamics because the predator goes extinct due to insufficient reproduction.Furthermore, by increasing the predator's reproductive rate (r), we can compare the system's dynamics with and without the predator.In particular, the emergence of quasi-periodic oscillations is the result of predator-prey interactions, as the nontrivial fixed point of two coupled Ricker models does not lose stability according to the Neimark-Sacker scenario [43].
Figure 10d-f illustrate that an increase in the values of coefficient r does not always change the nature of the community dynamics that coincides with the dynamic mode of the prey population in the absence of predators.In other words, predator dynamics follow prey one.At high values of the coefficient α, characterizing the predator's pressure on the prey, the two-cycle is replaced by a stable state due to prey consumption by the predator.In the case of cycles with higher periods, an increase in predator reproductive potential results in a cascade of period-doubling bifurcations: the higher the growth rate of the phytoplankton haplotype without toxic traits, the lower the parameter r value giving chaotic dynamics.This phenomenon is associated with the superposition of oscillation periods in predator and prey populations and corresponds to situations when prey population dynamics are determined by predator one.In the case of the emergence of quasiperiodic oscillations due to predator-prey interactions, prey dynamics adapt to predator one.

Comparison of Model Community Dynamics with Experimental Observations
Here, we analyze the correspondence between the dynamic patterns of the model ( 6) and the qualitative characteristics of the experimental dynamics of the phyto-zoo plankton community described in the literature.Considering the population cycles of the predator (zooplankton) and its prey (the non-toxic haplotype of phytoplankton) separately, one can observe dynamics typical for the predator-prey model without evolution, as described in [38] for the chemostats with rotifers and genetically homogeneous algae: the predator's dynamics lag behind the prey by approximately one-quarter of a period.Model ( 6) demonstrates such behavior (Figure 11a).Note that Figure 11a depicts the dynamics of phytoplankton represented only by the haplotype without toxicity trait because the prey is monomorphic.Dynamics with time lag are also observed in the case of polymorphism (Figure 11b,c).In particular, the cycle with period 4 is anti-phase oscillations of the predator and prey, represented by the non-toxic haplotype of phytoplankton, because the predator density peak coincides with its prey minimum, and the predator's dynamics lag behind the prey by one time step, i.e., one-quarter of a cycle.Figure 11b shows a similar lag of variable p n that corresponds to the density of the non-toxic haplotype in the total phytoplankton biomass.Under conditions of high predator consumption rates, the dynamics of the community show long-period antiphase oscillations between predators and prey (Figure 11d), reminiscent of those observed during the evolution of prey in chemostats with different algal genotypes [38].The trajectories in Figure 11b,d represent long-period oscillations with a time delay, similar to self-oscillations in the classical Lotka-Volterra model.Equation ( 6) also reveal dynamic patterns resembling batch dynamics, as seen in continuoustime systems (Figure 11f).
In Figure 11e, the quasi-periodic dynamics demonstrate antiphase oscillations in Under conditions of high predator consumption rates, the dynamics of the community show long-period antiphase oscillations between predators and prey (Figure 11d), reminiscent of those observed during the evolution of prey in chemostats with different algal genotypes [38].The trajectories in Figure 11b,d represent long-period oscillations with a time delay, similar to self-oscillations in the classical Lotka-Volterra model.Equation ( 6) also reveal dynamic patterns resembling batch dynamics, as seen in continuous-time systems (Figure 11f).
In Figure 11e, the quasi-periodic dynamics demonstrate antiphase oscillations in phytoplankton density.Considering the heterogeneity of phytoplankton, represented by two genetic forms, these oscillations can offset each other in the overall phytoplankton biomass, creating the appearance of a nearly steady state condition.Such dynamics, characterized by constant prey density and fluctuating predator one, are referred to as "cryptic cycles" and have been observed in experiments [39].The example depicted in Figure 11e illustrates a potential for the emergence of cryptic cycles in communities with heterogeneous prey, where rapid evolution conceals trophic interactions among species.Note that in the case of stability loss of a fixed point via the Neimark-Sacker bifurcation, leading to an unstable invariant curve, the transient dynamics represent predator fluctuations with nearly constant prey density for an extended period.However, over time, the dynamics of the prey adjust to that of the predator, resulting in oscillations between the interacting species.

Conclusions and Discussion
Discrete-time equations naturally describe time lag and are an alternative to differential equations with delay and piecewise continuous functions in modifications of the classical phytoplankton-zooplankton interaction model.In line with the traditional ideology in this field, this study introduces a discrete-time eco-genetic model of a phytoplankton-zooplankton community, considering the genetic diversity of phytoplankton.The community is assumed to include zooplankton and two competing phytoplankton haplotypes-one with a toxicity trait and one without.The interaction between the two genetic phytoplankton groups is described by the Ricker competition model, taking into account the limitation of growth for each genotype due to resource availability, for example, nutrients, oxygen, light, etc.We used the Holling Type II functional response with predator saturation to model phytoplankton consumption by zooplankton.The birth rate and survival of zooplankton depend on their feeding success.The density-dependent regulation of the growth of the zooplankton population implicitly includes mortality due to the increase in the amount of toxic substances secreted by phytoplankton caused by the high density of the zooplankton.We assume that zooplankton (predators) predominantly consume the non-toxic haplotype of phytoplankton (prey) because phytoplankton can defend against predating.
The results obtained in this study show that within a significant part of the parameter space, the community primarily collapses due to prey overconsumption by the predator: only the toxic haplotype of phytoplankton survives, and its dynamics depend on the values of its population parameters.Note that the local extinction of a portion of the community at a specific spatial location is not a final state because, over time, non-toxic phytoplankton and zooplankton will again appear here due to their migration from neighboring areas.
The stability analysis has shown that the stability loss of a nontrivial fixed point, corresponding to the coexistence of polymorphic phytoplankton with zooplankton, can occur through a cascade of period-doubling bifurcations and the Neimark-Sacker bifurcation.The emergence of the Neimark-Sacker bifurcation leading to quasi-periodic oscillations is only feasible in the community model, whereas in the original Ricker equation describing the density of each species, destabilization of dynamics occurs via period-doubling bifurcation.The proposed eco-genetic model of planktonic community dynamics reveals long-period oscillations consistent with the results of field experiments.Variation in values of parameters characterizing phytoplankton and zooplankton can lead to significant changes in the dynamic mode of the community, for example, transitions from regular to quasi-periodic dynamics or from oscillations to stationary dynamics.Note that quasi-periodic dynamics can arise at not high phytoplankton growth rates, giving stable or periodic community dynamics.In this parametric area with multistability, the transition from regular dynamics to quasi-periodic and vice versa can occur due to variations in initial conditions caused by external factor impact changing the current species densities, which shifts the system into the attraction basin of another dynamics mode.In the multistability domain, a shift in both the dynamics mode and the evolution direction, changing community composition due to variations in initial conditions, is possible.Note that unpredictability in multispecies competition is discussed in the study by J. Huisman and F. Weissing [52].The research demonstrates that the system may yield multiple alternative outcomes, with the dynamics leading to these alternatives possibly showcasing transient chaos.Moreover, the basins of attraction associated with these alternative outcomes exhibit an intermingled fractal geometry.As a result, the prediction of the winners in a multispecies competition community becomes a challenge [52].
From the perspective of evolutionary dynamics, the relationship between parameters that characterize competition among different phytoplankton haplotypes and self-limiting processes is more interesting.With ϕρ < a, the outcome of evolution can vary significantly depending on the competing genotypes' fitnesses, leading to either monomorphism establishment or polymorphism maintenance.Here, a variation in the current densities of the community component can shift the observed dynamics, which changes the ratio for phytoplankton haplotype frequencies and consequently their total abundance, while the evolution direction remains unchanged.At ϕρ < a with phytoplankton monomorphism represented by a non-toxic haplotype, fluctuations in the current densities of algae and zooplankton can also shift the dynamics mode.In general, we can conclude that when ϕρ < α, the community composition and the evolution direction are determined by the fitness of phytoplankton haplotypes and the "predator pressure" alongside the carrying capacity."Predator pressure" influences the non-toxic phytoplankton haplotype density and can be considered an indirect reduction in fitness.As a result, the haplotype with higher fitness fixes in the community.The variation in the current population sizes of community components can change the dynamics mode but not the evolution direction.In particular, oscillations can be replaced by stabilization, and vice versa.Such scenarios are possible due to saddle-node bifurcations, the occurrence of which primarily depends on the values of parameters x*, r, α, and A 2 , characterizing the "predator-prey" interactions.As a result, population densities in the community can stabilize, reaching higher or lower values depending on the initial conditions with the same evolutionary direction.
With ϕρ ≥ a, a phenomenon known as the "bistability trap" can occur, where a more advantageous genotype cannot displace its genetically weaker competitor [49].However, population decline resulting from external factors, leading to random processes referred to as "population bottlenecks", can induce random changes in genetic composition, causing transition processes from one monomorphic state to another with greater fitness.It is important to note that in the case of a scenario of a bistability trap without a predator, the coexistence of both competing phytoplankton haplotypes is not possible [43].However, the predator's presence in the system maintains the genetic polymorphism of the prey, preventing the displacement of the haplotype with toxicity traits.These findings align well with the hypothesis proposed based on field observations [51], suggesting that blooming species are capable of evading microzooplankton predation during the early stages of blooms.In other words, a variation in the current community composition can lead to a shift in the evolution direction, where the haplotype with toxicity traits either becomes fixed or goes extinct.
In general, the eco-genetic discrete-time model of the planktonic community proposed in this study is relatively simple but demonstrates oscillations that are typical for predator-prey interactions.This system reveals dynamic modes that reflect the basic properties of experimental dynamics: one can observe the predator lagging behind the prey by approximately one-quarter of the period; such behavior is typical for a planktonic community without considering evolution.Taking into account the genetic heterogeneity of phytoplankton, even in the case of two genetic forms with and without the toxicity trait, allows us to observe both long-period antiphase oscillations of predator and prey and cryptic cycles.Cryptic cycles manifest as scenarios where the density of prey remains nearly constant while the density of predators fluctuates, and these phenomena are driven by rapid evolution that conceals trophic interactions among species.

2 1 A,
A < , displaces the less adapted competitor and then, due to the influence of factors of different natures, goes extinct.At Figure1cshows that the phytoplankton population is polymorphic: variable p stabilizes at some intermediate level different from unity.Obviously, this solution is unstable, and the condition

25 Figure 3 .
Figure 3. Graphical solution of system (6) for nontrivial fixed points (11) (a) and (12) (b,c) at x* = 0.5, α = 0.5 with stability and bifurcation transitions depending on the values of parameter A2.The stability zone corresponds to the gray area, z is the solution curve of the system, NS is the Neimark-Sacker bi- furcation line, PD is the period-doubling bifurcation line, and SN is the tangent bifurcation line.

Figure 3 .
Figure 3. Graphical solution of system (6) for nontrivial fixed points (11) (a) and (12) (b,c) at x* = 0.5, α = 0.5 with stability and bifurcation transitions depending on the values of parameter A 2 .The stability zone corresponds to the gray area, z is the solution curve of the system, NS is the Neimark-Sacker bifurcation line, PD is the period-doubling bifurcation line, and SN is the tangent bifurcation line.

Figure 4 .
Figure 4. Stability regions of fixed points of system (6) for different parameter values.Solid an dotted lines denote analytically and numerically obtained bifurcation boundaries, respectively.T i the line of transcritical bifurcation, NS is the Neimark-Sacker bifurcation line, and PD is the per od-doubling bifurcation.The number within the filled area corresponds to the stability area of specific fixed point, the number of which is indicated in brackets.

Figure 4 .
Figure 4. Stability regions of fixed points of system (6) for different parameter values.Solid and dotted lines denote analytically and numerically obtained bifurcation boundaries, respectively.T is the line of transcritical bifurcation, NS is the Neimark-Sacker bifurcation line, and PD is the period-doubling bifurcation.The number within the filled area corresponds to the stability area of a specific fixed point, the number of which is indicated in brackets.

Figure 6 .
Figure 6.Bifurcation diagrams of the dynamic variable z with respect to the parameter A2 supplemented with bifurcation lines and graphical solutions of systems (11) (a,b) and (12) (c,d) at x* = 0.5, α = 0.5.z is the curve of the solutions of the system.NS corresponds to the Neimark-Sacker bifurcation line, PD is the period-doubling bifurcation line, and SN is the saddle-node bifurcation line.A2 SN corresponds to the parameter value at which saddle-node bifurcation occurs.A2 NS+ and A2 NS− are the parameter values at which direct and inverse Neimark-Sacker bifurcations occur.

Figure 6 .
Figure 6.Bifurcation diagrams of the dynamic variable z with respect to the parameter A 2 supplemented with bifurcation lines and graphical solutions of systems (11) (a,b) and (12) (c,d) at x* = 0.5, α = 0.5.z is the curve of the solutions of the system.NS corresponds to the Neimark-Sacker bifurcation line, PD is the period-doubling bifurcation line, and SN is the saddle-node bifurcation line.A 2 SN corresponds to the parameter value at which saddle-node bifurcation occurs.A 2 NS+ and A 2 NS− are the parameter values at which direct and inverse Neimark-Sacker bifurcations occur.

Figure 7 .
Figure 7. (a-e) The basins of attraction for the coexisting dynamic modes of model (6) at x* = 0 = 0.5, φ = ρ = 0.3, a = 1 in the case of polymorphism.(f) Phase portrait corresponding to the a tion basins (c) demonstrating different phases of quasiperiodic dynamics.Figures correspon period of observed cycles.Q stands for quasi-periodic dynamics.IV is an infeasible param value area where the model loses its meaning.The subscript denotes the fixed point number.script 3 corresponds to the attracting fixed point born as a result of a saddle-node bifurcation.coexisting attracting dynamic modes.

Figure 7 .
Figure 7. (a-e) The basins of attraction for the coexisting dynamic modes of model (6) at x* = 0.5, α = 0.5, ϕ = ρ = 0.3, a = 1 in the case of polymorphism.(f) Phase portrait corresponding to the attraction basins (c) demonstrating different phases of quasiperiodic dynamics.Figures correspond to the period of observed cycles.Q stands for quasi-periodic dynamics.IV is an infeasible parameter value area where the model loses its meaning.The subscript denotes the fixed point number.Subscript 3 corresponds to the attracting fixed point born as a result of a saddle-node bifurcation.* are coexisting attracting dynamic modes.

Figure 8 .
Figure 8. Dynamic mode maps of model (6) for x* = 0.5, α = 0.5, φ = ρ = 0.3, a = 1 and specific values of the initial conditions with (a) monomorphism and (b) polymorphism.The figures correspond to the period of observed cycles.Q stands for quasi-periodic dynamics.IV is an infeasible parameter value area where the model loses meaning.

Figure 8
Figure8illustrates abrupt transitions between different dynamic modes, namely, multistability caused by the coexistence of a stable fixed point 11 and quasi-periodic oscillations Q* or 11/Q1 with 13 (Figure6b-d).Consequently, a variation in initial conditions can change the area with quasi-periodic and periodic dynamics.As observed, the region of quasi-periodic dynamics located within the stability domain of the nontrivial fixed point is bounded from above by two intersecting curves, forming an angle, which is also indicative of multistability, as the system "abruptly" transitions from Q1 oscillations to stable point 13, as depicted in the bifurcation diagram shown in Figure6d.In other words, a variation in initial conditions can both expand and contract the area of quasiperiodic dynamics.Accordingly, the "upper" boundary of the quasi-periodic oscillation region, generated as the stability loss by fixed point 11, must be higher than that represented in Figure8, smoothing out the angle.Conversely, the lower boundary can be higher, as point 11 loses stability later than Q* emerges.Thus, when φρ < a in the case of polymorphism, the variation in the current composition of the community can alter the observed dynamics mode, which changes the densities of different phytoplankton haplotypes.However, the evolution direction remains the same.At φρ < α in the case of monomorphism with a non-toxic haplotype of phytoplankton, variations in the current densities of algae and zooplankton can also lead to a shift in the dynamics mode.At φρ ≥ a, system (6) reveals the bistability of monomorphic (8) and (9) states (Figure5b,d, Table1), as well as monomorphic (8) and polymorphic (11) solutions (Figure5d-f, Table1).We consider this bistability using genetic composition maps of the prey population with various initial conditions for the parametric portrait shown in Figure5e

Figure 8 .
Figure 8. Dynamic mode maps of model (6) for x* = 0.5, α = 0.5, ϕ = ρ = 0.3, a = 1 and specific values of the initial conditions with (a) monomorphism and (b) polymorphism.The figures correspond to the period of observed cycles.Q stands for quasi-periodic dynamics.IV is an infeasible parameter value area where the model loses meaning.

Figure 9 .
Figure 9. (a,b) Genetic composition maps of the prey in model (6) at x* = 0.5, α = 0.5, φ = 0.8, ρ = 1.25, and a = 0.8, where φρ ≥ a, accompanied by (c,d) basins of attraction for coexisting solutions that correspond to different evolutionary scenarios.(e,f) Bifurcation diagrams of dynamic variables p and x with respect to parameter A2, supplemented with (g) graphical solutions of systems (11) (red lines) and (12) (blue curves), along with (h) basins of attraction for coexisting solutions.IV represents the region of infeasible parameter values.

Figure 9 .
Figure 9. (a,b) Genetic composition maps of the prey in model (6) at x* = 0.5, α = 0.5, ϕ = 0.8, ρ = 1.25, and a = 0.8, where ϕρ ≥ a, accompanied by (c,d) basins of attraction for coexisting solutions that correspond to different evolutionary scenarios.(e,f) Bifurcation diagrams of dynamic variables p and x with respect to parameter A 2 , supplemented with (g) graphical solutions of systems (11) (red lines) and (12) (blue curves), along with (h) basins of attraction for coexisting solutions.IV represents the region of infeasible parameter values.

Figure 10 .
Figure 10.Dynamic mode maps of model (6) with polymorphism.The figures (in general form denoted as k) correspond to the period of observed cycles.Indices, in accordance with the legend, characterize the evolution direction and the scenario of community development.C and Q represent chaotic and quasi-periodic dynamics, respectively, while IV denotes an infeasible parameter value area.

Figure 10 .
Figure 10.Dynamic mode maps of model (6) with polymorphism.The figures (in general form denoted as k) correspond to the period of observed cycles.Indices, in accordance with the legend, characterize the evolution direction and the scenario of community development.C and Q represent chaotic and quasi-periodic dynamics, respectively, while IV denotes an infeasible parameter value area.

Mathematics 2023 ,
11, x FOR PEER REVIEW 21 of 25 11b shows a similar lag of variable pn that corresponds to the density of the non-toxic haplotype in the total phytoplankton biomass.

Figure 11 .
Figure 11.Trajectories of model (6) showing dynamics similar to those in laboratory experiments.

Figure 11 .
Figure 11.Trajectories of model (6) showing dynamics similar to those in laboratory experiments.