<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD v1.0 20120330//EN" "JATS-archivearticle1.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink">
  <front>
    <journal-meta>
      <journal-title-group>
        <journal-title>O. N. Masina);</journal-title>
      </journal-title-group>
    </journal-meta>
    <article-meta>
      <title-group>
        <article-title>and computer research of a nonlinear stochastic models describing the dynamics of interacting populations</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Anastasia V. Demidova</string-name>
          <email>demidova-av@rudn.ru</email>
          <xref ref-type="aff" rid="aff2">2</xref>
          <xref ref-type="aff" rid="aff3">3</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Olga V. Druzhinina</string-name>
          <xref ref-type="aff" rid="aff1">1</xref>
          <xref ref-type="aff" rid="aff2">2</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Olga N. Masina</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
          <xref ref-type="aff" rid="aff2">2</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Alexander V. Shcherbakov</string-name>
          <email>shcherbakov_al.vl@mail.ru</email>
          <xref ref-type="aff" rid="aff0">0</xref>
          <xref ref-type="aff" rid="aff2">2</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Bunin Yelets State University</institution>
          ,
          <addr-line>28, Kommunarov St., Yelets, 399770, Russian Federation</addr-line>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>Federal Research Center «Computer Science and Control» of Russian Academy of Sciences</institution>
          ,
          <addr-line>44, building 2, Vavilov St.</addr-line>
        </aff>
        <aff id="aff2">
          <label>2</label>
          <institution>Moscow</institution>
          ,
          <addr-line>119333, Russian Federation</addr-line>
        </aff>
        <aff id="aff3">
          <label>3</label>
          <institution>Peoples' Friendship University of Russia (RUDN University)</institution>
          ,
          <addr-line>6, Miklukho-Maklaya St., Moscow, 117198, Russian</addr-line>
        </aff>
      </contrib-group>
      <volume>000</volume>
      <fpage>0</fpage>
      <lpage>0002</lpage>
      <abstract>
        <p>The construction of nonlinear three-dimensional models of interconnected communities number dynamics is considered, taking into account competition in populations of victims. A qualitative research of the systems is carried out, equilibrium states are found, the species number dynamics graphs are constructed. For these models, an estimate of the model parameters is given and local phase portraits are constructed. The transition to the corresponding stochastic models is made. In stochastic cases, the method of constructing self-consistent stochastic models is used. A comparative analysis of deterministic and stochastic models is carried out. Efects typical for three-dimensional models with regard to competition in prey populations are revealed. A software package for the numerical solution of diferential equations systems by modified Runge-Kutta methods is used as a software tool for researching the model. The software package allows performing numerical experiments based on the implementation of algorithms for generating trajectories of multidimensional Wiener processes and multipoint distributions and algorithms for solving stochastic diferential equations. The formulation of the optimal control problem is proposed. Computer research of the models makes it possible to obtain the results of numerical experiments on the search for trajectories and the estimation of parameters. The results obtained can find application in problems of ecological systems computer modeling, as well as in problems of synthesis, optimal control and analysis of the multidimensional stochastic models stability describing the dynamics of interacting populations. computer modeling, nonlinear model of population dynamics, optimal control, stochastization of one-step processes, symbolic computation libraries, software package htp:/ceur-ws.org CEUR Workshop Proceedings (CEUR-WS.org) IS N1613-073 Woodstock'21: Symposium on the irreproducible science, June 07-11, 2021, Woodstock, NY</p>
      </abstract>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>-</title>
      <p>CEUR
Workshop
Proceedings</p>
    </sec>
    <sec id="sec-2">
      <title>1. Introduction</title>
      <p>An important tool in solving problems of predicting the state of natural systems and managing
them is mathematical modeling. To solve these problems, both traditional and new methods and
approaches are used. Ecological systems with various interconnections between subsystems
and a change in the structure of these interconnections in the process of functioning leads to
the mathematical models construction, the analytical research of which is very dificult.</p>
      <p>Mathematical models of the interacting communities dynamics taking into account
competition and with food chains are considered in [1, 2, 3, 4, 5, 6, 7]. In [2], the stability conditions of
the «predator–two preys» system are investigated. In [3], a mathematical model of a system
with two competing prey and one predator is analyzed, the influence of predation on the species
coexistence is described. A model of two competitors’ prey dynamics with the addition of a
predator species to change the competition results is studied in [4]. In [5], the deterministic
stability of the three-dimensional model «predator–two preys» limit cycles is investigated.
In [6, 7], three-dimensional models of population dynamics with competition and with trophic
chains are considered.</p>
      <p>In the process of stochastic modeling for various dynamical systems a method for constructing
self-consistent one-step models [8] is proposed and a software package [ 9] is developed. Some
systems of population dynamics based on the construction of stochastic self-consistent models
are considered in [10, 11, 12, 13, 14]. In [12, 13, 14, 15, 16], a number of control problems for
the models of population dynamics are considered.</p>
      <p>When modeling population systems, various software tools are used that provide ample
opportunities for conducting computational experiments. In [17, 18], the models research is
carried out using the Python language and symbolic computation libraries.</p>
      <p>In this paper we considered several types of three-dimensional models, taking into account
the competition among prey species and predation are studied. The stability of these models is
investigated, the equilibrium states are calculated. The transition from deterministic models
to stochastic ones is performed. A computer research is carried out to study the stability.
The estimation of the model parameters is carried out, the phase portraits of the system are
constructed, as well as the graphs of the population size dynamics in the deterministic and
stochastic cases. The research is carried out using a software package for constructing stochastic
dynamic models and searching for appropriate trajectories, as well as the Jupyter application
package. The obtained efects are analyzed. The formulations of optimal control problems for
the models with trophic chains are proposed.
2. The deterministic models description
We consider a model described by diferential equations of the form
 1̇ =  1( 1 −  1 −  2 −  1 ),
 2̇ =  2( 2 −  1 −  2 −  2 ),
 =̇  (− + 
1 1 +  2 2 −   ),
where  1 is the population density of the first competitor,  2 is the population density of the
second competitor,  is the population density of the predator,   is the reproduction rate of
the competitor’s population in the absence of a predator,   is the specific rate of consumption
of the prey population by the predator population, di is the conversion factor of the prey
biomass consumed by the predator in own biomass,  = 1, 2 ,  is the coeficient of intraspecific
competition,  is the coeficient of interspecific competition,
 is the natural mortality of the
predator,  is the intraspecific competition of the predator,  (0) ≥ 0 ,   (0) ≥ 0,  = 1, 2 . According
to the ecological sense, the constraints on the coeficients are:  &gt; 0 ,  ≥ 0 ,  ≥ 0 ,   &gt; 0,   &gt; 0,
  &gt; 0,  &gt; 0 ,  = 1, 2 .
 22 =  ,  12 =  21 =  .</p>
      <p>
        Model (
        <xref ref-type="bibr" rid="ref1">1</xref>
        ) is a modification of the model described in [ 1] with the following notation:  11 =
We introduce the following notation:  =  1 2 +  2 1,  =  1 1 +  2 2,  =  (
2 −  2) −   + 
,
 1∗ =
 2∗ =
 ∗ =
( 2 1 −  1 2) 2 + ( 2 −  1) + ( 2 −  1)
 ( 2 −  2) +   − 
 ( 2 −  2) +   − 
( 1 2 −  2 1) 1 + ( 1 −  2) + ( 1 −  2)
( 2 −  2) +  ( 1 2 +  2 1) − ( 1 1 +  2 2).
      </p>
      <p>( 2 −  2) +   − 
,
,</p>
      <p>
        Equilibrium states of the (
        <xref ref-type="bibr" rid="ref1">1</xref>
        ) in general form are found. The indicated equilibrium states are
as follows:
 0(0, 0, 0),  1 (0, 0, − ) ,  2 (0,  2 , 0) ,  3 (  1 , 0, 0) ,
      </p>
      <p />
      <p>,
 2 +  2  2 2 − 
  +  2 2   +  2 2
) ,  5 (   +  1 1</p>
      <p>, 0,
 1 +  1
 1 1 − 
  +  1 1
) ,
 6 (
 2 −  1
  1 −  2
,
 2 −  2
 2 −  2</p>
      <p>, 0) ,  7 ( 1∗,  2∗,  ∗).</p>
      <p>
        The state of equilibrium  7 is an internal state of equilibrium for which the condition of
positivity is satisfied. Permanent coexistence of populations in the model (
        <xref ref-type="bibr" rid="ref1">1</xref>
        ) is established
under the following conditions:
1)  &gt; 0 ,  ≥ 0 , ≥ 0 ,   &gt; 0,   &gt; 0,   &gt; 0,  &gt; 0 ,  = 1, 2 ;
2) there is a unique internal equilibrium state  7 such that  ≠ 0 and  1∗ &gt; 0,  2∗ &gt; 0,  ∗ &gt; 0;
4) at least one of the following inequalities holds  1 &gt;  2 or  2 &gt;  1 .
      </p>
      <p>
        Next, we consider the model:
 1̇ =  1( −  11 1 −  12 2 −  ),
 2̇ =  2( −  21 1 −  22 2 −  ),
 =̇  ( + 
1 +  2 −   ),
where   for  =  = 1 and  =  = 2 are the coeficients of intraspecific competition,

 for  not
equal to  are the coeficients of interspecies competition. According to the ecological sense, the
constraints on the coeficients are:

 ≥ 0,  ≠  ,   &gt; 0,  =  , ,  = 1, 2 ,  ≥ 0 ,  &gt; 0 ,  &gt; 0 ,  &gt; 0 ,
 &gt; 0 . The meaning of other parameters included in the system (
        <xref ref-type="bibr" rid="ref2">2</xref>
        ) is similar to the model (
        <xref ref-type="bibr" rid="ref1">1</xref>
        ).
      </p>
      <p>
        Model (
        <xref ref-type="bibr" rid="ref2">2</xref>
        ) is a modification of the model described in [ 1] with the following values:  1 =  2 =  ,
 1 =  2 =  ,  1 =  2 =  .
      </p>
      <p>Next, we introduce the following notation:</p>
      <p>= ( 11 −  12 −  21 +  22),  = ( 11 22 −  12 21),  =  +  ,
 ̂1∗ =
( + )(

22 −  12),  ̂2∗ =
( + )(
11 −  21),  ̂ ∗ =
 − 

.</p>
      <p>
        Equilibrium states of the model (
        <xref ref-type="bibr" rid="ref2">2</xref>
        ) in general form are found. The indicated equilibrium
states are as follows:
      </p>
      <p>6 (   11 +</p>
      <p>, 0,
) ,  5 (
 − 
  11 + 
, 0) ,  3 (  11</p>
      <p>, 0, 0) ,
( 22 − 12) ( 11 − 21)
,</p>
      <p>, 0) ,
11 , ) ,  7 ( ̂1∗,  ̂2∗,  ̂ ∗).</p>
      <p>methodology.
system in general form</p>
      <p>
        The state of equilibrium  7 is an internal state of equilibrium for which the condition of
positivity is satisfied. Permanent coexistence of populations in the model (
        <xref ref-type="bibr" rid="ref1">1</xref>
        ) is established
under the following conditions:
1)  12 ≥ 0,  21 ≥ 0,  11 &gt; 0,  22 &gt; 0,  ≥ 0 ,  &gt; 0 ,  &gt; 0 ,  &gt; 0 ,  &gt; 0 ;
2) there is a unique internal equilibrium state  7 such that  ≠ 0 and  ̂1∗ &gt; 0,  ̂2∗ &gt; 0,  ̂ ∗ &gt; 0;
4) at least one of the following inequalities holds  22 &gt;  12 or  11 &gt;  21.
      </p>
      <p>
        In [1], a theoretical research of the generalized model «predator–two preys» stability is
carried out. However, the numerical research of this model in order to identify the conditions
of oscillating modes causes a number of dificulties. We carry out a computer research of the
models (
        <xref ref-type="bibr" rid="ref1">1</xref>
        ) and (
        <xref ref-type="bibr" rid="ref2">2</xref>
        ), which are special cases of the model [1]. Subsequently, the transition to the
stochastic case is made based on the method of self-consistent stochastic models.
      </p>
    </sec>
    <sec id="sec-3">
      <title>3. Transition to stochastic models</title>
      <p>
        We carry out the transition to stochastization of the models (
        <xref ref-type="bibr" rid="ref1">1</xref>
        ) and (
        <xref ref-type="bibr" rid="ref2">2</xref>
        ) using the method
of constructing self-consistent stochastic models. This method is based on a combinatorial
We write down the scheme of interaction between elements for the «predator–two preys»
      </p>
      <p>
        19–32
(
        <xref ref-type="bibr" rid="ref3">3</xref>
        )
the main ones.
description:
      </p>
      <p>
        In the interaction scheme (
        <xref ref-type="bibr" rid="ref3">3</xref>
        ), the first line corresponds to the natural reproduction of prey in
the absence of other factors, the second line symbolizes intraspecific (at  =  ) interspecific (at
 ≠  ) competition, and the third describes the predator-prey relationship. The fourth line is
responsible for intraspecific competition among predators, and the fith describes their natural
mortality.
      </p>
      <p>The method of constructing self-consistent stochastic models assumes, in the course of
mathematical transformations, a transition from the interaction scheme to obtaining the coeficients
of the Fokker–Planck equation. This transition is carried out using the upgraded software
package described in [9]. This software package is implemented in the Python programming
language using the NumPy and SyPy libraries.</p>
      <p>The software package consists of the following modules: IS_to_SDE.py and stochastic.py.
The IS_to_SDE.py module is designed to obtain the coeficients of the Fokker–Planck equation
from the interaction scheme. The stochastic.py module is a module for obtaining solutions for
the stochastic model.</p>
      <p>The algorithm of the software package is shown in Diagram 1.</p>
      <p>The IS_to_SDE.py module takes as input the matrices M and N of the system states before
and after interaction, vectors K_plus and K_minus interaction coeficients) and a vector X (the
system state vector). As a result, we obtain a symbolic representation of the Fokker–Planck
equation coeficients. Using the SymPy library allows you to get the code of these coeficients
in TeX, which makes them easier to read.</p>
      <p>The IS_to_SDE.py module consists of several functions. Hereafter there is a description of
The S_plus function for obtaining the forward interaction coeficients has the following
def S_plus(X, K_plus, M):
""" interaction coefficient [s^{-}_{1}(x),...,s^{-}_{s}(x)]"""
res = []
for i in range(len(K_plus)):
return res</p>
      <p>Prod_s = [Prod_(x, int(n)) for (x, n) in zip(X, M[i, :])]
res.append(K_plus[i]* sp.prod(Prod_s))</p>
      <p>The derivation function drift_vector for obtaining the drift vector A in the Fokker–Planck
equation is described as follows:</p>
      <p>In addition, we use the following description of the diffusion_matrix function to obtain
the difusion matrix B in the Fokker–Planck equation:
def diffusion_matrix(X, K_plus, K_minus, N, M):
""" diffusion matrix"""
res = sp.zeros(rows=len(X), cols=len(X))
R = M.T - N.T
R = sp.Matrix(R)
for i in range(len(K_plus)):
res += R[:, i] * R[:, i].T * S(X, K_plus, K_minus, N, M)[i]
return res</p>
      <p>
        In fig. 2. the result of the functions for obtaining the Fokker–Planck equation coeficients for
the model (
        <xref ref-type="bibr" rid="ref1">1</xref>
        ) is presented.
      </p>
      <p>Further, the obtained coeficients are transferred to the stochastic.py module for the
numerical solution of the generated stochastic diferential equations and drawing the graphs of
these solutions.</p>
      <p>The stochastic.py module can be used to study and numerically solve systems of ordinary
diferential equations and their corresponding stochastic diferential equations based on the
Runge–Kutta method and its modifications. A detailed description of this module is performed
in [8, 9].</p>
    </sec>
    <sec id="sec-4">
      <title>4. Results of computer experiments</title>
      <p>
        For the models (
        <xref ref-type="bibr" rid="ref1">1</xref>
        ) and (
        <xref ref-type="bibr" rid="ref2">2</xref>
        ), we carry out a series of computational experiments using the
above-described software package designed to study and numerically solve systems of ordinary
diferential equations and the corresponding stochastic diferential equations. Computational
experiments are carried out for both the deterministic case and the stochastic case.
      </p>
      <p>
        For the model (
        <xref ref-type="bibr" rid="ref1">1</xref>
        ), calculations are carried out at  =  . We consider the following sets of
parameters: ( 1,  2,  ) = (2, 1.6, 1.2), ( 1,  2, , ,  1,  2,  1,  2,  ) = (0.2, 0.4, 0.8, 0, 0.2, 0.4, 0.3, 0.6, 1).
With this set of parameters, the approximate equilibrium states are obtained.
      </p>
      <p>
        Further, for the model (
        <xref ref-type="bibr" rid="ref1">1</xref>
        ), we consider the following sets of parameters: ( 1,  2,  ) =
(0.5, 0.4, 0.3), ( 1,  2, , ,  1,  2,  1,  2,  ) = (0.2, 0.4, 0.8, 0.2, 0.2, 0.4, 1.3, 2.4, 0.1). With this set of
parameters, we obtained the approximate equilibrium states.
      </p>
      <p>
        Figures 4 and 5 show the dynamics of population density for given sets of initial conditions.
The dashed line indicates the fluctuations of species number of the deterministic model (
        <xref ref-type="bibr" rid="ref1">1</xref>
        ), the
solid line indicates the stochastic one. Taking into account the results presented in Fig. 4, we
note that the trajectories have an oscillating character with conservation of amplitudes. For the
corresponding stochastic model, damping of oscillations takes place with an approximation to
the stationary mode. Taking into account the results presented in Fig. 5, we note the proximity
of the trajectories of the deterministic and stochastic models. In the case under consideration,
stochastization does not afect the of the system behavior, which is characterized by damping
of oscillations.
      </p>
      <p>
        For the model (
        <xref ref-type="bibr" rid="ref2">2</xref>
        ), the following sets of parameters are considered: ( 1,  2,  ) = (
        <xref ref-type="bibr" rid="ref1 ref2 ref6">2, 1, 6</xref>
        ),
(, ,  11,  12,  21,  22, , ,  ) = (8, 2.5/3, 8, 4, 4.125, 1, 1, 1, 0) . With this set of parameters, the
approximate equilibrium states are obtained.
      </p>
      <p>Fig. 6 shows the population density dynamics for two sets of initial conditions indicated
above. For stochastic and deterministic cases, the trajectories are located close to each other.
As in the deterministic case, the mean values graphs of various realizations of the stochastic
diferential equation solutions reach a stationary mode.</p>
      <p>
        Computational experiments show that the character of the systems (
        <xref ref-type="bibr" rid="ref1">1</xref>
        ) and (
        <xref ref-type="bibr" rid="ref2">2</xref>
        ) stability
is significantly influenced by the coeficients of intraspecific and interspecific competition.
Oscillations are formed if  =  = 0 and if  1 =  2, 1 =  2 at  =  . At  =  ≠ 0 , the
oscillations have a damping character. At  1 =  2,  1 =  2 at  ≠  one of the prey populations
dies out. Next, we proceed to the consideration of controlled models and formulate the optimal
control problem.
      </p>
    </sec>
    <sec id="sec-5">
      <title>5. The problem of optimal control</title>
      <p>
        Let us formulate an optimal control problem for a three-dimensional model of the interconnected
communities number dynamics, taking into account competition in populations of preys. For a
three-dimensional model (
        <xref ref-type="bibr" rid="ref1">1</xref>
        ), the controlled model is given by a system of diferential equations
where   =   () are control functions. The input parameters is explained in section 2.
      </p>
      <p>
        Constraints for model (
        <xref ref-type="bibr" rid="ref4">4</xref>
        ) are specified in the form
 1(0) =  10,  2(0) =  20,  3(0) =  30,  1( ) =  11,  2( ) =  21,  3( ) =  31,  ∈ [0,  ],
0 ≤  1 ≤  11, 0 ≤  2 ≤  21, 0 ≤  3 ≤  31,  ∈ [0,  ].
      </p>
      <p>
        With regard to problem (
        <xref ref-type="bibr" rid="ref4">4</xref>
        )–(
        <xref ref-type="bibr" rid="ref6">6</xref>
        ), we consider the functional to be minimized in the form
 () =
      </p>
      <p>
        3
∫ ∑     ().
0 =1
(
        <xref ref-type="bibr" rid="ref4">4</xref>
        )
(
        <xref ref-type="bibr" rid="ref5">5</xref>
        )
(
        <xref ref-type="bibr" rid="ref6">6</xref>
        )
(
        <xref ref-type="bibr" rid="ref7">7</xref>
        )
      </p>
      <p>
        Control quality criterion (
        <xref ref-type="bibr" rid="ref4">4</xref>
        ) corresponds to minimizing losses from regulation of the
population, and in this case, the positive coeficients are denoted by   in (
        <xref ref-type="bibr" rid="ref7">7</xref>
        ).
      </p>
      <p>
        For the model (
        <xref ref-type="bibr" rid="ref4">4</xref>
        ), the optimal control problem can be formulated as follows: find the minimum
of functional (
        <xref ref-type="bibr" rid="ref7">7</xref>
        ) under conditions (
        <xref ref-type="bibr" rid="ref5">5</xref>
        ), (
        <xref ref-type="bibr" rid="ref6">6</xref>
        ) taking into account   ≥ 0.
      </p>
      <p>
        We also generalize model (
        <xref ref-type="bibr" rid="ref2">2</xref>
        ) for the controlled case and formulate the corresponding optimal
control problem. At the same time, we consider the criterion of control quality, which also
consists in minimizing losses from regulation of the population.
necessary:
      </p>
      <p>It is possible to construct the control laws  1,  2,  3 by diferent methods. For example, it is
possible to use PID controllers [19] or controllers using sliding mode [20].</p>
      <p>For a population model with competition and migration flows in [ 13], the authors use a
polynomial control of the form</p>
      <p>In this case, the model parameters are the coeficients  1 ,  2 , ...,   of polynomial functions.
Methods of global parametric optimization [21, 22] are usually used to calculate the parameters.</p>
      <p>
        We propose to use control methods based on machine learning and regulators using artificial
intelligence. In particular, it is possible to use machine learning in combination with controllers
based on fuzzy logic or artificial neural networks [ 23, 24]. The generalized algorithm for
constructing the optimal trajectory of the model (
        <xref ref-type="bibr" rid="ref4">4</xref>
        ) based on machine learning is shown in
      </p>
      <p>
        Thus, the optimal control problem is to find   =   () those that satisfy, firstly, the phase
constraints of problem (
        <xref ref-type="bibr" rid="ref5">5</xref>
        ), and secondly, the optimality criterion (
        <xref ref-type="bibr" rid="ref7">7</xref>
        ). To solve the problem, it is
      </p>
      <sec id="sec-5-1">
        <title>a) to construct the loss function,</title>
      </sec>
      <sec id="sec-5-2">
        <title>b) to build a parametric control model,</title>
        <p>c) to use the global parametric optimization algorithm for search the coeficients of the
control model with the minimum loss function.</p>
        <p>
          We propose the construction of stochastic controlled models taking into account the
«predator–two preys» interaction. To study such models, it is advisable to consider the control
laws  1,  2,  3 using the algorithm for constructing the optimal trajectory of the model (
          <xref ref-type="bibr" rid="ref4">4</xref>
          ).
For population models with model migration, a number of computer experiments are carried
out in [12, 14]. In [14], the «predator–prey» model is studied taking into account migration
lfows. In [ 12], multidimensional models of competing populations with migration, without
trophic chains, are studied. In [13, 14], the indicated approach to the construction of stochastic
controlled models is efective. A similar approach can be used for the models (
          <xref ref-type="bibr" rid="ref1">1</xref>
          ) and (
          <xref ref-type="bibr" rid="ref2">2</xref>
          ).
        </p>
      </sec>
    </sec>
    <sec id="sec-6">
      <title>6. Conclusion</title>
      <p>
        Computer research of two competing individuals interaction of prey with a predator population
nonlinear models makes it possible to study the proposed models stability. The obtained results
of the models research at diferent variables sets and initial conditions make it possible to estimate
the influence of the predator species on the result of the prey competition. It is established that
the presence of trophic chains has a positive character on the result of competition, and this,
in turn, contributes to the coexistence of species. By the aid of developed software package,
graphs of population dynamics are constructed. For the systems (
        <xref ref-type="bibr" rid="ref1">1</xref>
        ) and (
        <xref ref-type="bibr" rid="ref2">2</xref>
        ), the transition to the
corresponding stochastic diferential equations is carried out. The introduction of stochastics
makes it possible to take into account the probabilistic nature of the reproduction processes and
species death, as well as random fluctuations occurring in the environment in time and leading
to random fluctuations of the model parameters. We formulated an optimal control problem,
      </p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <given-names>V.</given-names>
            <surname>Hutson</surname>
          </string-name>
          ,
          <string-name>
            <given-names>G. T.</given-names>
            <surname>Vickers</surname>
          </string-name>
          ,
          <article-title>A criterion for permanent coexistence of species, with an application to a two-prey one-predator system</article-title>
          ,
          <source>Mathematical Biosciences</source>
          <volume>63</volume>
          (
          <year>1983</year>
          )
          <fpage>253</fpage>
          -
          <lpage>269</lpage>
          . doi:
          <volume>10</volume>
          .1016/
          <fpage>0025</fpage>
          -
          <lpage>5564</lpage>
          (
          <issue>82</issue>
          )
          <fpage>90042</fpage>
          -
          <lpage>6</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <given-names>K.</given-names>
            <surname>Fujii</surname>
          </string-name>
          ,
          <article-title>Complexity-stability relationship of two-prey-one-predator species system model: Local and global stability</article-title>
          ,
          <source>Journal of Theoretical Biology</source>
          <volume>69</volume>
          (
          <year>1977</year>
          )
          <fpage>613</fpage>
          -
          <lpage>623</lpage>
          . doi:
          <volume>10</volume>
          .1016/
          <fpage>0022</fpage>
          -
          <lpage>5193</lpage>
          (
          <issue>77</issue>
          )
          <fpage>90370</fpage>
          -
          <lpage>8</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <given-names>S. B.</given-names>
            <surname>Hsu</surname>
          </string-name>
          ,
          <article-title>Predator-mediated coexistence and extinction</article-title>
          ,
          <source>Mathematical Biosciences</source>
          <volume>54</volume>
          (
          <year>1981</year>
          )
          <fpage>231</fpage>
          -
          <lpage>248</lpage>
          . doi:
          <volume>10</volume>
          .1016/
          <fpage>0025</fpage>
          -
          <lpage>5564</lpage>
          (
          <issue>81</issue>
          )
          <fpage>90088</fpage>
          -
          <lpage>2</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <surname>M. van Baalen</surname>
            ,
            <given-names>V.</given-names>
          </string-name>
          <string-name>
            <surname>Křivan</surname>
            ,
            <given-names>P. C. J. van Rijn</given-names>
          </string-name>
          ,
          <string-name>
            <given-names>M. W.</given-names>
            <surname>Sabelis</surname>
          </string-name>
          ,
          <article-title>Alternative food, switching predators, and the persistence of predator‐prey systems</article-title>
          ,
          <source>The American Naturalist</source>
          <volume>157</volume>
          (
          <year>2001</year>
          )
          <fpage>512</fpage>
          -
          <lpage>524</lpage>
          . doi:
          <volume>10</volume>
          .1086/319933.
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [5]
          <string-name>
            <given-names>L. V.</given-names>
            <surname>Bashkirceva</surname>
          </string-name>
          ,
          <string-name>
            <given-names>I. A</given-names>
            . andKarpenko, L. B.
            <surname>Ryashko</surname>
          </string-name>
          ,
          <article-title>Stochastic sensitivity of limit cycles for «predator-two preys» model</article-title>
          ,
          <source>Izvestiya VUZ. Applied Nonlinear Dynamics</source>
          <volume>18</volume>
          (
          <year>2010</year>
          )
          <fpage>42</fpage>
          -
          <lpage>64</lpage>
          . doi:
          <volume>10</volume>
          .18500/
          <fpage>0869</fpage>
          - 6632- 2010- 18- 6-
          <fpage>42</fpage>
          - 64.
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          [6]
          <string-name>
            <given-names>A. V.</given-names>
            <surname>Epifanov</surname>
          </string-name>
          ,
          <string-name>
            <given-names>V. G.</given-names>
            <surname>Tsibulin</surname>
          </string-name>
          ,
          <article-title>On the dynamics of symmetric systems</article-title>
          ,
          <source>Computer research and modeling 9</source>
          (
          <year>2017</year>
          )
          <fpage>799</fpage>
          -
          <lpage>813</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          [7]
          <string-name>
            <given-names>E. A.</given-names>
            <surname>Aponina</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Y. M.</given-names>
            <surname>Aponin</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A. D.</given-names>
            <surname>Bazykin</surname>
          </string-name>
          ,
          <article-title>Analysis of complex dynamic behavior in the predator-two prey model, Problems of ecological monitoring and modeling of ecosystems 5 (</article-title>
          <year>1982</year>
          )
          <fpage>163</fpage>
          -
          <lpage>180</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          [8]
          <string-name>
            <given-names>M. N.</given-names>
            <surname>Gevorkyan</surname>
          </string-name>
          ,
          <string-name>
            <given-names>T. R.</given-names>
            <surname>Velieva</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A. V.</given-names>
            <surname>Korolkova</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D. S.</given-names>
            <surname>Kulyabov</surname>
          </string-name>
          ,
          <string-name>
            <given-names>L. A.</given-names>
            <surname>Sevastyanov</surname>
          </string-name>
          ,
          <article-title>Stochastic runge-kutta software package for stochastic diferential equations</article-title>
          , in: W. Zamojski,
          <string-name>
            <given-names>J.</given-names>
            <surname>Mazurkiewicz</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Sugier</surname>
          </string-name>
          ,
          <string-name>
            <given-names>T.</given-names>
            <surname>Walkowiak</surname>
          </string-name>
          , J. Kacprzyk (Eds.),
          <source>Dependability Engineering and Complex Systems</source>
          , Springer International Publishing, Cham,
          <year>2016</year>
          , pp.
          <fpage>169</fpage>
          -
          <lpage>179</lpage>
          . doi:
          <volume>10</volume>
          .1007/978- 3-
          <fpage>319</fpage>
          - 39639- 2_
          <fpage>15</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          [9]
          <string-name>
            <given-names>M.</given-names>
            <surname>Gevorkyan</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Demidova</surname>
          </string-name>
          ,
          <string-name>
            <given-names>T.</given-names>
            <surname>Velieva</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Korolkova</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D.</given-names>
            <surname>Kulyabov</surname>
          </string-name>
          , L. Sevastyanov,
          <article-title>Implementing a method for stochastization of one-step processes in a computer algebra system</article-title>
          ,
          <source>Programming and Computer Software</source>
          <volume>44</volume>
          (
          <year>2018</year>
          )
          <fpage>86</fpage>
          -
          <lpage>93</lpage>
          . doi:
          <volume>10</volume>
          .1134/S0361768818020044.
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          [10]
          <string-name>
            <given-names>A. V.</given-names>
            <surname>Demidova</surname>
          </string-name>
          ,
          <article-title>Equations of population dynamics in the form of stochastic diferential equations</article-title>
          ,
          <source>RUDN Journal of Mathematics, Information Sciences and Physics</source>
          (
          <year>2013</year>
          )
          <fpage>67</fpage>
          -
          <lpage>76</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          [11]
          <string-name>
            <given-names>O. V.</given-names>
            <surname>Druzhinina</surname>
          </string-name>
          ,
          <string-name>
            <given-names>O. N.</given-names>
            <surname>Masina</surname>
          </string-name>
          ,
          <article-title>Methods of stability research and controllability of fuzzy and stochastic dynamical systems</article-title>
          , Dorodnitsyn Computing Center of RAS, Moscow,
          <year>2009</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          [12]
          <string-name>
            <given-names>A. V.</given-names>
            <surname>Demidova</surname>
          </string-name>
          ,
          <string-name>
            <given-names>O. V.</given-names>
            <surname>Druzhinina</surname>
          </string-name>
          ,
          <string-name>
            <given-names>O. N.</given-names>
            <surname>Masina</surname>
          </string-name>
          ,
          <string-name>
            <given-names>E. D.</given-names>
            <surname>Tarova</surname>
          </string-name>
          ,
          <article-title>Computer research of nonlinear stochastic models with migration flows</article-title>
          ,
          <source>in: Proceedings of the Selected Papers of the 9th International Conference “Information and Telecommunication Technologies and Mathematical Modeling of High-Tech Systems” (ITTMM-2019). CEUR Workshop Proceedings</source>
          , volume
          <volume>2407</volume>
          ,
          <year>2019</year>
          , pp.
          <fpage>26</fpage>
          -
          <lpage>37</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref13">
        <mixed-citation>
          [13]
          <string-name>
            <given-names>A. V.</given-names>
            <surname>Demidova</surname>
          </string-name>
          ,
          <string-name>
            <given-names>O. V.</given-names>
            <surname>Druzhinina</surname>
          </string-name>
          ,
          <string-name>
            <given-names>O. N.</given-names>
            <surname>Masina</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A. A.</given-names>
            <surname>Petrov</surname>
          </string-name>
          ,
          <article-title>Computer research of the controlled models with migration flows</article-title>
          ,
          <source>in: Proceedings of the Selected Papers of the 10th International Conference “Information and Telecommunication Technologies and Mathematical Modeling of High-Tech Systems” (ITTMM-2020). CEUR Workshop Proceedings</source>
          , volume
          <volume>2639</volume>
          ,
          <year>2020</year>
          , pp.
          <fpage>117</fpage>
          -
          <lpage>129</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref14">
        <mixed-citation>
          [14]
          <string-name>
            <given-names>A. V.</given-names>
            <surname>Demidova</surname>
          </string-name>
          ,
          <string-name>
            <given-names>O. V.</given-names>
            <surname>Druzhinina</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Jacimovic</surname>
          </string-name>
          ,
          <string-name>
            <given-names>O. N.</given-names>
            <surname>Masina</surname>
          </string-name>
          ,
          <string-name>
            <given-names>N.</given-names>
            <surname>Mijajlovic</surname>
          </string-name>
          ,
          <string-name>
            <given-names>N.</given-names>
            <surname>Olenev</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A. A.</given-names>
            <surname>Petrov</surname>
          </string-name>
          ,
          <article-title>The generalized algorithms of global parametric optimization and stochastization for dynamical models of interconnected populations</article-title>
          , in: N.
          <string-name>
            <surname>Olenev</surname>
            ,
            <given-names>Y.</given-names>
          </string-name>
          <string-name>
            <surname>Evtushenko</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          <string-name>
            <surname>Khachay</surname>
          </string-name>
          , V. Malkova (Eds.),
          <source>Optimization and Applications</source>
          , volume
          <volume>12422</volume>
          , Springer International Publishing, Cham,
          <year>2020</year>
          , pp.
          <fpage>40</fpage>
          -
          <lpage>54</lpage>
          . doi:
          <volume>10</volume>
          .1007/978- 3-
          <fpage>030</fpage>
          - 62867-
          <issue>3</issue>
          _
          <fpage>4</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref15">
        <mixed-citation>
          [15]
          <string-name>
            <given-names>O.</given-names>
            <surname>Kuzenkov</surname>
          </string-name>
          , G. Kuzenkova,
          <article-title>Optimal control of auto-reproduction systems, Bulletin of the Russian Academy of Sciences, Theory and control systems (</article-title>
          <year>2012</year>
          )
          <fpage>26</fpage>
          -
          <lpage>37</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref16">
        <mixed-citation>
          [16]
          <string-name>
            <surname>I. Danilova</surname>
          </string-name>
          ,
          <article-title>The problem of optimal behavior of the population in the area taking into account intraspecific competition and migration, in: Proceedings of the XIII All-Russian Meeting on Control Problems of the VSPU-2019</article-title>
          , ICS of RAS, Moscow,
          <year>2019</year>
          , pp.
          <fpage>1476</fpage>
          -
          <lpage>1479</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref17">
        <mixed-citation>
          [17]
          <string-name>
            <given-names>C.</given-names>
            <surname>Fuhrer</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Solem</surname>
          </string-name>
          ,
          <string-name>
            <given-names>O.</given-names>
            <surname>Verdier</surname>
          </string-name>
          ,
          <article-title>Scientific Computing with Python 3</article-title>
          ,
          <string-name>
            <surname>Packt</surname>
            <given-names>Publishing</given-names>
          </string-name>
          ,
          <year>2016</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref18">
        <mixed-citation>
          [18]
          <string-name>
            <given-names>R.</given-names>
            <surname>Lamy</surname>
          </string-name>
          , Instant SymPy Starter, Packt Publishing,
          <year>2013</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref19">
        <mixed-citation>
          [19]
          <string-name>
            <given-names>E.</given-names>
            <surname>Nikulin</surname>
          </string-name>
          ,
          <article-title>Fundamentals of the theory of automatic control. frequency methods of analysis and synthesis of systems, in: Textbook for universities, BHV-Petersburg, Saint-</article-title>
          <string-name>
            <surname>Petersburg</surname>
          </string-name>
          ,
          <year>2004</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref20">
        <mixed-citation>
          [20]
          <string-name>
            <given-names>S.</given-names>
            <surname>Ulyanov</surname>
          </string-name>
          ,
          <string-name>
            <given-names>N.</given-names>
            <surname>Nefedov</surname>
          </string-name>
          ,
          <article-title>A fuzzy controller with a sliding mode based on soft calculations, Software products and systems</article-title>
          ,
          <source>Software &amp; Systems</source>
          <volume>4</volume>
          (
          <year>2014</year>
          )
          <fpage>174</fpage>
          -
          <lpage>177</lpage>
          . doi:
          <volume>10</volume>
          .15827/
          <fpage>0236</fpage>
          -
          <lpage>235X</lpage>
          .
          <fpage>108</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref21">
        <mixed-citation>
          [21]
          <string-name>
            <given-names>R.</given-names>
            <surname>Storn</surname>
          </string-name>
          ,
          <string-name>
            <given-names>K.</given-names>
            <surname>Price</surname>
          </string-name>
          ,
          <article-title>Diferential evolution - a simple and eficient heuristic for global optimization over continuous spaces</article-title>
          ,
          <source>Journal of Global Optimization</source>
          <volume>11</volume>
          (
          <year>1997</year>
          )
          <fpage>341</fpage>
          -
          <lpage>359</lpage>
          . doi:
          <volume>10</volume>
          .1023/A:
          <fpage>1008202821328</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref22">
        <mixed-citation>
          [22]
          <string-name>
            <given-names>J.</given-names>
            <surname>Lampinen</surname>
          </string-name>
          ,
          <article-title>A constraint handling approach for the diferential evolution algorithm</article-title>
          ,
          <source>in: Proceedings of the 2002 Congress on Evolutionary Computation. CEC'02 (Cat. No.02TH8600)</source>
          , volume
          <volume>2</volume>
          ,
          <year>2002</year>
          , pp.
          <fpage>1468</fpage>
          -
          <lpage>1473</lpage>
          . doi:
          <volume>10</volume>
          .1109/CEC.
          <year>2002</year>
          .
          <volume>1004459</volume>
          .
        </mixed-citation>
      </ref>
      <ref id="ref23">
        <mixed-citation>
          [23]
          <string-name>
            <given-names>A.</given-names>
            <surname>Uskov</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Kuzmin</surname>
          </string-name>
          ,
          <article-title>Intelligent control technologies, Artificial neural networks and fuzzy logic, Hot line-</article-title>
          <string-name>
            <surname>Telecom</surname>
          </string-name>
          , Moscow,
          <year>2004</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref24">
        <mixed-citation>
          [24]
          <string-name>
            <given-names>D.</given-names>
            <surname>Rutkovskaya</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Pilinsky</surname>
          </string-name>
          ,
          <string-name>
            <given-names>L.</given-names>
            <surname>Rutkovsky</surname>
          </string-name>
          ,
          <article-title>Neural networks, genetic algorithms and fuzzy systems, Hot line-</article-title>
          <string-name>
            <surname>Telecom</surname>
          </string-name>
          , Moscow,
          <year>2006</year>
          .
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>