Operations Final case

download Operations Final case

of 107

Transcript of Operations Final case

  • 7/29/2019 Operations Final case

    1/107

    Group - 4

    Aakash B. Pathak (PB1101)

    Abhishek Mandloi (PA1101)

    Anamika Singh (PA1117)Kuntal Chatterjee (PA1118)

    Rohit Sharma (PA1129)

    Shalinee Pujari(PA1133)

    Sumit Kumar(PB1117)

  • 7/29/2019 Operations Final case

    2/107

    Introduction

    Linear programming (LP, orlinear

    optimization) is a mathematical method for

    determining a way to achieve the best outcome

    (such as maximum profit or lowest cost) in a

    given mathematical model for some list of

    requirements represented as linear

    relationships. Linear programming is a specificcase of mathematical programming

    (mathematical optimization)

  • 7/29/2019 Operations Final case

    3/107

    Terminology

    Objective Function(Zmax/min

    ):The solution of

    a linear-programming problem reduces to

    finding the optimum value (largest or smallest,

    depending on the problem) of the linear

    expression called the objective function.

    For example, in our problem the objective function is:

    Z(min)=125X1+121X2+118X3+132X4+124X5+119X6+130X7+126X8+129X9+123X10+ 125X11+129X12+

    0.X13+0.X14+0.X15+ 0.X16

  • 7/29/2019 Operations Final case

    4/107

    Constraint: In mathematics, a constraint is a condition

    that a solution to an optimization problem is required by

    the problem itself to satisfy. There are two types of

    constraints: equality constraints and inequality

    constraints. The set of candidate solutions that satisfy

    all constraints is called thefeasible set.

    Decision Variable: in our equation, X1, X2, X3,.,

    X16 are the decision variables.

  • 7/29/2019 Operations Final case

    5/107

    W1 W2 W3 W4 Supply

    P1 125 121 118 132 400

    P2 124 119 130 126 300

    P3 129 123 125 129 500

    P4 0 0 0 0 600

    Demand 200 300 700 600

    Q.1Formulate the primal

    model

  • 7/29/2019 Operations Final case

    6/107

    Primal Solution

    Objective Function

    Z(min)=125X1+121X2

    +118X3+132X4+124X5

    +119X6+130X7+126X8+129X9+123X10+

    125X11+129X12+

    0.X13+0.X14+0.X15+

    0.X16

    Where, Xi 0.

    i = 1,2,3,16

    Subject to Constraint1. Supply Constraints:

    X1+X2+X3+X4=400

    X5+X6+X7+X8=300

    X9+x10+X11+X12=500 X13+X14+X15+X16=600

    2. Demand Constraints:

    X1+X5+X9+X13=200

    X2+X6+X10+X14=300

    X3+X7+X11+X15=700

    X4+X8+X12+X16=600

  • 7/29/2019 Operations Final case

    7/107

    W1 W2 W3 W4 Supply

    P1 125 121 118 132 400

    P2 124 119 130 126 300

    P3 129 123 125 129 500

    P4 0 0 0 0 600

    Demand 200 300 700 600

    Q.2Solve the LP using

    Solver

  • 7/29/2019 Operations Final case

    8/107

  • 7/29/2019 Operations Final case

    9/107

    =C4*C14+D4*D14+E4*E14+F4*F14

    +G4*G14+H4*H14+I4*I14+J4*J14+

    K4*K14+L4*L14+M4*M14+N4*N14

    +O4*O14+P4*P14+Q4*Q14+R4*R14

    This one is the formula for the highlighted cell

  • 7/29/2019 Operations Final case

    10/107

    =C5*$C$14+D5*$D$14+E5*$E$14+

    F5*$F$14+G5*$G$14+H5*$H$14+I5

    *$I$14+J5*$J$14+K5*$K$14+L5*$

    L$14+M5*$M$14+N5*$N$14+O5*$

    O$14+P5*$P$14+Q5*$Q$14+R5*$R

    $14

    This one is the formula for the highlighted cell

  • 7/29/2019 Operations Final case

    11/107

  • 7/29/2019 Operations Final case

    12/107

  • 7/29/2019 Operations Final case

    13/107

    Procedure to Solve using solver

    STEP BY STEPFOLLOW THE POINTER

  • 7/29/2019 Operations Final case

    14/107

  • 7/29/2019 Operations Final case

    15/107

  • 7/29/2019 Operations Final case

    16/107

  • 7/29/2019 Operations Final case

    17/107

  • 7/29/2019 Operations Final case

    18/107

  • 7/29/2019 Operations Final case

    19/107

  • 7/29/2019 Operations Final case

    20/107

  • 7/29/2019 Operations Final case

    21/107

  • 7/29/2019 Operations Final case

    22/107

  • 7/29/2019 Operations Final case

    23/107

  • 7/29/2019 Operations Final case

    24/107

  • 7/29/2019 Operations Final case

    25/107

  • 7/29/2019 Operations Final case

    26/107

  • 7/29/2019 Operations Final case

    27/107

  • 7/29/2019 Operations Final case

    28/107

  • 7/29/2019 Operations Final case

    29/107

  • 7/29/2019 Operations Final case

    30/107

    THIS IS THE OPTIMALSOLUTION

  • 7/29/2019 Operations Final case

    31/107

    Here, Zmin = 1,46,000

  • 7/29/2019 Operations Final case

    32/107

  • 7/29/2019 Operations Final case

    33/107

  • 7/29/2019 Operations Final case

    34/107

    Q.3

    Write the Dual Model For the

    primal & report the Solver

    solution

  • 7/29/2019 Operations Final case

    35/107

    Dual Solution

    Objective function

    Z(max)=400U1+300U2+500U3+600U4+200V1+300V2+

    700V3+ 600V4

    Where the dual variables Ui& Vj are unrestricted in

    sign. i = 1,2,3,4

    j = 1,2,3,4

    Subject to constraint

    U1+V1125

    U1+V2121

    U1+V3118

    U1+V4132

    U2+V1124

    U2+V2119

    U2+V3130

    U2+V4126

    U3+V1129

    U3+V2123

    U3+V3125 U3+V4129

    U4+V10

    U4+V20

    U4+V30

    U4+V40

  • 7/29/2019 Operations Final case

    36/107

  • 7/29/2019 Operations Final case

    37/107

  • 7/29/2019 Operations Final case

    38/107

  • 7/29/2019 Operations Final case

    39/107

    =C4*C22+D4*D22+E4*E22+F4*

    F22+G4*G22+H4*H22+I4*I22+J

    4*J22

  • 7/29/2019 Operations Final case

    40/107

    =C6*$C$22+D6*$D$22+E6*$E$

    22+F6*$F$22+G6*$G$22+H6*$

    H$22+I6*$I$22+J6*$J$22

  • 7/29/2019 Operations Final case

    41/107

    Procedure to Solve using solver

    STEP BY STEPFOLLOW THE POINTER

  • 7/29/2019 Operations Final case

    42/107

  • 7/29/2019 Operations Final case

    43/107

  • 7/29/2019 Operations Final case

    44/107

  • 7/29/2019 Operations Final case

    45/107

  • 7/29/2019 Operations Final case

    46/107

  • 7/29/2019 Operations Final case

    47/107

  • 7/29/2019 Operations Final case

    48/107

  • 7/29/2019 Operations Final case

    49/107

  • 7/29/2019 Operations Final case

    50/107

  • 7/29/2019 Operations Final case

    51/107

  • 7/29/2019 Operations Final case

    52/107

  • 7/29/2019 Operations Final case

    53/107

  • 7/29/2019 Operations Final case

    54/107

  • 7/29/2019 Operations Final case

    55/107

  • 7/29/2019 Operations Final case

    56/107

    THIS IS THE OPTIMAL

    SOLUTION

  • 7/29/2019 Operations Final case

    57/107

  • 7/29/2019 Operations Final case

    58/107

  • 7/29/2019 Operations Final case

    59/107

  • 7/29/2019 Operations Final case

    60/107

    Here, Zmin value from dual model is 1,46,000.

    Also, Zmin value from primal model is 1,46,000

    It indicates that our both model is equal to each other.

  • 7/29/2019 Operations Final case

    61/107

    W1 W2 W3 W4 Supply

    P1 125 121 118 132 400

    P2 124 119 130 126 300

    P3 129 123 125 129 500

    P4 0 0 0 0 600Demand 200 300 700 600

    Q.4

    Obtain the optimal solution by

    LCM & UV method.

  • 7/29/2019 Operations Final case

    62/107

    D1 D2 D3 D4 Supply

    S1 125 121 118 132 400

    S2 124 119 130 126 300

    S3 129 123 125 129 500

    S4 0 0 0 0 600Demand 200 300 700 600

    Solution of Transportation Problem Using Least Cost Method

    TOTAL no. of supply constraints : 4

    TOTAL no. of demand constraints : 4Problem Table is

  • 7/29/2019 Operations Final case

    63/107

    D1 D2 D3 D4 Supply

    S1 125 121 118 132 400

    S2 124 119 130 126 300

    S3 129 123 125 129 500

    S4 0(200) 0 0 0 400

    Demand 0 300 700 600

    Allocate At [4][1] = 200

    Step = 1

  • 7/29/2019 Operations Final case

    64/107

    D1 D2 D3 D4 Supply

    S1 125 121 118 132 400

    S2 124 119 130 126 300

    S3 129 123 125 129 500

    S4 0(200) 0(300) 0 0 100

    Demand 0 0 700 600

    Allocate At [4][2] = 300

    Step = 2

  • 7/29/2019 Operations Final case

    65/107

    D1 D2 D3 D4 Supply

    S1 125 121 118 132 400

    S2 124 119 130 126 300

    S3 129 123 125 129 500

    S4 0(200) 0(300) 0(100) 0 0

    Demand 0 0 600 600

    Allocate At [4][3] = 100

    Step = 3

  • 7/29/2019 Operations Final case

    66/107

    D1 D2 D3 D4 Supply

    S1 125 121 118(400) 132 0

    S2 124 119 130 126 300

    S3 129 123 125 129 500

    S4 0(200) 0(300) 0(100) 0 0

    Demand 0 0 200 600

    Allocate At [1][3] = 400

    Step = 4

  • 7/29/2019 Operations Final case

    67/107

    D1 D2 D3 D4 Supply

    S1 125 121 118(400) 132 0

    S2 124 119 130 126 300

    S3 129 123 125(200) 129 300

    S4 0(200) 0(300) 0(100) 0 0

    Demand 0 0 0 600

    Allocate At [3][3] = 200

    Step = 5

  • 7/29/2019 Operations Final case

    68/107

    D1 D2 D3 D4 Supply

    S1 125 121 118(400) 132 0

    S2 124 119 130 126(300) 0

    S3 129 123 125(200) 129 300

    S4 0(200) 0(300) 0(100) 0 0

    Demand 0 0 0 300

    Allocate At [2][4] = 300

    Step = 6

  • 7/29/2019 Operations Final case

    69/107

    D1 D2 D3 D4 Supply

    S1 125 121 118(400) 132 0

    S2 124 119 130 126(300) 0

    S3 129 123 125(200) 129(300) 0

    S4 0(200) 0(300) 0(100) 0 0

    Demand 0 0 0 0

    Allocate At [3][4] = 300

    Step = 7

  • 7/29/2019 Operations Final case

    70/107

    D1 D2 D3 D4 Supply

    S1 125 121 118(400) 132 400

    S2 124 119 130 126(300) 300

    S3 129 123 125(200) 129(300) 500

    S4 0(200) 0(300) 0(100) 0 600

    Demand 200 300 700 600

    Final Allocation Table is

  • 7/29/2019 Operations Final case

    71/107

    Here m + n - 1 = 4 + 4 - 1 = 7 & No. of basiccell=7

    Hence, (m+n-1) = No. of basic cell

    The solution is feasible.

    Total Transportation cost = 118 400 + 126

    300 + 125 200 + 129 300 + 0 200 + 0

    300 + 0 100 + = 148700

    -----------------------------------------------------------

    The least total transportation cost = 148700

    --------------------------------------------------------

  • 7/29/2019 Operations Final case

    72/107

    D1 D2 D3 D4 Supply Ui

    S1 125 121 118(400) 132 400 118S2 124 119 130 126(300) 300 122

    S3 129 123 125(200) 129(300) 500 125

    S4 0(200) 0(300) 0(100) 0 600 0

    Demand 200 300 700 600Vj 0 0 0 4

    Find Ui and VjFormula: Ui + Vj = COSTij

    UV / MODI / PENALTY method

  • 7/29/2019 Operations Final case

    73/107

    D1 D2 D3 D4 Supply Ui

    S1 125[7] 121[3] 118(400) 132[10] 400 118

    S2 124[2] 119[-3] 130[8] 126(300) 300 122

    S3 129[4] 123[-2] 125(200) 129(300) 500 125

    S4 0(200) 0(300) 0(100) 0[-4] 600 0

    Demand 200 300 700 600

    Vj 0 0 0 4

    Calculate penalties(Pij) for all non-basic

    cell.

    FORMULA: Pij = COSTij (Ui + Vj)

  • 7/29/2019 Operations Final case

    74/107

    D1 D2 D3 D4 Supply Ui

    S1 125[7] 121[3] 118(400) 132[10] 400 118

    S2 124[2] 119[-3] 130[8] 126(300) 300 122

    S3 129[4] 123[-2] 125(200)(+)129(300)

    (-)500 125

    S4 0(200) 0(300) 0(100)(-) 0[-4](+) 600 0

    Demand 200 300 700 600

    Vj 0 0 0 4

    Here, minimum penalty cell is considered as Home

    cell. Cell S4D4 is home cell.

  • 7/29/2019 Operations Final case

    75/107

    D0 D1 D2 D3 Supply Ui

    S0 125 121 118(400) 132 400 122

    S1 124 119 130 126(300) 300 126

    S2 129 123 125(300) 129(200) 500 129

    S3 0(200) 0(300) 0 0(100) 600 0

    Demand 200 300 700 600

    Vj 0 0 -4 0

    Minimum allocation among all -VE Once = 100.

    Substract 100 from all (-) and Add it to all (+).

    Find Ui and Vj

  • 7/29/2019 Operations Final case

    76/107

    D1 D2 D3 D4 Supply Ui

    S1 125[3] 121[-1] 118(400) 132[10] 400 122

    S2 124[-2] 119[-7] 130[8] 126(300) 300 126

    S3 129[0] 123[-6] 125(300) 129(200) 500 129

    S4 0(200) 0(300) 0[4] 0(100) 600 0

    Demand 200 300 700 600

    Vj 0 0 -4 0

    Modified Table 1:

    Calculate penalties(Pij) for all non-basic cell.

    FORMULA: Pij = COSTij (Ui + Vj)

  • 7/29/2019 Operations Final case

    77/107

    D1 D2 D3 D4 Supply Ui

    S1 125[3] 121[-1] 118(400) 132[10] 400 122

    S2 124[-2] 119[-7](+) 130[8] 126(300)(-) 300 126

    S3 129[0] 123[-6] 125(300) 129(200) 500 129

    S4 0(200) 0(300)(-) 0[4] 0(100)(+) 600 0

    Demand 200 300 700 600

    Vj 0 0 -4 0

    Here, minimum penalty cell is considered

    as Home cell. Cell S2D2is home cell.

    Minimum among all -VE Once = 300.

  • 7/29/2019 Operations Final case

    78/107

    D0 D1 D2 D3 Supply Ui

    S0 125 121 118(400) 132 400 -7

    S1 124 119(300) 130 126 300 0

    S2 129 123 125(300) 129(200) 500 0

    S3 0(200) 0 0 0(400) 600 -129

    Demand 200 300 700 600

    Vj 129 0 125 129

    Minimum among all VE Once 300.

    Substract 300 from all (-) and Add it to all (+).

    Find Ui and Vj

    Modified Table 2:

  • 7/29/2019 Operations Final case

    79/107

    D1 D2 D3 D4 Supply Ui

    S1 125[3] 121[128] 118(400) 132[10] 400 -7

    S2 124[-5] 119(300) 130[5] 126[-3] 300 0

    S3 129[0] 123[123] 125(300) 129(200) 500 0

    S4 0(200) 0[129] 0[4] 0(400) 600 -129

    Demand 200 300 700 600

    Vj 129 0 125 129

    Calculate penalties(Pij) for all non-basic

    cell.

    FORMULA: Pij = COSTij (Ui + Vj)

  • 7/29/2019 Operations Final case

    80/107

    D1 D2 D3 D4 Supply Ui

    S1 125[3] 121[128] 118(400) 132[10] 400 -7

    S2 124[-5](+) 119(300) 130[5] 126[-3] 300 0

    S3 129[0] 123[123] 125(300) 129(200) 500 0

    S4 0(200) 0[129] 0[4] 0(400) 600 -129

    Demand 200 300 700 600

    Vj 129 0 125 129

    Here, minimum penalty cell is considered as

    Home cell. Cell S2D1is home cell.

  • 7/29/2019 Operations Final case

    81/107

    D0 D1 D2 D3 Supply Ui

    S0 125 121 118(400) 132 400 -2

    S1 124(-1) 119(300) 130 126 300 0

    S2 129 123 125(300) 129(200) 500 5

    S3 0(200) 0 0 0(400) 600 -124

    Demand 200 300 700 600

    Vj 124 119 120 124

    Modified Table 3:

  • 7/29/2019 Operations Final case

    82/107

    D1 D2 D3 D4 Supply Ui

    S1 125[3] 121[4] 118(400) 132[10] 400 -2

    S2 124(-1) 119(300) 130[10] 126[2] 300 0

    S3 129[0] 123[-1] 125(300) 129(200) 500 5

    S4 0(200) 0[5] 0[4] 0(400) 600 -124

    Demand 200 300 700 600

    Vj 124 119 120 124

    Modified Table 3:

    Calculate penalties(Pij) for all non-basic cell.

    FORMULA: Pij = COSTij (Ui + Vj)

  • 7/29/2019 Operations Final case

    83/107

    D1 D2 D3 D4 Supply Ui

    S1 125[3] 121[4] 118(400) 132[10] 400 -2

    S2 124(-1) 119(300) 130[10] 126[2] 300 0

    S3 129[0] 123[-1](+) 125(300) 129(200) 500 5

    S4 0(200) 0[5] 0[4] 0(400) 600 -124

    Demand 200 300 700 600

    Vj 124 119 120 124

  • 7/29/2019 Operations Final case

    84/107

    D0 D1 D2 D3 Supply Ui

    S0 125 121 118(400) 132 400 -7

    S1 124(-1) 119(300) 130 126 300 -4

    S2 129 123(-1) 125(300) 129(200) 500 0

    S3 0(200) 0 0 0(400) 600 -128

    Demand 200 300 700 600

    Vj 128 123 125 128

    Minimum among all -VE Once = -1.

    Substract -1 from all (-) and Add it to all (+) Find Ui and Vj

  • 7/29/2019 Operations Final case

    85/107

    D1 D2 D3 D4 Supply Ui

    S1 125[4] 121[5] 118(400) 132[11] 400 -7

    S2 124(-1) 119(300) 130[9] 126[2] 300 -4

    S3 129[1] 123(-1) 125(300) 129(200) 500 0

    S4 0(200) 0[5] 0[3] 0(400) 600 -128

    Demand 200 300 700 600

    Vj 128 123 125 128

    Calculate penalties(Pij) for all non-basic cell.

    FORMULA: Pij = COSTij (Ui + Vj)

  • 7/29/2019 Operations Final case

    86/107

    D1 D2 D3 D4 Supply

    S1 125 121 118(400) 132 400S2 124(-1) 119(300) 130 126 300

    S3 129 123(-1) 125(300) 129(200) 500

    S4 0(200) 0 0 0(400) 600

    Demand 200 300 700 600

    Since all Pij0. Hence,the allocation is optimum.

  • 7/29/2019 Operations Final case

    87/107

    Here m + n - 1 = 4 + 4 - 1 = 7 & No. of basic cell=7Hence, (m+n-1) = No. of basic cell

    The solution is feasible.

    Total Transportation cost = (118 400) + (124 -1) +

    (119 300) + (123 -1) + (125 300) + (129 200) +

    (0 200 )+ (0 400 )+ = 145953

    -----------------------------------------------------------

    The minimized total transportation cost = 145953-----------------------------------------------------------

  • 7/29/2019 Operations Final case

    88/107

    W1 W2 W3 W4 Supply

    P1 125 121 118 132 400

    P2 124 119 130 126 300

    P3 129 123 125 129 500

    P4 0 0 0 0 600

    Demand 200 300 700 600

    Q.5

    What will be the impact on the

    planning if the route P2-W3 andthe route P1-W4 are blocked for

    maintenance ? X1 X2 X3 X4 X5 X6 X7 X8 X9 X10 X11 X12 X13 X14 X15 X16

    Z 125 121 118 0 124 119 0 126 129 123 125 129 0 0 0 0

    C1 1 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0

  • 7/29/2019 Operations Final case

    89/107

    C1 1 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0

    C2 0 0 0 0 1 1 1 1 0 0 0 0 0 0 0 0

    C3 0 0 0 0 0 0 0 0 1 1 1 1 0 0 0 0

    C4 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 1

    C5 1 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0

    C6 0 1 0 0 0 1 0 0 0 1 0 0 0 1 0 0

    C7 0 0 1 0 0 0 1 0 0 0 1 0 0 0 1 0

    C8 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 1

    DV

    Z 0

    LHS RHS

    0 400

    0 3000 500

    0 600

    0 200

    0 300

    0 700

    0 600

    =C4*C14+D4*D14+E4*E1

    4+F4*F14+G4*G14+H4*H14+I4*I14+J4*J14+K4*K1

    4+L4*L14+M4*M14+N4*

    N14+O4*O14+P4*P14+Q4

    *Q14+R4*R14

  • 7/29/2019 Operations Final case

    90/107

    Procedure to Solve using solver

    STEP BY STEP

    FOLLOW THE POINTER

  • 7/29/2019 Operations Final case

    91/107

  • 7/29/2019 Operations Final case

    92/107

  • 7/29/2019 Operations Final case

    93/107

  • 7/29/2019 Operations Final case

    94/107

  • 7/29/2019 Operations Final case

    95/107

  • 7/29/2019 Operations Final case

    96/107

  • 7/29/2019 Operations Final case

    97/107

  • 7/29/2019 Operations Final case

    98/107

  • 7/29/2019 Operations Final case

    99/107

  • 7/29/2019 Operations Final case

    100/107

  • 7/29/2019 Operations Final case

    101/107

  • 7/29/2019 Operations Final case

    102/107

  • 7/29/2019 Operations Final case

    103/107

  • 7/29/2019 Operations Final case

    104/107

  • 7/29/2019 Operations Final case

    105/107

    X1 X2 X3 X4 X5 X6 X7 X8 X9 X10 X11 X12 X13 X14 X15 X16

    Z 125 121 118 0 124 119 0 126 129 123 125 129 0 0 0 0

    C1 1 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0

  • 7/29/2019 Operations Final case

    106/107

    C2 0 0 0 0 1 1 1 1 0 0 0 0 0 0 0 0

    C3 0 0 0 0 0 0 0 0 1 1 1 1 0 0 0 0

    C4 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 1

    C5 1 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0

    C6 0 1 0 0 0 1 0 0 0 1 0 0 0 1 0 0

    C7 0 0 1 0 0 0 1 0 0 0 1 0 0 0 1 0

    C8 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 1

    DV 0 0 0 400 0 0 300 0 0 300 200 0 200 0 200 200

    Z 61900

    LHS RHS

    400 400

    300 300

    500 500

    600 600

    200 200

    300 300

    700 700

    600 600

    THIS IS THE OPTIMAL

    SOLUTION

  • 7/29/2019 Operations Final case

    107/107

    If we blocked the route P2-W3 &

    the route P1-W4, then then the

    minimum cost Z=61,900