OR 2
OR 2
PHARAMA COLLEGE
Steps in application:
Implementation
Characteristics of Linear Programming Model
5
Max Z = 40x1 + 35 x2
Subject to:
Raw material: 2x1 + 3x2 ≥ 60
Labour: 4x1 + 3x2 ≤ 96
Non-negativity: X1, x2 ≥ 0
Example 2
19
If the capacities available are 1000, 1500, and 750 machine hours
in each processes respectively, formulate the problem as LP?
Conti…
21
Type 1 Type 2
Profit 60 50
Assembly time 4 10
Inspection time 2 1
Storage space/unit 3 3
The manager also met with the firms marketing manager and
learn that the demand for Micro-computer was such that
whatever combination of these two types of Micro-computers
produced all of the outputs can be sold.
Max Z = 60x1 + 50 x2
Subject to:
Assembly time: 4x1 + 10x2 ≤ 100
Inspection time: 2x1 + x2 ≤ 22
Storage space: 3x1 + 3x2 ≤ 39
Non-negativity: X1, x2 ≥ 0
Example 4
28
Max Z = 40x1 + 35 x2
Subject to:
Raw material: 2x1 + 3x2 ≥ 60
Labour: 4x1 + 3x2 ≤ 96
Non-negativity: X1, x2 ≥ 0
Minimization case
31
General format
Min.C = c1 x1+c2x2+ … + Cn xn
Subt to:
Subject to:
Grade A : 20x1 + 30x2 ≥ 1400
Grade B : 40x1 + 40x2 ≥ 1200
Non-negativity: X1, x2 ≥ 0
Example 3
38
Multiple optimal solution – More than one solution with the same
optimal value of the objective function.
Conti…
45
Step 3: Determine the region or area that contains all the points
that satisfy the entire set of constraints. Then,
Step 4: select the one with the highest or lowest value of the
objective function depending on the optimization case and make
an interpretation.
The first constraint 3x1 + 2x2 ≥ 60, written in a form of equation 3x1 + 2x2 = 60
Let x1 =0, then x2 = 30, let x2 =0, then x1 = 20 and the coordinates are (0, 30)
and (20, 0)
The second constraint 7x1 + 2x2 ≥ 84, written in the equation 7x1 + 2x2 = 84
Let x1 =0, then x2 = 42, let x2 =0, then x1 = 12 and the coordinates are (0, 42)
and (12, 0)
The third constraint 3x1 +6x2 ≥ 72, written in a form of equation 3x1 +6x2 = 72
Put x1 =0, then x2 = 12 and let x2 =0, then x1 = 24 and the coordinates are (0,
12) and (24, 0)
Conti…
57
0
Simplex Method
65
1) List the variables in the model across the top of the tableau.
3) Add two columns to the left side of the tableau. The first
column is a list of variables called Basis.
6) There are two more rows at the bottom of the tableau. The first
raw is a Z - row. For each column the Z – value is obtained by
multiplying each of the number of the column by their respective
row coefficient in column C.
7) The last raw is Cj-Z row. The values in this row are also
calculated column by column. For each Column, the value in row
Z is subtracted from the C value in the top row.
Conti…
68
Remark:
A simplex solution for a maximization problem is optimal if
and only if cj – z row contains only zeros and negative
value (i.e. if there are no positive values in the cj – z row).
Note: if the solution is not optimal the steps 2-6 will be repeated
again and again until the optimal solution is obtained!
Example
72
Z Max = 60X1+50X2
Subject to
In computing for the new row values from our initial simplex
tableau, we first multiply the second constraint by ½ obtaining
the values as follows:
1X1+1/2X2+0S1+1/2S2+0S3 = 11, which results in making
the pivot element 1.
Next, we multiply the above new row values by 4 and subtract it
from the first constraint obtaining the following results:
0X1+8X2+1S1+2S2+0S3 = 56.
Then, we multiply the new row values in the pivot row by 3 and
subtract it from the third constraint resulting as follows:
0X1+3/2X2+0S1-3/2S2+1S3 = 6
Conti…
76
The entering variable is the one with the highest Cj-Zj row value
which is the X2 column. This means that bringing one unit of X2
into the solution increases profit by $20. Therefore, the X2 will be
the entering variable designated as the pivot column.
For row 2, first multiply the new row values in the pivot row by
½ and subtract it from the second row resulting as follows:
1X1+0X2+0S1+1S2+-1/3S3 = 9.
ZMin = 7X1+9X2
Subject to 3X1+6X2 >= 36
8X1+4X2 > = 64
X1, X2 > = 0
Conti…
84
ZMin = 7X1+9X2+0S1+0S2+MA1+MA2
Subject to 3X1+6X2 - S1+A1 = 36
8X1+4X2 - S2+A2 = 64
X1, X2 > = 0
Conti…
85
Cj 7 9 0 0 M Quantity
Basic V. X1 X2 S1 S2 A1
A1 M 0 9/2 -1 3/8 1 12
X1 7 1 ½ 0 -1/8 0 8
Zj 7 7/2+9/2M -M 3/8M-7/8 M 56+12M
Cj-Zj 0 11/2-9/2M M 7/8-3/8M 0
Conti…
87
Cj 7 9 0 0 Quantity
Basic V. X1 X2 S1 S2
X2 9 0 1 -2/9 1/12 8/3
X1 7 1 0 1/9 -1/6 20/3
Zj 7 9 -11/9 -5/12 212/3
Cj-Zj 0 0 11/9 5/12