Linear Programming Notes October
Linear Programming Notes October
Reminder :
f* =
A' Bb For change in b
cBA*
*
c
=
c- For change in c
* *
2
=
zot Cpt
↓
Alternatively ,
use objective function
& Cixi
<
Primal objective function
● xn+1 = new variable →cost coefficient cn+1 → add column of coefficients for the constraints A(n+1)
o Original minimize z = c X → minimize new z = c X+ cn+1 xn+1
o Such that
* *(n+1)
and c n+1 = cn+1 – cB A
*(n+1) -1 (n+1)
o New column in FINAL tableau: A = ( A B) A
*
o If c n+1 ≥0 xn+1 =Not a BV xn+1 =0 X* = remains Optimal BFS
o If c *
n+1 <0 proceed with the simplex algorithm enter xn+1 to BV
5. 4 Addition of a New Variable
{
Add ✗n " Objective Function +
Cnt, ✗my 2 =
CX + Cntixnti
"
Mam, µ →
[ AÑ ]
↑
Column for Xntl
A*p◦
'
Recall: A-pb =
C*n+
*
[✗ ]
*
=
Cnn C, A 0
\
-
, ,
*
[ n +, <
0 Continue the simplex algorithm
(Enter Xnt Exit ? )
, ,
Furniture Example
Cont below
if
. -
1.*"
● Furniture Example (Extra Variable F): final f xn"
Initial f
2
f
%
%
Do I
4 k
'
? C*nH
Suppose the furniture company has expanded to also produce bedframes (F). Suppose the requirements
of resources are given below. Find the change (if any) with =15 first, then =17.
Cnt / =/ 5 ( 4=15 Cnt/ =D Cifl>
Use Original Final Tableau (2nd above right without F-column) to find (AB)-1 = A*B0
*(n+1) -1
Then, Compute A = ( A B) A(n+1) *
and Compute c n+1 = cn+1 – cB A*(n+1) = 1/2
● for =15→ c*n+1 = 1/2 ≥0
○ xn+1 =Not in BV xn+1 =0
○ X* = remains Optimal BFS
● for =17 → c*n+1 =-3/2 <0
○ extra pivot to enter F (see
below)
' *
⑨ A-p =
A Bo
"
*
""
A'BA
[ I
① = = =
CB #
""
② C*n+ ,
=
Cnt ,
-
t =
IS on 17
"2 ≥
0
]
/
"
✗ -
[ -19 -12 0] = .
; + ¥
↑
, ,
\ -
% ± 0
Maximizing
#→
③ Conclusion : for 1=15 →
Same final tableau →
Same 6 Same optimal point ¢ value w/✗my =
0
for 11=17 →
Cn*+ ,
= -
? <
0 →
Enter ✗my ,
Exit ?
>
Perform the std simplex algorithm
.
$
review new final tableau
Notice no slack vars felt and
, , z has increased!
*
b
From section 5.5, what if changes in the constant-term column can bring negative entries into λ ?b
The associated basic solution is NOT feasible; that is, the constant-term column contains negative entries.
With the simplex method as we have developed it, the only way to handle such a problem would be to multiply the
equations with negative constant terms by (—1), add artificial variables if necessary to put the problem into canonical
form, and proceed with the two-stage simplex process!
This section: Dual Simplex Algorithm to better solve problems in this form (negative RHS entries) steps of the
Consider a LP in canonical form with respect to a set of basic variables and such that all cj ≥0.
1- If all bi≥ 0 then the Min value is achieved by the BFS given by the basic variables and RHS.
2- If there exists bi < 0 and aij ≥ 0 for all j (all i-row), NO solution exists.
3- Otherwise, use the Dual simplex Method below (use bi<0 to exit and aij <0 to enter). Example:
Determine the variable to exit and then the variable to enter:
1- Exit Variable: Pivot Row R with most negative b term
In this case, 2nd row, thus exit x5
2- Enter Variable: Column j with Max ratio cj/arj for arj < 0
In this case 10/(-4) = -2.5 & 4/(-2)=-2, pick -2 enter x3
3- Repeat if negative entries on the RHS (two pivots below)
Min is 24 and is attained at the point (2,0,1,0,0)
↳ Perform the dual simplex using the last column (instead of the last row !)
① if bj ≥
0 i
>
STOP , we have an optimal solution
µ
②
aij
≥ O tf j(in row i ) >
STOP ,
no solution
if y f, o
③ if aij < 0 >
Dual Simplex Method
Exit variable for that row i
•
,
such that Hai, for aij < 0
is a Max
◦
Use row operation for he entered variable to have 0's in column ,