Lecture Note 5
Lecture Note 5
Fall 2024-2025
Lecture Note 5:
1
As an example, z – 60x1 – 30x2 – 20x3 + 0s1 + 0s2 + 0s3 =0
consider to the
right the Dakota 8x1 + 6x2 + x3 + s1 = 48
Furniture problem
(without the x2 ≤ 5 4x1 + 2x2 + 1.5x3 + s2 = 20
constraint). 2x1 + 1.5x2 + 0.5x3 + s3 =8
Define:
2
Some Important Formulas
Dakota Problem
Define: 1 1 8
B 0 1.5 4
B is an m x m matrix whose
j th column is the column for 0 0.5 2
BVj in the initial tableau.
6
a2 2
Aj is the column (in the constraints)
for the variable xj.
1.5
Dakota Problem
Define:
48
The m x 1 column vector b is the
b 20
right-hand side of the constraints
in the initial tableau. 8
We can now use matrix algebra to determine how an LP’s
optimal tableau (with the set of basic variables BV) is related to
the original LP.
z = cBVxBV + cNBVxNBV
s.t. BxBV + NxNBV = b
xBV, xNBV ≥ 0
3
The Dakota problem is written:
s1 x2
max z = ( 0 20 60 ) x3 ( 30 0 0 ) s2
x1 s3
1 1 8 s1 6 0 0 x2 48
s.t. 0 1.5 4 x3 2 1 0 s2 20
0 0.5 2 x1 1.5 0 1 s3 8
s1 0 x2 0
x3 0 s2 0
x1 0 s3 0
1 2 8
Using the Gauss-Jordan method -1
for the Dakota problem we know: B = 0 2 4
0 0.5 1.5
4
Conclusions:
1 2 8 6 2
x2 0 2 4 2 2
0 0.5 1.5 1.5 1.25
Right-hand side of optimal tableau’s constraints = B-1b
Example:
1 2 8 48 24
rhsoptimal 0 2 4 20 8
0 0.5 1.5 8 2
5
The coefficient of xj in row 0 is:
cBVB-1(column of N for xj) – (coefficient of xj in cNBV) = cBVB-1aj - cj
= zj - cj
And the rhs of row 0 is cBVB-1b
c j = cBVB-1aj - cj
6
Sensitivity Analysis
Sensitivity Analysis
How do changes in an LP’s parameters (objective function coefficients,
right-hand sides, and technological coefficients) change the optimal
solution? Let BV be the set of basic variables in the optimal tableau.
Given a change in an LP, determine if the BV remains optimal.
We know the simplex tableau (for a max problem) for a set of basic
variables is optimal if and only if each constraint has a nonnegative rhs
and each variable has a nonnegative coefficient.
Whether a tableau is feasible and optimal z + x 2 + x4 + x6 = 6
depends only upon the rhs of the constraints
and the objective function coefficients of =1
each variable in row 0 For example,, if an =2
LP has variables x1, x2, …, x6 , the tableau
to the right would be optimal. =3
This tableau’s optimality is not affected by parts of the tableau that are omitted.
7
Sensitivity Analysis
Suppose we have solved an LP and have found the BV is an optimal
basis. Use the following procedure to determine if any change in the
LP will cause the BV to no longer be optimal.
Sensitivity Analysis
There can two reasons why a change in an LP’s
parameters cause BV to no longer be optimal:
1. A variable (or variables) in row 0 may have a negative
coefficient. In this case, a better (larger z-value) bfs
can be obtained by pivoting in a nonbasic variable with
a negative coefficient in row 0. If this occurs, the BV is
now a suboptimal basis.
2. A constraint (or constraints) may now have a negative
rhs. In this case, at least one member of BV will now
be negative and BV will no longer yield a bfs. If this
occurs, we say they BV is now an infeasible basis.
8
Sensitivity Analysis
Six types of changes in an LP’s parameters change the
optimal solution:
1. Changing the objective function coefficient of a
nonbasic variable.
2. Changing the objective function coefficient of a basic
variable.
3. Changing the right-hand side of a constraint.
4. Changing the column of a basic/nonbasic variable.
5. Adding a new variable or activity.
6. Adding a new constraint.
9
What if c'2 30 ?
v BV
c2
10
What if c'2 40 ?
c2
11
What if c'1 60 ?
cNBV yT N cNBV
24
8*
12
3. Changing the right-hand side of a constraint
What if b'2 20 ?
24 +2
13
What if b'2 22 ?
What if b'2 30 ?
14
4. Changing the column of a nonbasic variable
T
What if c'2 43 and a'2 (5 2 2) ?
’
c2
c2
15
Changing the column of a basic variable
1
The change may affect both B (and hence B ) and c BV and
thus the entire row 0 and the entire right-hand side of the optimal
tableau.
The current basis would remain optimal iff each variable has a
nonnegative coefficient in row 0 and each constraint has a
nonnegative right-hand side.
c4
c4 0,
16