Lecture 04
Lecture 04
Ming Yan
maximize x1 + 2x2
x1 ,x2
subject to x1 100
2x2 200
x1 + x2 150
x1 , x2 0.
Polyhedron
A polyhedron is a set that can be written in the form:
{x 2 Rn : Ax b},
Ax = b, x 0.
AXE b -
× ≥,
identity matrix
Ming Yan MAT 3007 June 13, 2022 7 / 43
Some Definitions: Polyhedron
Polyhedron
A polyhedron is a set that can be written in the form:
{x 2 Rn : Ax b},
Ax = b, x 0.
:
We draw the line for x1 + 2x2 = c for di↵erent values of c.
Objective function:
::¥ .
/
•
The optimal solution is the highest one among these lines that
touches the feasible region.
Optimal solution: (50, 100). Optimal objective value: 250.
¥%%
2x1 + x2 9 (2)
2x1 + 3x2 16 (3) I
x1 , x2 0.
Feasible region?
Iso-profit lines? 0
Improving direction?
Optimal solution: A or B?
-
ai 0
ar t
if we can not find two vectors y, z 2 P with y, z 6= x•* and a scalar
2 [0, 1], such that x = me
y + (1 )z.
_
Convex Combination
Pn any x1 , . . . , xn and 1 , . . . , n 0 satisfying
For 1 +···+ n = 1, we call
@ i=1 i xi a convex combination of x1 , . . . , xn .
÷ % .
150
100 0 d-
@
50
x2
0 6 •
50
150
100
50
x2
50
:
subject to x1 + x2 6 (1)
2x1 + x2 9 (2)
2x1 + 3x2 16 (3)
x1 0 (4)
x2 0. (5)
a
E-
(1) & (3) D = (2, 4) 28
(1) & (4) a- (0,6) infeasible: violates (3)
I
(1) & (5) (6,0) infeasible: violates (2)
(2) & (3) ( 11 7
4 , 2) infeasible: violates (1)
(2) & (4) (0,9) infeasible: violates (1)
(2) & (5) B = ( 92 , 0) 27
(3) & (4) E = (0, 16 3 ) 21 13
(3) & (5) (8,0) infeasible: violates (1)
(4) & (5) A = (0, 0) 0
-
minimize
x1 ,x2 ,x3 ,x4 ,x5
6x1 4x2 '
\
⊖
:O
{
subject to x1 + x2 + x3 = 6
e
2x1 + x2 + x4 = 9 f
0
-
2x1 + 3x2 + x5 = 16
.
. .
.
.
.
x 1 , x2 , x3 , x4 , x5 0. ÷ >
¥
2 3 x1 2 3
1 1 1 0 0 6 7
6 x2 7 6
4 2 1 0 1 05 6 x 3 7 = 4 9 5
6 7
2 3 0 0 1 4 x4 5 16
x5
TE
Ming Yan MAT 3007 June 13, 2022 24 / 43
They Are Equivalent!
✓ ◆
5
We can yield = 10 possibilities in total as well.
3
x vars
x
to use
123 ( 11 7
4 , 2,
1
4 , 0, 0)
1=
24 (2, 4, 0, 1, 0)
125 (3, 3, 0, 0, 1)
134 (8, 0, 2, 7, 0)
135 ( 92 , 0, 32 , 0, 7)
145 (6, 0, 0, 3, 4)
234 (0, 16 2 11
3 , 3 , 3 , 0)
235 (0, 9, 3, 0, 11)
245 (0, 6, 0, 3, 2)
345 (0, 0, 6, 9, 16)
So, from a standard form of LP, we can select columns to enumerate all
corner points.
minimize c> x
x
subject to Ax = b
x 0,
General Assumption:
A has linearly independent rows (or equivalently A has full rank D
m).
2 3
-
| | |
4 AB(1) AB(2) · · · AB(m) 5 = AB ×B@
| | |
MXM
KÉ MM
= A✗ = ABXB + Anke
MM
Ming Yan MAT 3007 June 13, 2022 28 / 43
Finding a Basic Solution
How many non-zeros could one have in a basic solution (assuming there
are m constraints)?
No more than m!•
Could be anything between 0 to m (typically it is m).
How many basic solutions can one have for a linear program with m
constraints and n variables?
✓ ◆
n
At most = m!(nn! m)! (Combination number).
m
-
Therefore for a finite number of linear constraints, there can only be a
finite number of basic solutions!
±
124 (2, 4, 0, 1, 0) Yes
'
125 (3, 3, 0, 0, 1) Yes
134 (8, 0, 2, 7, 0) No, x3 , x4 < 0
135 ( 92 , 0, 32 , 0, 7) Yes
145 (6, 0, 0, 3, 4) No, x4 < 0
234 (0, 16 2 11
3 , 3 , 3 , 0) Yes
235 (0, 9, 3, 0, 11) No, x3 , x5 < 0
245 (0, 6, 0, 3, 2) No, x5 < 0
345 (0, 0, 6, 9, 16) Yes
Obviously, not all basic solutions are feasible. They can violate the
nonnegativity constraints.
BS
it ✗ is Not
ftp.a Apu,
,
. .
ftp.cm ,
pot linearly independent
"
ME
90 7- AXIOS -1 .
.
ABAX =D
we can extend AX such that IÑX)B=A✗
( ¥x7N=0
Act ÑXI =
ABCXB -1 AX )≈ABXb=b
since ✗ [ Bci
)) -1-0
2 ! 1: contradiction.
We only select the feasible solution from the table to obtain BFS:
B x Feasible? Point
12 4 (2, 4, 0, 1, 0) Yes D
12 5 (3, 3, 0, 0, 1) Yes C
13 5 ( 92 , 0, 32 , 0, 7) Yes B
23 4 (0, 16 2 11
3 , 3 , 3 , 0) Yes E
34 5 (0, 0, 6, 9, 16) Yes A
Exercise: obtain the BFS for the production planning problem following
the same procedure.
Consequences:
We only need to search among basic feasible solutions to find the
optimal solution!
*←É •
D ({1, 2, 4}) is the neighbor of C ({1, 2, 5}) but not B ({1, 3, 5})
The main question is how to find a neighboring BFS that improves the
current one (reduces the objective function):
We only need to show how to do it for one step. Then, we can simply
iterate the same methods (until we reach optimal).