<!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 />
    <article-meta>
      <title-group>
        <article-title>Interactive Simulation Software for Multi-Regional Model of Freight Transportation</article-title>
      </title-group>
      <contrib-group>
        <aff id="aff0">
          <label>0</label>
          <institution>Institute for Automation and Control Processes, Far Eastern Federal University</institution>
          ,
          <addr-line>Vladivostok</addr-line>
          ,
          <country country="RU">Russia</country>
        </aff>
      </contrib-group>
      <fpage>419</fpage>
      <lpage>430</lpage>
      <abstract>
        <p>The paper develops a know mathematical model of multiregional ows of goods. We determine the most probable spatial distribution of ows. Transportation costs depend on the distance between the regions within the \gravity model" approach. We use the shortest way length in a transportation network as a measure of these distances. The underlying mathematics of the model is a convex mathematical programming. The problem is represented as nonlinear minimization of a function with linear constraints which is solved numerically. Developed software is implemented for interactive modeling and visualization of the problem solution. The code is implemented on a high-performance cloudserver platform and consist of modules for simulation, visualization and control. Asynchronous http-queries are used for interaction between the platforms. For the data exchange between these modules a declarative model in the JSON format is implemented. The paper demonstrates a practical problem solution for the gasoline freight transportation for Paci c Russia region and the simulation software usage.</p>
      </abstract>
      <kwd-group>
        <kwd>Spatial</kwd>
        <kwd>Multi-regional tropy</kwd>
        <kwd>Network</kwd>
        <kwd>Paci c Russia</kwd>
        <kwd>Transportation</kwd>
        <kwd>Gravity</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>-</title>
      <p>EnModeling multi-regional freight transportation ows for a national economy is
the important problem for studying a level of economic integration among regions
of the country. In a market economy such ows are formed in accordance with
the economic agents own free interests. We assume that such ows are
selforganized in a transportation network. In a case of incomplete statistics about
all the bilateral ows among regions it is possible to use the equilibrium network
approach which allows to get the most probable spatial distribution of ows.
The power of such equilibrium models is that they can be used for simulation
Copyright c by the paper's authors. Copying permitted for private and academic purposes.</p>
      <p>In: S. Belim et al. (eds.): OPTA-SCL 2018, Omsk, Russia, published at http://ceur-ws.org
the ows distribution among regions in a `comparative statics' approach when
technical and economic parameters of the model are changed.</p>
      <p>
        It seems that the issue of multi-regional ows simulation was pioneered by
Leont'ev [
        <xref ref-type="bibr" rid="ref9">9</xref>
        ]. Anderson and Wincoop [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ] demonstrated how the multi-regional
general multi-product equilibrium model from microeconomics theory can
explain the out ows and in ows of goods. They show that the fundamental of
trade ows volume that emerge among territories are very similar to the
\gravity" rule in physics and this fact and was widely applied for international trade
and the theory and practice of regional economics. Wilson and others [
        <xref ref-type="bibr" rid="ref10">10</xref>
        ] has
developed the entropy modeling approach to take into account the incompleteness
of information in the application to an equilibrium modeling for complex
communication systems which can be applied to simulate multi-regional multi-product
ows. The gravity modeling approach and the principle of entropy
maximization [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ] are interrelated in many ways. Further development of Wilson's approach
was conducted by Boyce and others [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ]-[
        <xref ref-type="bibr" rid="ref7">7</xref>
        ]. The researchers use the mathematical
models for practical application of multi-regional trade ows analysis regarding
the con guration of the transportation network of USA with multi-modality of
ows concerning various modes of transport.
      </p>
      <p>The paper is organized as follows. First we describe a mathematical model
for solving the problem mentioned above. Then a web-based computer service for
more convenient analysis and interactive simulation of the problem is presented.
And afterwards we provide an example of the proposed mathematical model and
software for the multi-regional ows modeling for Paci c Russia.
2
\Gravity" Principle in the
Transportation</p>
    </sec>
    <sec id="sec-2">
      <title>Model of Freight</title>
      <p>This section sketches the model, solution for the correspondent mathematical
problem and gives its visualization for gasoline freight transportation for Paci c
Russia region.
2.1</p>
      <sec id="sec-2-1">
        <title>Mathematics of Freight Transportation Model</title>
        <p>The model consider the economy of k regions producing and consuming a
product. Let zij is an unknown volume of a product delivered from region i to the
region j, i; j = 1; : : : ; k. The ow zii is not necessarily assumed to be zero.
Strictly positive values of zii corresponds the part of the production of a region
that is consumed in this region.</p>
        <p>The total ow from region i to j can be interpreted as the total consumption
k
of the product in the region j which equals P zij . We de ne Vj as a known
i=1
in ow (import) of a product to the region j given by o cial statistics. Obviously
k
Vj = P zij . Total out ow (export) of a product from the region i to other regions
i=1
k
is the total production of a product in the region i. The value P zij is assumed
j=1
to be known from o cial statistics, and let it be de ned as Wi.</p>
        <p>The production and consumption of a product de ned above is subject to
evident balance equations
k k
X Vj = X Wi = X X zij :
j i i=1 j=1
(1)
Equations (1) put an additional restriction on the given values of Wi and Vj so
the total ows should be balanced in the considered system of regions.</p>
        <p>However since the system of regions cannot be closed and we can observe
ows of the assumed regions with others, the aforementioned balance (1) based
on statistics would not be observed. This means that for the system of regions j =
1; : : : ; k there are ows of a product between these regions and other unde ned
\external" regions. The problem is complicated by the fact that neither the total
in ow or out ow of such \external" regions are known. Obviously in this case
the model requires modi cation.</p>
        <p>To solve this problem let's aggregate the \external" regions to (k + 1)-th
region and let's consider additional ows zi k+1 and zk+1 j which are unknown
but moreover can be identi ed.</p>
        <p>Freight transportation is carried out by economic agents under the in uence
of the transportation costs which depend on the distances between regions. These
distances are estimated as the shortest way length in a transportation network
by available modes of transport. Consider the gravity model for transportation
costs which can be represented by vij = exp( d Tij ), where vij is `a priori'
de ned the ow of products from region i to j, Tij is an assessment of the
distance between regions i and j, and d is the parameter that are responsible
for the ow sensitivity to distance transportation for a product. Parameter d is
non-negative which means that the higher the value of the distance, the smaller
an amount of ow between the regions i and j is. It is additionally assumed that
vii = 0 for Tii = 0 and vij = vji because we assume that Tij = Tji.</p>
        <p>Calibration of such non-negative parameter d with actual o cial statistics is a
separate problem of applied statistics. This assessment is carried out by methods
such as least squares applied to the linear regression model ln vij = d Tij + "ij
for all li; j = 1; : : : ; k and i &gt; j where "ij is a normally distributed residuals of
the regression for all i and j.</p>
        <p>
          Paper [
          <xref ref-type="bibr" rid="ref10">10</xref>
          ] it is considered an approach of modeling ows in a communication
networks corresponding to the principle of the most probable values of the spatial
distribution of ows. This approach assumes the conditions of incomplete
information when only some balance equations for these ows are given. Adaptation
of this approach for the model of multi-regional freight transportation makes it
k+1
necessary to minimize the nonlinear functions of the form P zij ln(zij =vij )
i;j=1;i6=j
on the set of unknown ows zij .
        </p>
        <p>The presence of such features makes it necessary to specify strictly positive
freight transportation zij which is modeled by specifying lower restrictions on
ows by preassigned small parameter " &gt; 0.</p>
        <p>
          Then we solve a nonlinear optimization problem with already considered
balance equations as linear constraints and the objective function that is motivated
by the most probable ows approach in a case of incomplete information about
the communication system [
          <xref ref-type="bibr" rid="ref10">10</xref>
          ]:
where v^ij = exp( d^Tij ); d^ is known estimates of the parameter. Constraints of
the problem are given further:
k+1
        </p>
        <p>X
i;j=1;i6=j
zij ln(zij =v^ij ) ! min ;</p>
        <p>fzijg
k+1
X zij = Vj ; j = 1; 2; : : : ; k;
i=1
k+1
X zij = Wi; i = 1; 2; : : : ; k;
j=1
zij</p>
        <p>" &gt; 0; i; j = 1; 2; : : : ; k + 1:
2.2</p>
      </sec>
      <sec id="sec-2-2">
        <title>The Solution and Visualization</title>
        <p>Implemented computer software for multi-regional freight transportation
simulation is used to determine the equilibrium multi-regional freight tra c in the
transportation network of railway, road and marine transport of the Paci c
Russia regions. The data is used as input data of Rosstat o cial statistical
handbooks of di erent years \The regions of Russia. Socio-economic indicators of
the multi-regional trade". The main products (commodities) are foodstu , fuel,
goods for technical purposes.
Primorskiy kray - 1, Khabarovskiy kray - 2, Amurskaya oblast' - 3, Evreyskaya
avtonomnaya oblast' - 4, Respublika Sakha (Yakutiya) - 5, Magadanskaya oblast'
- 6, Sakhalinskaya oblast' - 7, Kamchatskiy kray - 8, Chukotskiy avtonomnyy
okrug - 9.</p>
        <p>As the centers of production and consumption corresponding administrative
centers of 9 Paci c Russia regions are considered: Primorskiy krai
(Vladivostok), Khabarovskiy krai (Khabarovsk), Amurskaya oblast' (Blagoveshchensk),
Evreyskaya avtonomnaya oblast' (Birobidzhan), Respublika Sakha (Yakutsk),
Magadanskaya oblast' (Magadan), Sakhalin region (Yuzhno-Sakhalinsk),
Kamchatskiy krai (Petropavlovsk-Kamchatsky), Chukotskiy avtonomnyi okrug (Anadyr).</p>
        <p>Estimates of the distances between regions are shown in Table 2 which
correspond to the shortest paths between the administrative centers of the regions
in aggregated transportation network of railway, road and marine transport of
Paci c Russia.</p>
        <p>Table 3 shows the result for the gasoline freight transportation simulation as
solution of the problem described above as the spatial distribution of the most
probable ows in the system of the Paci c Russia regions and other \external"
regions. These \external" regions are aggregated in one additional region that is
added in Tab.3 in the last row under the number \10".</p>
        <p>Consider the transportation of motor gasoline between the regions of Paci c
Russia (Figure 2, Table 4). From the simulation result shown in Tab.3 it is
possible we can conclude that rather large quantities of gasoline is transported
from Khabarovskiy krai to Primorsky krai, smaller quantities are transported
to Amurskaya oblast', and a very little amounts are transported to Respublika
Sakha (Yakutiya) and Kamchatskiy krai, as well as to Evreyskaya avtonomnaya
oblast' and Sakhalinskaya oblast'. Second conclusion is that there is a huge
amount of gasoline that is needed to be transported from other \external" regions
that are not regions of the Paci c Russia. Gasoline was transported mainly to
Primorsky Kray, at less extent to Khabarovskiy krai, Amurskaya oblast' and
Evreyskaya avtonomnaya oblast'.</p>
        <p>The visual presentation of the data from Tab. 3 is shown in Fig. 2.
Software that implements the described above mathematical model is realized. It
is used to nd the equilibrium multi-regional freight tra c in the transportation
network system of regions. An indicator of \connectedness" of the regions for a
2(zij+zji)
speci c industry or aggregated for all products is de ned as Lij = Ei+Ej+Ii+Ij
where zij is an out ow from the region of i to the region j and Em is a total
export of a product from the region m to all other regions, and Im is total
imports to the region m from all other regions.</p>
        <p>Output results of the program are calculated equilibrium values of the freight
tra c between transportation network nodes, the matrix of multi-regional ows
and \connectedness' matrix of regions.</p>
        <p>
          Model implementation is carried out in the MPL language [
          <xref ref-type="bibr" rid="ref1">1</xref>
          ] and Octave [
          <xref ref-type="bibr" rid="ref5">5</xref>
          ]
on the SuperServer 6037R-72RFT+ server platform by SuperMicro company.
A generalized architecture of the cloud service is presented in the Fig. 3. The
software consists of three modules: a module of freight transportation simulation,
a control module and a visualization module.
The freight transportation simulation module and the visualization module are
the independent sybsystems located on di erent servers. To provide interaction
between them an additional module of control is required. . The main task of the
control module is to get and transfer information from the simulation module and
the visualization module in a previously de ned format that is understandable
for them. A convenient data format for the simulation module is a matrix
representation; a convenient data format for visualization is a graph. Both formats
are specialized and useful for speci c tasks. Therefore, we need an intermediate
format for exchanging information between them. For this aim, we have
developed a declarative format for freight transportation 14. That format consists of
three base types of objects: products, zones and communications. A declarative
representation of the objects is realized with JSON format. A structure of each
type and links between them are provided in the Fig. 4.
        </p>
        <p>The control module uses the http-protocol and asynchronous requests. The
visualization module sends an asynchronous http-request to the control module
for getting input data from the simulation module. The control module
initiates an http-request for getting or calculating data about a state of freight
transportation. The simulation module forms data in the declarative
representation and then sends an answer to the visualization module using the control
module. Then the visualization module builds a graph of freight transportation
by obtained data. The control module is di erent from existing methods for
multi-regional ows because it provides interaction between two environments
(environment of calculations and environment of visualization) which are on the
di erent platforms.
3.2</p>
      </sec>
      <sec id="sec-2-3">
        <title>Visualization Module</title>
        <p>The visualization module gives a possibility to represent complicated matrix
data about freight ows visually (graphically) in form of oriented graph. Arcs of
that graph are freight ows and vertexes are points of destination of these ows.</p>
        <p>The visualized transport net allows users to see results of the modeling and
to change them interactively, by editing parameters of vertexes and arcs by a
program interface.</p>
        <p>
          The visualization module displays di erent variants of the oriented graph in
depend of needed parameters. For this on base of the declarative model there are
formed automatically control elements for the graph of freight transportation [
          <xref ref-type="bibr" rid="ref6">6</xref>
          ].
By these control elements a user can select type of communication it is needed
to display in sampling. The visualization module have some advantages, main
of them are: implementation of the module is done on the cloud platform and
software is accessible for users via the Internet; the visualization module allows
users to change interactively parameters of the model and to see results in the
real-time mode.
        </p>
        <p>Interactive editing of the graph supposes a change of the parameters vertexes
and arcs of the graph. (Fig. 5). In accordance with user modi cation the dynamic
asynchronous request is sent to the simulation module server via the control
module and as a results a new declarative model of trade ows will be received
and graph visualization will be changed.</p>
        <p>The parametric sampling and the visualization of only part of information
matters a lot for clarity of the received results especially if parts of these results
are entirely (or partially) are independent from each other. Addition graphical
parameters are used for the visualization of the transport ows graph: a color
and thickness of arcs. The color characterizes a type of communication of ows.
The thickness characterizes a volume of ows' loads.</p>
        <p>Implementation of the visualization module as a cloud service gives a
convenient way to use and display the results of mathematical modeling for many
users via the Internet.
4</p>
      </sec>
    </sec>
    <sec id="sec-3">
      <title>Conclusion</title>
      <p>The paper sketches the \gravitation" model for multi-regional trade. The
underlying mathematical problem of the model is based on the approach of nding
the most probable spatial distribution of ows in a case of incomplete
information about the communication system. The nonlinear convex optimization
problem with linear constraints is needed to be solved. The paper demonstrates
the simulation of multi-regional freight transportation of gasoline for the Paci c
Russia.</p>
      <p>The software package is a cloud service, and it consists of three main
modules. First, simulation module of trade ows based on the mathematics of the
model. Second, the control module, and the third, module for visualization.
Modules for control and visualization are implemented on the cloud platform using
a multi-agent approach. The interaction between the cloud platform and the
high-performance computing platform is organized with dynamic asynchronous
requests using a http-protocol.</p>
      <p>The software is designed for professionals dealing with the problem of
analyzing multi-regional ows of products and planning the strategical plans of
regional economic development. Overall methodology and conclusions can be
used for multi-regional trade simulation for other regions and municipalities.</p>
      <p>Due to a huge dimension of a problem and high practical computational
complexity further research could be managed in a way of special numerical
algorithms design including parallel ones. The use of a high-performance
computing platform could be e cient in a case of a huge number of constraints in
the considered mathematical problems.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          1. AMPL:
          <article-title>A Modeling Language for Mathematical Programming</article-title>
          : http://www.ampl. com
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          2.
          <string-name>
            <surname>Anderson</surname>
            ,
            <given-names>J.E.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Wincoop</surname>
          </string-name>
          , E.:
          <article-title>Gravity with gravitas: a solution to the border puzzle</article-title>
          .
          <source>AER</source>
          .
          <volume>93</volume>
          ,
          <issue>170</issue>
          {
          <fpage>192</fpage>
          (
          <year>2003</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          3.
          <string-name>
            <surname>Batten</surname>
            ,
            <given-names>D.F.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Boyce</surname>
            ,
            <given-names>D.E.</given-names>
          </string-name>
          :
          <article-title>Spatial interaction and multi-rregional commodity ow models</article-title>
          .
          <source>In: Handbook on regional and urban economics</source>
          .
          <source>vol. 1</source>
          , pp.
          <volume>357</volume>
          {
          <issue>406</issue>
          (
          <year>1987</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          4.
          <string-name>
            <surname>Fang</surname>
            ,
            <given-names>S.C.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Rajasekara</surname>
            ,
            <given-names>J.R.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Tsao</surname>
            ,
            <given-names>H.S.J.</given-names>
          </string-name>
          :
          <source>Entropy Optimization and Mathematical Programming</source>
          . Kluwer Academic, Dordrecht (
          <year>1997</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          5.
          <string-name>
            <given-names>GNU</given-names>
            <surname>Octave</surname>
          </string-name>
          <article-title>: High-level language for numerical computations</article-title>
          : https://www.gnu. org/software/octave/
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          6.
          <string-name>
            <surname>Gribova</surname>
            ,
            <given-names>V.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Kleschev</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Krylov</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Moskalenko</surname>
            ,
            <given-names>Ph.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Timchenko</surname>
            ,
            <given-names>V.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Shalfeyeva</surname>
          </string-name>
          , E.:
          <article-title>A Cloud Platform for the Development</article-title>
          and
          <article-title>Use of Intelligent Agent-based Internet-services</article-title>
          .
          <source>In: The 9th International Conference on Information Technology and Applications (ICITA2014)</source>
          , Sydney. http://www.icita.org/2014/papers/ ru-Gribova1.pdf (
          <year>2014</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          7.
          <string-name>
            <surname>Ham</surname>
            ,
            <given-names>H.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Kim</surname>
            ,
            <given-names>T.J.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Boyce</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          :
          <article-title>Assessment of economic impacts from unexpected events with an multi-rregional commodity ow and multimodal transportation network model</article-title>
          .
          <source>Transport. Res. A</source>
          .
          <volume>39</volume>
          ,
          <issue>849</issue>
          {
          <fpage>860</fpage>
          (
          <year>2005</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          8.
          <string-name>
            <surname>Ham</surname>
            <given-names>H.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Kim</surname>
            <given-names>T.J.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Boyce</surname>
            <given-names>D.</given-names>
          </string-name>
          :
          <article-title>Implementation and estimation of a combined model of multi-rregional, multimodal commodity shipments and transportation network ows</article-title>
          .
          <source>Transport. Res. B</source>
          .
          <volume>39</volume>
          ,
          <issue>65</issue>
          {
          <fpage>79</fpage>
          (
          <year>2005</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          9.
          <string-name>
            <surname>Leont'ev</surname>
          </string-name>
          , V.V.:
          <article-title>Izbrannye Proizvedeniya v 3-kh tt</article-title>
          .
          <source>T. 1 Obshcheekonomicheskie Problemy Mezhotraslevogo Analiza. Ekonomika</source>
          , Moscow (
          <year>2006</year>
          )
          <article-title>(in Russian)</article-title>
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          10.
          <string-name>
            <surname>Vil</surname>
          </string-name>
          <article-title>'son, A.Dzh.: Entropiynye Metody Modelirovaniya Slozhnykh Sistem</article-title>
          . Nauka, Moscow (
          <year>1978</year>
          )
          <article-title>(in Russian)</article-title>
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>