<!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>Stochastic Transportation Problem with Cauchy
Random Variables and Multi Choice Parameters. Journal of Physical Sciences</journal-title>
      </journal-title-group>
    </journal-meta>
    <article-meta>
      <title-group>
        <article-title>Algorithm for Solving Stochastic Transportation Problem</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Anna V. Zykina</string-name>
          <email>avzykina@mail.ru</email>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Olga N. Kaneva</string-name>
          <email>okaneva@yandex.ru</email>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Copyright ⃝c by the paper's authors. Copying permitted for private and academic purposes.</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>In: Yu. G. Evtushenko, M. Yu. Khachay, O. V. Khamisov, Yu. A. Kochetov, V.U. Malkova, M.A. Posypkin (eds.): Proceedings of</institution>
          ,
          <addr-line>the OPTIMA-2017 Conference, Petrovac, Montenegro, 02-Oct-2017, published at http://ceur-ws.org</addr-line>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>Omsk State Technical University</institution>
          ,
          <addr-line>prospekt Mira 11, 644050 Omsk</addr-line>
          ,
          <country country="RU">Russia</country>
        </aff>
      </contrib-group>
      <pub-date>
        <year>2013</year>
      </pub-date>
      <volume>17</volume>
      <issue>117</issue>
      <fpage>598</fpage>
      <lpage>603</lpage>
      <abstract>
        <p>The paper deals with the transportation problem in stochastic formulation. The problem solved by using the two-stage approach. The second stage is formulated as a complementarity problem. The algorithm for transportation problem solving is received. The solution based on stochastic gradient and Monte Carlo method.</p>
      </abstract>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>Introduction</title>
    </sec>
    <sec id="sec-2">
      <title>Statement of the Linear Complementarity Problem</title>
      <p>It is important to consider the linear complementarity problem LCP(B; q) in the form [Bazaraa et al., 1998]:
w − By = q; wj ≥ 0; yj ≥ 0; wj yj = 0; j = 1; :::; l:</p>
      <sec id="sec-2-1">
        <title>Here B is a given square matrix of order l, (wj ; yj ) is a pair of additional variables.</title>
        <p>Condition wj yj = 0; j = 1; :::; l; is similar to the condition of complementarity in the duality theory for
inequalities By + q ≥ 0 and y ≥ 0. That means, in a pair of conjugate inequalities, at least one should be
implanted as equality.</p>
        <p>Non-negative definiteness of the matrix B ensures the solvability of problem LCP(B; q). When B is positive
definite, problem LCP has a unique solution y of problem LCP(B; q).</p>
        <p>The algorithm can be used as an additional conversion Lemke for the formulation of LCP problem solution
[Bazaraa et al., 1998]. It can be shown as an analogy of the simplex algorithms for linear programming problem.
3</p>
      </sec>
    </sec>
    <sec id="sec-3">
      <title>Mathematcal Model of the Transportation Problem</title>
      <p>Let us consider the classical transportation problem: minimize the total cost
for specified volumes of homogeneous product transportation X = {xij } i = 1; m; j = 1; n with restrictions:
m n
∑∑cij xij → min
i=1 j=1
n
∑xij = ai; i = 1; m;
j=1
m
∑xij = bj ; j = 1; n;
i=1
xij ≥ 0; i = 1; m; j = 1; n:</p>
      <p>Conditions (2) determine the distribution of transportation X in accordance to reserves a = (a1; a2; : : : ; am):
Conditions (3) ensure the fulfillment of the demand b = (b1; b2; : : : ; bn):</p>
      <p>We introduce the matrix of the transportation plan X and matrices C by using vector of the transportation
plan x and vector c, and sticking rows of matrix to vector</p>
      <sec id="sec-3-1">
        <title>Then the group of equations (1), (2), (4) is presented as</title>
        <p>xij = x(i−1)n+j ; cij = c(i−1)n+j :
cx → min; Ax = a; x ≥ 0;
where matrix A corresponds to constraints (2).
4</p>
      </sec>
    </sec>
    <sec id="sec-4">
      <title>Two-stage Stochastic Transportation Problem</title>
      <p>It is important to consider the stochastic formulation of the transportation problem (1) – (4).</p>
      <p>Let b = b(!) be the demand which presented as a random variable and c = c(!) be the cost of product
transportation, which is also random.</p>
      <p>Transportation problem with random demand can be presented as the following two-stage stochastic
programming problem [Zykina et al., 2016]:
where</p>
      <p>F (x) = M {cx + f (x; b)} → xm∈iDn;</p>
      <p>D = {x ∈ Rnm |Ax = a; x ≥ 0};
f (x; b) = {p+y+(x; b) + p−y−(x; b)} → y+; y</p>
      <p>min ;
w− − B−y− = q−; w− ≥ 0; y− ≥ 0; wj−yj− = 0; j ∈ J −:
We show the following meaningful interpretation of the problem by using the terms of the transportation problem:
– the components of vectors q+ or q− with coordinates
and
qj+ =
m
∑ xij − bj ; j ∈ J +;
i=1
qj− = bj −
m
∑ xij ; j ∈ J −;
i=1
that specify the amount of the deficit or excess of the resource that can occur with certain plan x ∈ D and in
the realization of a random variable b;</p>
      <p>– the components of vectors y+ = y+(x; b) or y− = y−(x; b) determine as the compensation plan of the deficit
for each item of resource consumption;</p>
      <p>– element bij of matrix B+ or B− specifies the amount of resource purchasing for i-th consumer under the
compensation plan y = (0; :::; 1; :::; 0), where the positive unit located on j-th place;
– the components of vectors p+ or p− determine fines for conducting corrective actions.</p>
      <p>For the solvability of the second stage problem (7)–(9) for all implementations of a random variable b and
for any preliminary plan x ∈ D, it is necessary and sufficient that the matrix B+ and B− be positive definite.
Under such conditions there are a unique solutions y+(x; b) and y−(x; b) for each complementarity problem
LCP(B+; q+) and LCP(B−; q−). In this case problem (5)–(9) is a nonlinear problem of stochastic programming
with the following linear constraints in the form:</p>
      <p>F (x) = M {cx + p+y+(x; b) + p−y−(x; b)} → xm∈iDn;</p>
      <p>D = {x|Ax = a; x ≥ 0} ;
here y+(x; b); y−(x; b) are unique solutions of the corresponding complementarity problems. The objective
function F (x) is the expectation of a random function which depends on a random vector from a certain probability
space. The feasible set D; D ̸= ∅; is a bounded convex linear set.</p>
      <p>To solve the problem (10) – (11), we can use methods of stochastic approximation [Sakalauskas, 2004].
5</p>
    </sec>
    <sec id="sec-5">
      <title>Designations</title>
      <sec id="sec-5-1">
        <title>Let us transform the matrix Hn×m into vector h1×nm:</title>
      </sec>
      <sec id="sec-5-2">
        <title>Then we transform the vector h1×nm into matrix Hn×m:</title>
        <sec id="sec-5-2-1">
          <title>Vectors qs+ and qs− can be presented as:</title>
          <p>h(i−1)n+j = Hij ; i = 1; m; j = 1; n:</p>
          <p>Hij = h(i−1)n+j ; i = 1; m; j = 1; n:
Problem LCP(B; q):
qjs+(Xk) =
m
∑xikj − bjs; j ∈ J s+;
i=1
qjs−(Xk) = bjs −
m
∑xikj ; j ∈ J s−:
i=1
w − Bl×ly = q; wj ≥ 0; yj ≥ 0; wj yj = 0; j = 1; l:
(9)
(10)
(11)
(12)
(13)
(14)
(15)
(16)
6.1</p>
          <p>Starting
1) Input: a matrix M C of dimension m × n which contains values of transport costs, a matrix DC of dimension
m × n of variances, M b – vector with values of demand in points j = 1; n, Db – vector of variances, a – warehouse
stock vector i = 1; m.</p>
          <p>2) Let "ˆ, ˆ and be positive defined: "ˆ &gt; 0, ˆ &gt; 0 and &gt; 0.</p>
          <p>3) Define the matrix of corrective measures Bn×n, vectors p+ and p− (of dimension n) are fines for conducting
corrective actions.</p>
          <p>4) Select an initial volume N 0 of Monte Carlo estimates samples.</p>
        </sec>
        <sec id="sec-5-2-2">
          <title>5) Transform the matrix M C into a vector c¯ by the rule (12).</title>
          <p>6) Find the initial approximation x0 ∈ Rnm as a solution of the linear programming problem:
c¯x → min; Ax = a; x ≥ 0:
(17)
7) Set k = 0 and turn to the main step.
6.2</p>
          <p>Main Steps
Step 1.</p>
          <p>1. Let xk, N k and ∆k &gt; 0 are given. Transform the vector xk into the matrix Xk by the rule (13).
2. Generate N k values of the random vector b: b1; b2; : : : ; bNk and the random matrix C: C1; C2; : : : ; CNk .
3. For each implementation s = 1; N k of a random vector b:
(a) form the index sets J s+ and J s− from the elements j = 1; n according to the following rule:
if
then the corresponding index j is placed in the set J s+;
if
then the corresponding index j is placed in the set J s−;
m
∑ xikj &lt; bjs;
i=1
m
∑ xikj &gt; bjs;
i=1
pjs+; j ∈ J s+;
pjs−; j ∈ J s−;
(b) form the matrix Bs+ by the elements of the matrix B at the intersection of rows and columns with
numbers from the set J s+, and similarly form the matrix Bs− in terms of the index set J s−;
(c) form vectors:
(d) form the vectors qs+(Xk) and qs−(Xk) in accordance to (14) and (15) respectively;
(e) for each t = 1; nm
i. transform the vector (x1k; x2k; : : : ; xtk + ∆k; : : : ; xknm) into the matrix Xtk by the rule (13);
ii. compute ys+(Xk; bs) as a solution of the complementarity problem LCP (Bs+; qs+(Xk));
iii. compute ys−(Xk; bs) as a solution of the complementarity problem LCP (Bs−; qs−(Xk));
iv. compute ys+(Xtk; bs) as a solution of the complementarity problem LCP (Bs+; qs+(Xtk));
v. compute ys−(Xtk; bs) as a solution of the complementarity problem LCP (Bs−; qs−(Xtk));
vi. calculate the coordinate t of the stochastic gradient gs(Xk; bs) according to the following formula:
gts(Xk; bs) = c¯t + ps+ ys+(Xtk; bs) − ys+(Xk; bs)
∆k
+ ps− ys−(Xtk; bs) − ys−(Xk; bs)</p>
          <p>;
∆k
(f) calculate the values:</p>
          <p>m n
f (Xk; Cs; bs) = ∑ ∑ cisj xikj + ps+ys+(Xk; bs) + ps−ys−(Xk; bs);</p>
          <p>i=1 j=1
4. after calculating all N k values of the objective function f (Xk; Cs; bs) and the stochastic gradients gs(Xk; bs)
we find the following estimates:</p>
        </sec>
        <sec id="sec-5-2-3">
          <title>5. find the gradient of the objective function:</title>
        </sec>
        <sec id="sec-5-2-4">
          <title>6. find the sample covariance matrix:</title>
          <p>Fe(Xk) =
1
N k</p>
          <p>Nk
∑ f (Xk; Cs; bs);
s=1
De 2(Xk) =
1 Nk</p>
          <p>∑(f (Xk; Cs; bs) − Fe(Xk))2;</p>
          <p>N k − 1 s=1
∇e F (Xk) =
1
N k</p>
          <p>Nk
∑ gs(Xk; bs);
s=1
Q(Xk) =
1
N k</p>
          <p>Nk
∑(gs(Xk; bs) − ∇e F (Xk))(gs(Xk; bs) − ∇eF (Xk))T
s=1
7. determine Φ as – quantile of the Fisher distribution with degrees of freedom (N k − n; n). Determine
as -quantile of the standard normal distribution;
8. if (N k − n)( ∇eF (Xk))T (Q(Xk))−1 ∇eF (Xk) ≤ Φ and 2
De(Xk)
√ Nk ≤
then STOP. Otherwise go to step 2.</p>
          <p>Step 2.
1. Calculate the value
"xk ( ∇eF (Xk)) = "b∇e Ftm(Xakx)≥0;{min{xtk; b ∇e Ft(Xk)}}:</p>
          <p>1≤t≤nm
2. Find the "−possible direction dk by solving the following problem:</p>
          <p>dj ≤ 0; j ∈ J k;
here J k is the set of indices j for which inequality
is specified.
3. Compute k. If ∃t for which dtk &gt; 0, then</p>
          <p>else k = b:</p>
        </sec>
        <sec id="sec-5-2-5">
          <title>4. Find</title>
          <p>and</p>
        </sec>
        <sec id="sec-5-2-6">
          <title>5. Replace k by k + 1 and go to step 1.</title>
          <p>∥d − ∇e F (Xk)∥ → min</p>
          <p>Ad = 0;
0 ≤ xj ≤ "xk (∇e F (Xk))
k</p>
          <p>xk
k = min{b; dmtk&gt;in0; ( dtkt )};</p>
          <p>kdk
N k+1 =</p>
          <p>bΦ
k(dk)T (Q(Xk))−1dk</p>
          <p>:
Convergence of the proposed algorithm provided [Sakalauskas, 2004] by determining the sample size from the
conditions (18). In this case the objective function (10) must be differentiable. And it’s gradient must satisfy the
Lipschitz condition. As mentioned above, when choosing the positive definite matrixs B+ and B− there is unique
solutions y+(x; b) and y−(x; b) of the corresponding complementarity problem. In this case it is possible to obtain
a linear dependence of the functions y+(x; b) and y−(x; b) [Kaneva, 2005]. This fact ensures differentiability of
the objective function (10) and the Lipschitz condition for the gradient.
8</p>
        </sec>
      </sec>
    </sec>
    <sec id="sec-6">
      <title>Conclusion</title>
      <p>The effectiveness of the proposed numerical method for solving stochastic transportation problem stipulated by
the following cases:</p>
      <p>– We use two-step scheme where the choice of compensation plan of the second stage satisfy the conditions of
the linear complementarity problem. This fact allows us compensate not only in the case when the demand is
not satisfied, but when the supply exceed the demand. In addition, using the complementarity problem provides
compensation on the limit of compatibility, which allows us to reduce costs of compensation.</p>
      <p>– Under defined conditions of the compensation scheme choice (the positive definiteness of the matrix in the
complementarity problem) ensures the uniqueness of the complementarity problem solution. This fact allows us
use the solution of the complementarity problem to construct the stochastic gradient.</p>
      <p>Acknowledgements
This work was supported by Russian Foundation for Basic Research, Project 15-41-04436-a-Siberia and by</p>
      <sec id="sec-6-1">
        <title>Ministry of education and science of Russia, Project 2.9314.2017</title>
        <p>[Koopmans, 1949] Koopmans, T.C. (1949) Uptimum utilization of the transportation system. Econometrica, 3-4.
[Williams, 1963] Williams, A. C. (1963). A stochastic transportation problem. Operations Research, 759 – 770.
[Judin, 2010] Judin, D.B. (2010). Mathematical methods of control under incomplete information. Objectives and
methods of stochastic programming. Moscow: Krasand.</p>
      </sec>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [Kibzun et al.,
          <year>2016</year>
          ] Kibzun,
          <string-name>
            <given-names>A.I.</given-names>
            and
            <surname>Khromova</surname>
          </string-name>
          ,
          <string-name>
            <surname>O.M.</surname>
          </string-name>
          (
          <year>2016</year>
          ).
          <article-title>Mathematical modelling of a transport system with minimal maintenance costs</article-title>
          .
          <source>Vestn. YUUrGU. Ser. Matem. Modelirovanie i Programmirovanie</source>
          ,
          <volume>9</volume>
          :
          <fpage>3</fpage>
          ,
          <fpage>41</fpage>
          -
          <lpage>54</lpage>
          . DOI:
          <volume>10</volume>
          .14529/mmp160304
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [Zykina et al.,
          <year>2016</year>
          ] Zykina,
          <string-name>
            <given-names>A.V.</given-names>
            &amp;
            <surname>Kaneva</surname>
          </string-name>
          ,
          <string-name>
            <surname>O.N.</surname>
          </string-name>
          (
          <year>2016</year>
          ).
          <article-title>Stochastic optimization models in transportation logistics</article-title>
          .
          <source>Sovremennye informacionnye tekhnologii i IT-obrazovanie</source>
          ,
          <volume>12</volume>
          (
          <issue>1</issue>
          ),
          <fpage>251</fpage>
          -
          <lpage>255</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          <source>[Sakalauskas</source>
          , 2004] Sakalauskas,
          <string-name>
            <surname>L.</surname>
          </string-name>
          (
          <year>2004</year>
          ).
          <article-title>Application of the Monte-Carlo Method to Nonlinear Stochastic Optimization with Linear Constraints</article-title>
          . Informatica,
          <volume>2</volume>
          ,
          <fpage>271</fpage>
          -
          <lpage>282</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [Bazaraa et al.,
          <year>1998</year>
          ] Bazaraa,
          <string-name>
            <given-names>M. S.</given-names>
            &amp;
            <surname>Shetty</surname>
          </string-name>
          ,
          <string-name>
            <surname>C.</surname>
          </string-name>
          (
          <year>1998</year>
          ).
          <article-title>Nonlinear Programming</article-title>
          .
          <source>Theory and Algorithms</source>
          . New York: Wiley.
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          <source>[Kaneva</source>
          , 2005] Kaneva,
          <string-name>
            <surname>O.N.</surname>
          </string-name>
          (
          <year>2005</year>
          ).
          <article-title>Non-linear two-stage problem of stochastic programming with a deterministic matrix correction</article-title>
          .
          <source>Mathematical structures and modeling</source>
          ,
          <volume>25</volume>
          -
          <fpage>33</fpage>
          .
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>