Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Wikipedia User: 4C. License CC BY-SA. This content is excluded from our Creative
Commons license. For more information, see http://ocw.mit.edu/help/faq-fair-use/.
1
Quotes of the day
2
Overview
3
What does the feasible region of an LP
look like?
4
Some 3-dimensional LPs
Courtesy of Wolfram Research, Inc. Used with permission. Source: Weisstein, Eric W.
"Convex Polyhedron." From MathWorld -- A Wolfram Web Resource.
5
Goal of this Lecture: visualizing LPs in 2 and 3
dimensions.
6
A Two Variable Linear Program
(a variant of the DTC example)
objective z = 3x + 5y
2x + 3y 10 (1)
Constraints
x + 2y 6 (2)
x + y 5 (3)
x 4 (4)
y 3 (5)
x, y 0 (6)
7
Finding an optimal solution
8
Inequalities
A single linear inequality determines a unique
y half-plane
5
4 x + 2y 6
1 2 3 4 5 6 x 9
Graphing the Feasible Region
2 2x + 3y = 10
1 2 3 4 5 6 x
10
Add the Constraint:
x + 2y 6 (2)
y
5
2
x + 2y = 6
1
1 2 3 4 5 6 x
11
Add the Constraint:
x + y 5
y A constraint is
called redundant
5 if deleting the
constraint does
x + y = 5
4 not increase the
size of the
3 feasible region.
2 x + y = 5
is redundant
1
1 2 3 4 5 6 x
12
Add the Constraints:
x 4; y 3
y
5
4 We have now
graphed the
3 feasible
region.
2
1 2 3 4 5 6 x
13
How many constraints are redundant?
1. One
2. Two
14
The geometrical method for optimizing 3x + 5y
1 3x + 5y = 11
3x + 5y = 8
Isocost lines
x
1 2 3 4 15
Find the maximum value p such that there is a
feasible solution with 3x + 5y = p.
y
Move the line with profit p parallel as much as
3 possible.
2 3x + 5y = 16
The optimal
solution
occurs at a
1
3x + 5y = 11 corner point.
3x + 5y = 8
x
1 2 3 4 16
Another Problem
17
18
Mental Break
Trivia about US
Presidents
19
Different types of LPs
LPs with
unbounded
max x
objective. (For a
s.t. x + y 1
max problem this
x 0, y 0
means unbounded
from above.)
20
Any other types
1 p2
x
1 2 3 4 22
More on Convexity
Which of the following are convex ? or not ?
y
5
4
3
2
1
source unknown. All rights reserved. This content is excluded from our Creative
Commons license. For more information, see http://ocw.mit.edu/help/faq-fair-use/. 1 2 3 4 5 6 x
23
The feasible region of a linear program
is convex
y
5
1 2 3 4 5 6 x
24
Corner Points
A corner point (also called an extreme point) of
the feasible region is a point that is not the
midpoint of two other points of the feasible
region. (They are only defined for convex sets, to
be described later.)
25
Fact: a feasible LP region has a corner
point so long as it does not contain a line.
5
Region 1.
No corner point. Feasible region contains a line.
4
3 Region 2.
Two corner points. Unbounded feasible region
2
1
Region 3.
1 2 3 4 5 6
26
Facts about corner points.
Region 2.
Two corner points. Unbounded feasible region
27
Optimality at corner points
If a feasible region has a corner point, and if it has an
optimal solution, then there is an optimal solution that is a
corner point.
Example 1:
minimize x+y
Example 2:
maximize y Example 3:
maximize y
28
Suppose an LP has a feasible solution.
Which of the following is not possible?
29
Towards the simplex algorithm
30
Edges of the feasible region
In two dimensions, an edge of the feasible region
is one of the line segments making up the
boundary of the feasible region. The endpoints of
an edge are corner points.
In two dimensions, it is
a (bounded) equality
constraint.
31
An edge
Edges of the feasible region
In three dimensions, an edge of the feasible region is
one of the line segments making up the framework of
a polyhedron. The edges are where the faces intersect
each other. A face is a flat region of the feasible
region.
In two
dimensions it is a
A face An edge bounded
intersection of
two equality
A face constraints.
32
Extreme Rays
An extreme ray is like an edge, but it starts
at a corner point and goes on infinitely.
y Two extreme
5 rays.
1 2 3 4 5 6 x 33
The Simplex Method
Start at any feasible corner point.
y Max z = 3 x + 5 y
5
2
3 x + 5 y = 12
1
1 2 3 4 5 6 x 3434
In two dimensions it
is pretty easy,
Is it easy to especially if the LP is
find a corner already graphed. But
point to start with larger LPs, it is
at? surprisingly tricky.
35
The Simplex Method
Start at any feasible corner point.
Find an edge (or extreme ray) in which the objective
y value is continually improving. Go to the next corner
5 point. (If there is no such corner point, stop. The
objective is unbounded.)
4 Continue until no adjacent corner point has a better
objective value. Max z = 3 x + 5 y
3
2
3 x + 5 y = 19
1 2 3 4 5 6 x 36
The Simplex Method
Pentagonal prism
37
So, one starts at a corner Yes. Its one of the
point. At each iteration, nice (but rare) cases
one looks for an adjacent in optimization in
corner point that is which you can find
better. And one stops the global optimum by
when there is no making local
improvement. improvements.
38
Sensitivity Analysis in 2 Dimensions
40
RHS = 36
36
32
28
24
Mita, an MIT
Amit, an MIT Beaver Beaver
46
This concludes geometry and
visualization of LPs.
47
MIT OpenCourseWare
http://ocw.mit.edu
For information about citing these materials or our Terms of Use, visit: http://ocw.mit.edu/terms.