1. Not finding help here? Sign up for a free 30min tutor trial with Chegg Tutors
    Dismiss Notice
Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Complementary slackness and the transportation problem

  1. Aug 22, 2007 #1
    hello,I have been given the transportation problem (T)

    defined by the cost matrix
    [tex]
    \left(\begin{array}{ccccccc}5&3&9&3&8&2\\5&6&3&15&7&16\\9&20&10&22&17&25\\3&7&3&14&9&14\end{array}\right)
    [/tex]


    the demand vector q=(2,8,9,4,6,2)

    the supply vector p=(3,13,6,9)

    the problem is as follows

    a) use the northwest vertex rule to find a basic feasible solution of (T)

    ...this i found to be

    [tex]
    \left(\begin{array}{ccccccc}2&1&0&0&0&0\\0&7&6&0&0&0\\0&0&3&3&0&0\\0&0&0&1&6&2\end{array}\right)
    [/tex]



    (b) write down the linear program for the dual program (T*)

    ...this i found to be

    (T*)

    [tex]
    maximize \sum_{i=1}^{4}p_i y_i + \sum_{j=1}^{6}q_j z_j
    [/tex]

    subject to
    [tex]
    \\ y_i + z_j \leq c_ij, y_1,....,y_4,z_1,.....z_6,
    [/tex]

    (c) use the complementary slackness conditions to show that the shipping matrix

    [tex]
    \left(\begin{array}{ccccccc}0&0&0&1&0&2\\0&7&0&0&6&0\\2&0&4&0&0&0\\0&1&5&3&0&0\end{array}\right)
    [/tex]

    solves (T)

    now since i have
    [tex] x_i_j > 0 [/tex]

    for (i,j) = (1,4), (1,6), (2,2), (2,5), (3,1), (3,3), (4,2), (4,3), (4,4) complementary slackness implies that the associated dual constraints are binding and we have a system of nine equations in 10 unknowns. Now here is the rub. I would usually progress by substituting the above values (from the shipping matrix) into the primal constraints and derive that one of them is non binding, then deduce that the associated dual variable is zero by complementary slackness. However since we have here supply=demand, no such constraint will occur. I have done a similar problem where the next progression was to assume that one of the dual variables say [tex] y_1 [/tex] is 0 and then the system of nine equalities from above are solvable, however if as an example i take y_1 =0, this implies that z_3 =-8 which is infeasible. Infact as it turned out assuming any dual variable [tex] y_1, ...y_4, z_1,.....,z_6 [/tex] to be zero will lead to another dual vaiable in the system being negative. What am I missing:confused:
    1. The problem statement, all variables and given/known data



    2. Relevant equations



    3. The attempt at a solution
    1. The problem statement, all variables and given/known data



    2. Relevant equations



    3. The attempt at a solution
    1. The problem statement, all variables and given/known data



    2. Relevant equations



    3. The attempt at a solution
     
  2. jcsd
  3. Aug 22, 2007 #2

    EnumaElish

    User Avatar
    Science Advisor
    Homework Helper

    What is the interpretation or the units of the y's and the z's? Miles? Tons?
     
  4. Aug 23, 2007 #3
    i don't think so, the variables [tex] y_i, z_j [/tex] are dual variables, i don't think they have units as such. The primal problem was to minimize cost subject to some constraints, more specifically,
    [tex]

    minimize \sum_{i=1}^{4}\sum_{j=1}^{6}c_ij x_ij[/tex]

    subject to
    [tex] x_ij \geq 0

    \sum_{j=1}^{6}x_ij \leq p_i, i= 1,...,4
    \sum_{i=1}^{4}x_ij \geq q_j, j=1,...,6 [/tex]
     
    Last edited: Aug 23, 2007
  5. Sep 13, 2007 #4

    EnumaElish

    User Avatar
    Science Advisor
    Homework Helper

    How do you figure demand = supply? Is that part of the problem, or are you assuming it? Why can't demand < supply, or demand > supply?
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Have something to add?



Similar Discussions: Complementary slackness and the transportation problem
  1. Transportation problem (Replies: 1)

Loading...