Pertemuan 3 Or

download Pertemuan 3 Or

of 24

Transcript of Pertemuan 3 Or

  • 8/11/2019 Pertemuan 3 Or

    1/24

    PENELITIAN OPERASIONAL I

    (TIN 4109)

  • 8/11/2019 Pertemuan 3 Or

    2/24

    Lecture 3

    LINEAR PROGRAMMING

  • 8/11/2019 Pertemuan 3 Or

    3/24

    Lecture 3

    Outline:

    Simplex Method

    References:

    Frederick Hillier and Gerald J. Lieberman.

    Introduction to Operations Research. 7th ed. The

    McGraw-Hill Companies, Inc, 2001.

    Hamdy A. Taha. Operations Research: An

    Introduction. 8th Edition. Prentice-Hall, Inc, 2007.

  • 8/11/2019 Pertemuan 3 Or

    4/24

    Simplex Method:

    Simplex: Algoritma untuk menyelesaikan LP

    Dipublikasikan pertama kali oleh George B. Dantzig

    G.B Dantzig: Maximization of a linear functionof variables subject to linear inequalities, 1947

  • 8/11/2019 Pertemuan 3 Or

    5/24

    Simplex Methods

    Visualizing

    (6,11)

    (6,3)

    (3,11)

    (3,0)(0,0)

    (0,2)

  • 8/11/2019 Pertemuan 3 Or

    6/24

    Linear Program

  • 8/11/2019 Pertemuan 3 Or

    7/24

    Linear Program in Matrix Form

  • 8/11/2019 Pertemuan 3 Or

    8/24

    Simplex Method:Standard LP Form

    Properties:

    Semua konstrain adalah persamaan dengan nilaibukan negatif pada sisi kanan (nonnegative)

    Smua variabel bernilai bukan negatif (nonnegative) Langkah-langkah:

    Mengkonversi pertidaksamaan menjadi persamaandengan nilai bukan negatif (nonnegative) pada sisi

    kanan Mengkonversi unrestricted variabel menjadi bukan

    negatif (nonnegative) variabel

  • 8/11/2019 Pertemuan 3 Or

    9/24

    Simplex Method:SLACK, SURPLUS, and Unrestricted variable

    Definisi: SLACK variable ():

    variable yang menyatakan penggunaan jumlah kelebihan resources(unused resources) untuk menjadikan konstrain bertanda kurang dari() menjadi persamaan (=).

    Contoh: 6 4 24 6 4 = 24; 0

    SURPLUS / excess variable () variable yang menyatakan penyerapan persamaan sisi kiri untuk

    memenuhi batasan minimum resources sehingga menjadikankonstrain bertanda lebih dari () menjadi persamaan (=).

    Contoh: 800 6 4 = 800; 0

    Unrestricted variable variable yang tidak memiliki batasan, dapat bernilai berapapun [(+); 0;

    atau (-)], dapat menggunakan slack dan surplus variable, secaramatematis tidak jelas

    maka unrestricted var. perlu diubah menjadi +

    ; +,

    0

    Contoh:

    .

    =

    +

    ;

    +,

    0

  • 8/11/2019 Pertemuan 3 Or

    10/24

    Simplex Method:Standard LP Form

    Contoh:

    = 2 3 5

    Subject to

    5

    6 7 9 4 4 = 10

    , 0

    = 2 3 5+ 5

    Subject to

    +

    = 5

    6 7 9+ 9 = 4 4

    + 4 = 10

    , , +,

    , , 0

    . 2 3 5+ 5

    0 0 = 0

    Subject to

    +

    = 5

    6 7 9+ 9

    = 4

    4+ 4

    = 10

    , , +

    ,

    , , 0

  • 8/11/2019 Pertemuan 3 Or

    11/24

    Simplex Method:Transition from graphical to algebraic solution

    Use the objective function to

    determine the optimum corner pointfrom among all the candidates

    Identify feasible corner points of thesolution space

    Candidates for the optimum solution are

    given by afinitenumber of corner points

    Graph all contraints, including non

    negativity restriction

    Solution space consists of infinity of

    feasible points

    GRAPHICAL METHOD

    Use the objective function to determine

    the optimum basic feasible solutionfrom among all the candidates

    Determine the feasible basic solutionsof the equations

    Candidates for the optimum solution are given by afinitenumber of basic feasible solutions

    Represent the solution space by m equations in the n

    variables and restrict all variable s to nonnegativityvalues, m < n

    The system has infinity of feasible solutions

    ALGEBRAIC METHOD

  • 8/11/2019 Pertemuan 3 Or

    12/24

    Simplex Method:Beberapa Definisi

    Basic Variable Non zero-valued variable of basic solution

    Non Basic Variable

    Zero-valued variable of basic solution

    Basic Solutions

    solution obtained from standard LP with at most m non-zero

    Basic Feasible Solutions

    a basic solution that is feasible

    at most

    One of such solutions yields optimum if it exists

    Adjacent basic feasible solution

    differs from the present basic feasible solution in exactly one basic variable

    mn

    mnm

    n

    m

    n

    ;

    )!(!

    ! n = number of variablem = number of contraint

  • 8/11/2019 Pertemuan 3 Or

    13/24

    Simplex Method:Beberapa Definisi

    Simplex algorithm moves from basic feasible solution to basic feasible solution; ateach iteration it increases (does not decrease) the objective function value.

    Pivot operation

    a sequence of elementary row operations that generates an adjacent basic

    feasible solution

    chooses a variable to leave the basis, and another to leave the basis

    Entering variable

    Non-basic variable with the most negative (most positive) coefficient for

    maximize (minimize) objective function in the z-row

    Optimum is reached at the iteration where all z-row coefficients of the

    nonbasic variables are nonnegative (nonpositive) for maximize (minimize)

    function (Optimality condition)

    Leaving Variable

    one of current basic variable that should be forced to zero level when entering

    level variable

    chosen via a ratio test: the smallest (nonngeative) ratio (Feasibility condition)

  • 8/11/2019 Pertemuan 3 Or

    14/24

    Simplex Method:

    Iterasi

    Step 0: Determine a starting basic feasiblesolution.

    Step 1: Select an entering variable using the

    optimality condition. Stop if there isno entering variable.

    Step 2: Select a leaving variable using thefeasibility condition.

    Step 3: Determine the new basic solution byusing the appropriate Gauss-Jordancomputation. Go to step 1.

  • 8/11/2019 Pertemuan 3 Or

    15/24

    Contoh Soal

    Maximize z = 5 4

    Subject to:

    6 4 24

    2 6

    1

    2, 0

    Standard LP:

    Maximize z 5 4 0 0 0 0

    Subject to:

    6 4 = 24

    2 = 6

    = 1 = 2

    , , , , , 0

    Basic

    Solutionz 1 -5 -4 0 0 0 0 0 z-row

    0 6 4 1 0 0 0 24 -row

    0 1 2 0 1 0 0 6 -row

    0 -1 1 0 0 1 0 1 -row

    0 0 1 0 0 0 1 2 -row

    TABEL SIMPLEX:

  • 8/11/2019 Pertemuan 3 Or

    16/24

    Basic Solution Ratio

    6 2424

    6= 4 ()

    1 6 6

    1 = 6

    -1 1 1

    1= 1 ()

    0 22

    0= ()

    Basic z Solution

    z 1 -5 -4 0 0 0 0 0 z-row

    0 6 4 1 0 0 0 24 -row

    0 1 2 0 1 0 0 6 -row

    0 -1 1 0 0 1 0 1 -row

    0 0 1 0 0 0 1 2 -row

    Entering variable

    Leaving variable

  • 8/11/2019 Pertemuan 3 Or

    17/24

    STEPS:

  • 8/11/2019 Pertemuan 3 Or

    18/24

    Basic z Solution

    z 1 0 -

    5

    6

    0 0 0 20

    0 14

    6

    1

    6 0 0 0 4

    0 04

    3

    1

    6 1 0 0 2

    0 05

    3

    1

    6 0 1 0 5

    0 0 1 0 0 0 1 2

    New z = old z + (new value x its objective coefficient)

    = 0 + (4 x 5)

  • 8/11/2019 Pertemuan 3 Or

    19/24

    Basic z Solution

    z 1 0 -

    5

    6 0 0 0 20

    0 1 46

    16

    0 0 0 4

    0 04

    3

    1

    6 1 0 0 2

    0 05

    3

    1

    6 0 1 0 5

    0 0 1 0 0 0 1 2

    Entering variable

    Leaving variable

    Basic Solution Ratio

    4

    6 4 4

    4

    6= 6

    4

    3 2 2

    4

    3=

    3

    2()

    5

    3 5 5

    5

    3= 3

    1 22

    1= 2

  • 8/11/2019 Pertemuan 3 Or

    20/24

    Basic z Solution

    z 1 0 0 34

    1

    2 0 0 21

    0 1 0 1

    4

    1

    20 0 3

    0 0 1 1

    8

    3

    4 0 0

    3

    2

    0 0 03

    8

    5

    4 1 0

    5

    2

    0 0 01

    8

    3

    4

    0 11

    2

    HASIL OPTIMAL:

  • 8/11/2019 Pertemuan 3 Or

    21/24

    Latihan Soal

  • 8/11/2019 Pertemuan 3 Or

    22/24

    Latihan Soal

  • 8/11/2019 Pertemuan 3 Or

    23/24

    Lecture 4 - Preparation

    Read and Practice:

    Simplex: 2 Fase

    Hamdy A. Taha. Operations Research: An Introduction.

    8th Edition. Prentice-Hall, Inc, 2007. Chapter 3.

  • 8/11/2019 Pertemuan 3 Or

    24/24