Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Recap
MS&E 211
Step 0: Notation
Assume an LP in the following form
Maximize cTx
Subject to:
Ax b
x0
N Variables, M constraints
U = Set of all feasible solutions
Convex Combination
Given points x1, x2, , xK , in N
dimensions
For any scalars a1, a2, , aK such that
Each ai is non-negative
a1 + a 2 + + aK = 1
Exercise
If w is a convex combination of x and
y, and z is a convex combination of x
and w, then must z be a convex
combination of x and y?
Exercise
Is the set of all convex combinations of
N points always convex?
Exercise
Can any convex set be represented as
a convex combination of N points, for
finite N?
Hence, z belongs to S T
Implication: ST is convex
Exercise
Must every convex set be bounded?
In Practice
Most LP Solvers return an optimum
basic feasible solution, when one
exists.
Either, they use Simplex
Or, they transform the solution that they
do find to a basic feasible solution
Exercise
You are given a LP with three decision
variables where some of the constraints
are
0 x1
0 y1
0 z1
LP in standard form
Minimize cTx
Subject to:
Ax = b
x0
Recap
A feasible solution is basic feasible if it is not the
average of two other feasible solutions
If the feasibility region U for a LP is bounded and
non-empty, then there exists an optimal solution that
is also basic feasible
If an LP has a basic feasible solution and an optimum
solution, then there exists an optimal solution that is
also basic feasible
Commercial LP solvers return an optimum basic
feasible solution by default, where one exists
If there are N decision variables, then a basic feasible
solution has N linearly independent constraints tight
LP Example: Transportation
Warehous
e1
Warehous
e2
Warehous
e3
DEMAND
Retailer 1
Retailer 2
Retailer 3
Retailer 4
SUPPLY
12 (c11)
13
500
(s1)
10
11
700
(s2)
10
12
14 (c34)
800
(s3)
400 (d1)
900 (d2)
200 (d3)
x11
500 (d4)
4
c x
i 1 j 1
2
2
s.t.
x
j 1
3
3
min
x34
ij
x
i 1
ij
Abstract Model
ij ij
si , i 1,2,3
d j , j 1,2,3,4
xij 0,
i, j
32
min
c x
ij ij
i1 j1
2
2
s.t.
3
N
ij
j1
N
ij
xNM
si , i 1, 2,..., N
dj , j 1, 2,..., M
i1
xij 0,
i, j
33
1
2
2
3
N
xNM
1
2
2
3
N
xNM
Exercise
What if the demands and supplies dont
match up? For example, supply is bigger
than the demand?
Exercise
What if the demands and supplies dont
match up? For example, supply is bigger
than the demand?
x11
1
1
2
3
xNM
Exercise
What if there is also a cost to disposal of
excess supply?
Exercise
What if there is also a cost to disposal of
excess supply?
Solution: Add a cost on the
edges from the supply nodes
to the fake node
x11
1
1
2
2
3
xNM
Simplex Method
George B. Dantzigs Simplex Method for
linear programming stands as one of the
most significant algorithmic
achievements of the 20th century. It is
now over 60 years old and still going
strong.
x2
x1
42
yT AB = cTB, by
Increase along this direction till one of the basic variables becomes
0 and hence non-basic
We are left with
The process will always converge and produce an optimal solution if one
exists (special care for unbounded optimum and when two basic
variables become 0 at the same time)
45
Summary
The theory of Basic Feasible Solutions leads to a
solution method
The Simplex algorithm is one of the most
influential and practical algorithms of all time
However, we will not test or assign problems on
the Simplex method in this class (a testament to
the fact that this method has been so successful
that we can use it as a basic technology)