Docsity

Linear Programming - Simplex Method: Initial Solution and Artificial Variables - Prof. Cho, Study notes of Computer Science

Partial preview of the text

Download Linear Programming - Simplex Method: Initial Solution and Artificial Variables - Prof. Cho and more Study notes Computer Science in PDF only on Docsity!

CS 8803 NMC: Numerical Methods in

Computational Science and Engineering: Matrix

Computations

Haesun Park

hpark



@cc.gatech.edu

Division of Computational Science and Engineering

College of Computing

Georgia Institute of Technology

Atlanta, GA 30332, USA

Lecture 25, December 4, 2007

Linear Programming - Simplex Method

Initial Solution - Artificial Variables Getting started when initial BFS is not known.Introduce ’

artificial variables

’ and solve ’phase I’ problem.

s.t.

,

.

,

,

Add

artificial variables

, consider

,

.

We have an initial BFS to the new problem:

,

(assume

), with

CS 8803 NMC: Numerical Methods in Computational Science and Engineering: Matrix Computations – p.1/

Linear Programming - Simplex Method

Complexity of Simplex Algorithm Flops/iteration:

,

 



,



LU with P.P is





and 2 triangular system solve





.



 





,



.









,





Update LU,





Total flops/iteration





number of iterations













In the worst case, the number of iterations is



.

Average iterations based on experiments:





 

flops.

CS 8803 NMC: Numerical Methods in Computational Science and Engineering: Matrix Computations – p.3/

Linear Programming - Duality

Linear Programming - Duality Duality Definition Primal problem

:

:

.

Dual problem

:

:

.

Primal problem

Dual problem, they are related.

CS 8803 NMC: Numerical Methods in Computational Science and Engineering: Matrix Computations – p.4/

Linear Programming - Duality

Weak Duality Lemma

: (Main idea:

)

Suppose

is feasible for

, and

is feasible for

, then

Proof. From

,

,

and

and

.

So

Corollary 1. Suppose

and

are primal and dual feasible and

. Then

solves

and

solves

.

Proof. Let

be any primal feasible vector, then by lemma

.

So

gives min over all feasible

.

Let

be any dual feasible vector, then

.

So

gives max over all feasible

.

CS 8803 NMC: Numerical Methods in Computational Science and Engineering: Matrix Computations – p.6/

Linear Programming - Duality

Corollary 2. If

is unbounded, then

is not feasible.

If

is unbounded, then

has no feasible solution.

Proof as exercise Corresponding to every primal basis

,

a dual vector

s.t. the primal

and dual function values are the same. Let

be a primal basis and



be the basic cost vector.

Primal objective function





Define a dual vector

by





, then

.

Suppose we consider only primal feasible vector bases, so that



.

When is



dual feasible?

CS 8803 NMC: Numerical Methods in Computational Science and Engineering: Matrix Computations – p.7/

Linear Programming - Duality

Relation between objective function value If the primal problem has an optimal solution, then the dual problem has anoptimal solution, and the objective function values are the same.Similarly, dual



primal.

CS 8803 NMC: Numerical Methods in Computational Science and Engineering: Matrix Computations – p.9/

Linear Programming - Duality

One-Norm Minimization as Duality Problem









: LS







or



: LP

One-Norm Min Problem



Duality Problem



Primal Problem





  

...

 





,



is



th row of

.



  



...



 

Letting















, s.t.











,



,





.









,









,





: total

constraints

unknowns are



and

  

...

 

.

CS 8803 NMC: Numerical Methods in Computational Science and Engineering: Matrix Computations – p.10/