Docsity

Notes on Linear Programming - Linear and Combinatorial Optimization | MA 515, Study notes of Mathematics

Partial preview of the text

Download Notes on Linear Programming - Linear and Combinatorial Optimization | MA 515 and more Study notes Mathematics in PDF only on Docsity!

Linear Programming Notes

Carl W. Lee

Department of Mathematics

University of Kentucky

Lexington, KY 40506

[email protected]

Solutions Submitted by Course Members

Fall 2006

i

Contents

1 References

The textbook for this course is Jon Lee, A First Course in Combinatorial Optimization, Cambridge, 2004. Four good references for linear programming are

  1. Dimitris Bertsimas and John N. Tsitsiklis, Introduction to Linear Optimization, Athena Scientific.
  2. Vaˇsek Chv´atal, Linear Programming, W.H. Freeman.
  3. George L. Nemhauser and Laurence A. Wolsey, Integer and Combinatorial Optimiza- tion, Wiley.
  4. Christos H. Papadimitriou and Kenneth Steiglitz, Combinatorial Optimization: Algo- rithms and Complexity, Prentice Hall.

I used some material from these sources in writing these notes. Also, some of the exercises were provided by Jon Lee and Francois Margot.

Exercise 1.1 Find as many errors in these notes as you can and report them to me. 

2 Exercises: Matrix Algebra

It is important to have a good understanding of the content of a typical one-semester un- dergraduate matrix algebra course. Here are some exercises to try. Note: Unless otherwise specified, all of my vectors are column vectors. If I want a row vector, I will transpose a column vector.

Exercise 2.1 Consider the product C = AB of two matrices A and B. What is the formula for cij , the entry of C in row i, column j? Explain why we can regard the ith row of C as a linear combination of the rows of B. Explain why we can regard the jth column of C as a linear combination of the columns of A. Explain why we can regard the ith row of C as a sequence of inner products of the columns of B with a common vector. Explain why we can regard the jth column of C as a sequence of inner products of the rows of A with a common vector. Consider the block matrices [ A B C D

] and

[ E F G H

] .

Assume that the number of columns of A and C equals the number of rows of E and F , and that the number of columns of B and D equals the number of rows of G and H. Describe the product of these two matrices. 

Exercise 2.2 Associated with a matrix A are four vector spaces. What are they, how can you find a basis for each, and how are their dimensions related? Give a “natural” basis for the nullspace of the matrix [A|I], where A is an m × n matrix and I is an m × m identity matrix concatenated onto A. 

Exercise 2.3 Suppose V is a set of the form {Ax : x ∈ Rk}, where A is an n × k matrix. Prove that V is also a set of the form {y ∈ Rn^ : By = O} where B is an  × n matrix, and explain how to find an appropriate matrix B. Conversely, suppose V is a set of the form {y ∈ Rn^ : By = O}, where B is an  × n matrix. Prove that V is also a set of the form {Ax : x ∈ Rk}, where A is an n × k matrix, and explain how to find an appropriate matrix A. 

Exercise 2.4 Consider a linear system of equations, Ax = b. What are the various elemen- tary row operations that can be used to obtain an equivalent system? What does it mean for two systems to be equivalent? 

Exercise 2.5 Consider a linear system of equations, Ax = b. Describe the set of all solutions to this system. Explain how to use Gaussian elimination to determine this set. Prove that the system has no solution if and only if there is a vector y such that yT^ A = OT^ and yT^ b = 0. 

Exercise 2.13 What does it mean for a symmetric matrix A to be positive semi-definite? Positive definite? If A is positive definite, describe the set {x : xT^ Ax ≤ 1 }. What is the geometrical interpretation of the eigenvectors and eigenvalues of A with respect to this set? 

Exercise 2.14 Suppose E is a finite set of vectors in Rn. Let V be the vector space spanned by the vectors in E. Let I = {S ⊆ E : S is linearly independent}. Let C = {S ⊆ E : S is linearly dependent, but no proper subset of S is linearly dependent}. Let B = {S ⊆ E : S is a basis for V }. Prove the following:

  1. ∅ ∈ I.
  2. If S 1 ∈ I, S 2 ∈ I, and card S 2 > card S 1 , then there exists an element e ∈ S 2 \ S 1 such that S 1 ∪ {e} ∈ I.
  3. If S ∈ I and S ∪ {e} is dependent, then there is exactly one subset of S ∪ {e} that is in C.
  4. If S 1 ∈ B and S 2 ∈ B, then card S 1 = card S 2.
  5. If S 1 ∈ B, S 2 ∈ B, and e 1 ∈ S 1 , then there exists an element e 2 ∈ S 2 such that (S 1 \ {e 1 }) ∪ {e 2 } ∈ B.
  6. If S 1 ∈ C, S 2 ∈ C, e ∈ S 1 ∩ S 2 , and e′^ ∈ S 1 \ S 2 , then there is a set S 3 ∈ C such that S 3 ⊆ (S 1 ∪ S 2 ) \ {e} and e′^ ∈ S 3.



3 Polytopes

3.1 Convex Combinations and V-Polytopes

Definition 3.1 Let v^1 ,... , vm^ be a finite set of points in Rn^ and λ 1 ,... , λm ∈ R such that λi ≥ 0, i = 1,... , m, and λ 1 + · · · + λm = 1. Then

∑^ m

j=

λj vj

is called a convex combination of v^1 ,... , vm.

Exercise 3.2 Give some examples of convex combinations in R^1 , R^2 , and R^3. Include diagrams. 

Definition 3.3 A subset S ⊆ Rn^ is convex if it is closed under all convex combinations of its elements.

Exercise 3.4 Give some examples of convex sets in R^1 , R^2 , and R^3. 

Exercise 3.5 Is the empty set convex? Is Rn^ convex? 

Exercise 3.6 Are the following sets convex?

  1. {x ∈ Rn^ : Ax = O} for a given matrix A. Yes, the set is convex. Proof: Suppose we have v^1 , v^2 ,... vm^ ∈ {x ∈ Rn^ : Ax = O}, and

∑^ m

i=

λivi^ some convex

combination of the vi. Then we have

A(

∑^ m

i=

λivi) =

∑^ m

i=

A(λivi)

∑^ m

i=

λi · Avi

∑^ m i=

λi · O

∑^ m

i=

O

= O

Thus every convex combination of every set of vi^ is in the set, that is, the set is convex. (Wells)

Proof. Consider a set V. Suppose xij^ ∈ V for all values of i and j. Additionally suppose, since we are dealing with convex combinations, the appropriatly labeled λij sum to one.

c = λ 1 (λ 11 x^11 +... + λ 1 kx^1 k) +... + λm(λm 1 xm^1 +... + λmnxmn) = λ 1 λ 11 x^11 +... + λ 1 λ 1 kx^1 k^ +... + λmλm 1 xm^1 +... + λmλmnxmn.

All of the xij^ are from V , so we only need to check that the sum of all of the coefficients is equal to one.

λ 1 λ 11 +... + λ 1 λ 1 k +... + λmλm 1 +... + λmλmn = λ 1 (λ 11 +... + λ 1 k) +... + λm(λm 1 +... + λmn) = λ 1 (1) + λ 2 (1) +... + λm(1) = 1.

Therefore, c is a convex combination. (Clark) 

Proposition 3.12 Let V ⊆ Rn. Then conv V equals the set of all convex combinations of elements of V. 

Lemma 3.13 Let v^1 ,... , vm^ ∈ Rn. Let A be the matrix [ v^1 · · · vm 1 · · · 1

]

That is to say, A is created by listing the points vi^ as columns and then appending a row of 1 ’s. Let v ∈ Rn. Then v equals the convex combination

∑m i=1 λiv i (^) if and only if λ = [λ 1 ,... , λm]T

is a solution of

A

  

λ 1 .. . λm

   =

[ v 1

] .

Proof. If we think of Aλ as a linear combination of columns of A, then

Aλ =

[ v 1

]

is equivalent to

λ 1

[ v^1 1

]

  • · · · + λm

[ vm 1

]

[ v 1

] ,

which in turn is equivalent to

λ 1 v^1 + · · · + λmvm^ = v λ 1 + · · · + λm = 1.



Exercise 3.14 What can you say about the rank of the matrix A in the previous problem? 

Theorem 3.15 (Carath´eodory) Suppose x is a convex combination of v^1 ,... , vm^ ∈ Rn, where m > n + 1. Then x is also a convex combination of a subset of {v^1 ,... , vm} of cardinality at most n+1. Suggestion: Think about the matrix A in the previous two problems. Assume that the columns associated with positive values of λi are linearly dependent. What can you do now? 

Definition 3.16 A V-polytope is the convex hull of a finite collection of points in Rn.

3.3 Linear Inequalities and H-Polytopes

Definition 3.20 Let a ∈ Rn^ and b 0 ∈ R. Then aT^ x = b 0 is called a linear equation, and aT^ x ≤ b 0 and aT^ x ≥ b 0 are called linear inequalities. Further, if a = O, then the set {x ∈ Rn^ : aT^ x = b 0 } is called a hyperplane, the sets {x ∈ Rn^ : aT^ x ≤ b 0 } and {x ∈ Rn^ : aT^ x ≥ b 0 } are called closed halfspaces, and the sets {x ∈ Rn^ : aT^ x < b 0 } and {x ∈ Rn^ : aT^ x > b 0 } are called open halfspaces.

Exercise 3.21 Why do we require a = O in the definitions of hyperplanes and halfspaces? 

Definition 3.22 A subset S ⊆ Rn^ is bounded if there exists a number M ∈ R such that ‖x‖ ≤ M for all x ∈ S.

Definition 3.23 We can represent systems of a finite collection of linear equations or linear inequalities in matrix form. For example, the system

a 11 x 1 + · · · + a 1 nxn ≤ b 1 .. . am 1 x 1 + · · · + amnxn ≤ bm

can be written compactly as Ax ≤ b

where

A =

  

a 11 · · · a 1 n .. .

am 1 · · · amn

  

and

b =

  

b 1 .. . bm

  

A subset of Rn^ of the form {x ∈ Rn^ : Ax ≤ b} is called an H-polyhedron. A bounded H-polyhedron is called an H-polytope.

Exercise 3.24 Is the empty set an H-polytope? Is Rn^ an H-polyhedron? 

Exercise 3.25 Prove that a subset of Rn^ described by a finite collection of linear equations and inequalities is an H-polyhedron. 

3.4 Exercises

Exercise 3.26 In each case describe the H-polyhedron P = {x : Ax ≤ b} where A and b are as given.

A =

     

     

b =

     

     

A =

        

        

b =

     

     

3.6 Exercises

Exercise 3.33 Determine the vertices of the polytope in R^2 described by the following inequalities: x 1 + 2x 2 ≤ 120 x 1 + x 2 ≤ 70 2 x 1 + x 2 ≤ 100 x 1 ≥ 0 x 2 ≥ 0 

Exercise 3.34 Determine the vertices of the polytope in R^3 described by the following inequalities: x 1 + x 2 ≤ 1 x 1 + x 3 ≤ 1 x 2 + x 3 ≤ 1 x 1 ≥ 0 x 2 ≥ 0 x 3 ≥ 0 

Exercise 3.35 Consider the polytope in R^9 described by the following inequalities:

x 11 + x 12 + x 13 = 1 x 21 + x 22 + x 23 = 1 x 31 + x 32 + x 33 = 1 x 11 + x 21 + x 31 = 1 x 12 + x 22 + x 32 = 1 x 13 + x 23 + x 33 = 1 x 11 ≥ 0 x 12 ≥ 0 x 13 ≥ 0 x 21 ≥ 0 x 22 ≥ 0 x 23 ≥ 0 x 31 ≥ 0 x 32 ≥ 0 x 33 ≥ 0

Find at least one vertex. 

3.7 V-Polytopes are H-Polytopes

In order to prove the converse of the result in the previous section, i.e., to prove that every V-polytope is an H-polytope, we will need to invoke a procedure called Fourier-Motzkin elimination, which will be discussed later in Sections 7.2–7.5. What we need to know about this procedure for the moment is that whenever we have a polyhedron P described by a system of inequalities in the variables, say, x 1 ,... , xn, we can eliminate one or more variables of our choosing, say, xk+1,... , xn, to obtain a new system of inequalities describing the projection of P onto the subspace associated with x 1 ,... , xk.

Theorem 3.36 (Weyl) If P is a V-polytope, then it is an H-polytope.

Proof. Assume P = conv {v^1 ,... , vm}. Consider P ′^ = {(r, x) :

∑m i=1 riv i (^) − x =

O,

∑m i=1 ri^ = 1, r^ ≥^ O}. Then^ P^ ′ (^) = {(r, x) : ∑m i=1 riv i (^) −x ≤ O, ∑m i=1 riv i (^) +x ≥ O, ∑m i=1 ri^ ≤ 1 ,

∑m i=1 ri^ ≥^1 , r^ ≥^ O}. Then a description for^ P^ in terms of linear inequalities is obtained from that of P ′^ by using Fourier-Motzkin elimination to eliminate the variables r 1 ,... , rm. Finally, we note that every V-polytope is necessarily a bounded set—we can, for example, bound the norm of any feasible point x in terms of the norms of v^1 ,... , vm: if x =

∑m i=1 riv

i

with

∑m i=1 ri^ = 1 and^ ri^ ≥^ 0 for all^ i^ = 1,... , m, then

‖x‖ =

∥∥ ∥∥ ∥

∑^ m

i=

rivi

∥∥ ∥∥ ∥

∑^ m

i=

ri‖vi‖

∑^ m

i=

‖vi‖.

Exercise 3.37 Experiment with the online demo of “polymake,” www.math.tu- berlin.de/polymake, which can convert between descriptions of polytopes as V-polytopes and as H-polytopes. 

A

D

B C

O(0,0) A(0,60) B(20,50) C(30,40) (optimal)

O

D(50,0)

5x+4y=

4.2 Definitions

A linear function is a function of the form a 1 x 1 + · · · + anxn, where a 1 ,... , an ∈ R. A linear equation is an equation of the form a 1 x 1 + · · · + anxn = β, where a 1 ,... , an, β ∈ R. If there exists at least one nonzero aj , then the set of solutions to a linear equation is called a hyperplane. A linear inequality is an inequality of the form a 1 x 1 + · · · + anxn ≤ β or a 1 x 1 + · · · + anxn ≥ β, where a 1 ,... , an, β ∈ R. If there exists at least one nonzero aj , then the set of solutions to a linear inequality is called a halfspace. A linear constraint is a linear equation or linear inequality. A linear programming problem is a problem in which a linear function is to be maximized (or minimized), subject to a finite number of linear constraints. A feasible solution or feasible point is a point that satisfies all of the constraints. If such a point exists, the problem is feasible; otherwise, it is infeasible. The set of all feasible points is called the feasible region or feasible set. The objective function is the linear function to be optimized. An optimal solution or optimal point is a feasible point for which the objective function is optimized. The value of the objective function at an optimal point is the optimal value of the linear program. In the case of a maximization (minimization) problem, if arbitrarily large (small) values of the objective function can be achieved, then the linear program is said to be unbounded. More precisely, the maximization (minimization) problem is unbounded if for all M ∈ R there exists a feasible point x with objective function value greater than (less than) M. Note: It is possible to have a linear program that has bounded objective function value but unbounded feasible region, so don’t let this confusing terminology confuse you. Also note

that an infeasible linear program has a bounded feasible region.

Exercise 4.1 Graphically construct some examples of each of the following types of two- variable linear programs:

  1. Infeasible.
  2. With a unique optimal solution.
  3. With more than one optimal solution.
  4. Feasible with bounded feasible region.
  5. Feasible and bounded but with unbounded feasible region.
  6. Unbounded.



A linear program of the form

max

∑^ n j=

cj xj

s.t.

∑^ n

j=

aij xj ≤ bi, i = 1,... , m

xj ≥ 0 , j = 1,... , n

which, in matrix form, is max cT^ x s.t. Ax ≤ b x ≥ O

is said to be in standard form. For every linear program there is an equivalent one in standard form (begin thinking about this).

4.3 Back to the Example

Suppose someone approached the Gadget and Gewgaw Manufacturing Company (GGMC), offering to purchase the company’s available labor hours, wood, and metal, at $1.50 per hour of labor, $1 per unit of wood, and $1 per unit of metal. They are willing to buy whatever amount GGMC is willing to sell. Should GGMC sell everything? This is mighty