OR - 3rd Meeting For Upload
OR - 3rd Meeting For Upload
1
George Dantzig is commonly referred to as the father of linear programming because of the development of the simplex method and many key subsequent contributions.
Dr. Dantzig remained professionally active right up until he passed away in 2005 at the age of 90.
CPF Solution Z
(0, 0) 0
(0, 6) 30
(2, 6) 36
(4, 3) 27
(4, 0) 12
• Solution concept 3: Whenever possible, the initialization of the simplex method chooses the origin (all decision
variables equal to zero) to be the initial CPF solution.
• Solution concept 4: Given a CPF solution, it is much quicker computationally to gather information about its
adjacent CPF solutions than about other CPF solutions.
• Solution concept 5: After the current CPF solution is identified, the simplex method examines each of the edges
of the feasible region that emanate from this CPF solution. Among the edges with a positive rate of improvement
in Z, it then chooses to move along the one with the largest rate of improvement in Z.
• Solution concept 6: The optimality test consists simply of checking whether any of the edges give a positive rate
of improvement in Z. If none do, then the current CPF solution is optimal.
Augmented form
subject to subject to
(1) x1 ≤4 (1) x1 + s1 =4
(2) 2x2 ≤ 12 (2) 2x2 + s2 = 12
(3) 3x1 + 2x2 ≤ 18 (3) 3x1 + 2x2 + s3 = 18
and x1, x2 ≥ 0 and x1, x2, s1, s2, s3 ≥ 0
The initial BF solution is: (x1, x2, s1, s2, s3) = (0, 0, 4, 12, 18) with Z = 0.
2Thismethod of determining the number of degrees of freedom for a system of equations is valid as long as the system does not include any redundant equations.
This condition always holds for the system of equations formed from the functional constraints in the augmented form of a linear programming model.
(1) x1 + s1 =4 (a) (1) s1 = 4 Step (b) is called the minimum ratio test.
The objective is to determine which basic variable
(2) 2x2 + s2 = 12 (2) s2 = 12 – 2x2 drops to zero first as the entering basic variable
(3) 3x1 + 2x2 + s3 = 18 (3) s3 = 18 – 2x2 is increased.
s2 is then the leaving basic variable.
(b)
(1) s1 = 4 ≥ 0 ⇒ no upper bound on x2
(2) s2 = 12 – 2x2 ≥ 0 ⇒ x2 ≤ (12/2) = 6 ← minimum
(3) s3 = 18 – 2x2 ≥ 0 ⇒ x2 ≤ (18/2) = 9
(0) Z – 3x1 – 5x2 – 0s1 – 0s2 – 0s3 = 0 r*(2) = r(2)/2 (0) Z – 3x1 + 5/2 s2 – 0s3 = 30
(1) x1 + s1 =4 (1) x1 + s1 =4
(2) 2x2 + s2 = 12 r*(0) = r(0) + 5r*(2) (2) x2 + ½ s2 =6
(3) 3x1 + 2x2 + s3 = 18 r*(3) = r(3) – 2r*(2) (3) 3x1 – s2 + s3 = 6
(1) s1 = 4 – x1 ⇔ s1 = 4
Solving with Gaussian elimination
(3) s3 = 6 – 3x1 – s2 ⇔ s3 = 6
The new BF solution is: (x1, x2, s1, s2, s3) = (0, 6, 4, 0, 6) with Z = 30.
The new BF solution is: (x1, x2, s1, s2, s3) = (2, 6, 2, 0, 0) with Z = 36.
(s2 or s3)
Eq. (2) in Iteration 0 (or pivot row) is divided by the pivot number (= 2)
Eq. (0) in Iteration 0 + (5 × the new pivot row), to make the new pivot column equals zero
Do for other rows!
s3
• Optimality test:
The current BF solution is optimal, s1
with the value of each basic variable:
s1 = 2, x2 = 6, x1 = 2; and Z = 36. s3
s1
Using matrices, the “standard form” for the general linear programming model becomes
Maximize Z = cx c is the row vector: c = [c1, c2, …, cn]
x, b, and 0 are the column vectors, and A is the matrix:
Subject to Ax ≤ b
and x≥0 x1 b1 0 a11 a12 ⋯ a1n
x2 b2 0 a a ⋯ a2n
x= ⋮ ; b= ⋮ ; 0= ⋮ ; A = 21 22
⋮ ⋮ ⋱ ⋮
xn bm 0 am1 am2 ⋯ amn
s1
To obtain the augmented form,
s2 The constrains become: [A, I] x = b; and x ≥0
the column vector of slack s s
s= ⋮
variables is introduced:
sn I is the identity matrix
Matrix form
subject to
(1) x1 + s1 =4 x
subject to [A, I] =b
s
(2) 2x2 + s2 = 12
(3) 3x1 + 2x2 + s3 = 18 x
and ≥0
and x1, x2, s1, s2, s3 ≥ 0 s
c = [3, 5]
1 0 1 0 0
[A, I] = 0 2 0 1 0
3 2 0 0 1
4 x1 s1
b = 12 x = x2 s= s2
18 s3
B is the basis matrix, obtaining by eliminating the columns corresponding to coefficients of non-basic variables from [A, I].
The simplex method introduces only basic variables such that B is non-singular, so that B−1 always will exist.
1 0 0 1 0 0 4 4
B = B-1 = 0 1 0 Since B B-1 = I, the solution for the basic variables is xB = B-1b = 0 1 0 12 = 12
0 0 1 0 0 1 18 18
4
The value of the objective function for this basic solution is then: Z = cBxB = cB B-1b = [0, 0, 0] 12 = 0
18
• Iteration 1
Step 1: Determine the entering basic variable
Select the variable with the negative coefficient having the largest absolute value as the entering basic variable.
The coefficients of non-basic variables: cBB−1A − c = [−3, −5]
Since −5 is larger in absolute value than −3, the entering basic variable is x2.
4
Apply the minimum test ratio from xB = B-1b: 12/2 = 6 minimum, so the leaving basic variable is s2
18/2 = 9
4
12
18
• Optimality test
1 0 0 1 0 1 0
for x1: cBB−1A − c = [0, 5, 0] 0 ½ 0 0 2 − [3, 5] = [0, 5, 0] 0 1 − [3, 5] = [−3, ]
0 −1 1 3 2 3 0
1 0 0
for s2: cBB−1 = [0, 5, 0] 0 ½ 0 = [ , 5/2, ]
0 −1 1 not optimal
4/1 = 4
Apply the minimum test ratio from xB = B-1b: 6
6/3 = 2 minimum, so the leaving basic variable is s3
1 1/3 −1/3 4 2 2
Calculate xB = B−1b = 0 ½ 0 12 = 6 Z = cBxB = cBB-1b = [0, 5, 3] 6 = 36
0 −1/3 1/3 18 2 2
• Optimality test
1 1/3 −1/3
for s2 and s3: cBB−1 = [0, 5, 3] 0 ½ 0 =[ , 3/2, 1] optimal
0 −1/3 1/3