SlideShare a Scribd company logo
1 of 20
Download to read offline
Lecture 2 1
Linear and Combinatorial
Optimization
Lecture 2: The Simplex
method
• Basic solution.
• The Simplex method (standardform, b>0).
1. Repetition of basic solution.
2. One step in the Simplex algorithm.
3. Unbounded problems.
4. Tableau form.
5. Optimality Criterion.
• Degeneracy and cycling.
• Artificial variables.
Lecture 2 2
Properties of LP
Theorem 2.1. A linear programming problem is
a convex optimization problem.
Proof. Exercise
Theorem 2.2. Let S be the set of feasible
solutions to a general LP problem.
1. If S is non-empty and bounded, then an
optimal solution to the problem exists and
occurs at an extreme point.
2. If S is non-empty and not bounded and if an
optimal solution the the problem exists, then
an optimal solution occurs at an extreme
point.
3. If an optimal solution to the problem does not
exist, then either S is empty or S is
unbounded.
Observe that the feasible set S is usually infinite,
but the number of extreme points is finite.
Lecture 2 3
A simple algorithm for solving
LP
Exhaustive search:
• Identify all extreme points
• Calculate the objective value for all extreme
points
• Pick the largest value
Drawback: Although the number of extreme
points is finite, it might be very large.
Lecture 2 4
Extreme points in LP
Study a LP-problem in canonical form.
max z = cT
x (1)
Ax = b (2)
x ≥ 0 (3)
A m × s matrix with m ≤ s and rank m.
Theorem 2.3. Suppose that A = [A1A2] and
there exists x2 such that A2x2 = b, x2 > 0. Then,
the columns of A2 are linearly dependent if and
only if x =


0
x2

 is not an extreme point in S.
Lecture 2 5
Proof: (⇒) If the columns of A2 are linearly
dependent, then there exists a vector c = 0 such
that A2c = 0. Then
A2 (x2 + ǫc)
v2
= b
A2 (x2 − ǫc)
w2
= b
Since all elements in x2 are positive, one can
choose ǫ small enough so v2 > 0 and w2 > 0.
Then x = 0 x2
T
lies on the line segment
between v = 0 v2
T
and w = 0 w2
T
which
are both feasible points in S.
Lecture 2 6
(⇐) If x is not an extreme point, then there exist
v and w with Av = b and Aw = b and a scalar
0 < λ < 1 such that x = λv + (1 − λ)w. Then
0 = λ
>0
v1
≥0
+ (1 − λ)
>0
w1
≥0
, ⇒ v1 = 0, w1 = 0
x2 = λv2 + (1 − λ)w2.
Since b = Av = A2v2 = A2x2 so A2 (x2 − v2)
=0
= 0,
hence the columns in A2 are linearly dependent.
Lecture 2 7
Important consequences
Corollary 2.1. x =


0
x2

 is an extreme point in
S if and only if the columns of A2 are linearly
independent.
Corollary 2.2. Suppose x is an extreme point
with r non-zero elements. Then r ≤ m and the
corresponding columns may be extended to a basis
by adding columns in A.
Corollary 2.3. At most m elements in x are
non-zero for extreme points.
Lecture 2 8
Basic and non-basic variables
For an LP-problem in canonical form, choose m
basis variables such that corresponding columns
in A form a basis. By reordering
B N


xB
0

 = BxB = b
Solve for xb. Then x =


xB
0

 is called a basic
solution. In addition, if x ≥ 0 then x is called a
basic feasible solution.
Definition 2.1. The variables in xB are called
basic variables and the variables in xN are called
non-basic variables.
Lecture 2 9
Number of basic feasible
solutions
Since the number of basic feasible solutions can
be at most s
m :
Corollary 2.4. An LP-problem in canonical form
has a finite number of basic feasible solutions.
Every extreme point in a standard LP-problem
corresponds to an extreme point in the
corresponding canonical LP-problem and vice
versa.
Corollary 2.5. An LP-problem in standard form
has a finite number of basic feasible solutions.
Algorithm idea: Exhaustive search.
Lecture 2 10
Constructing a basic solution
Consider the canonical LP:



max z = cT
x
Ax = b
x ≥ 0
(4)
Choose m linearly independent columns of A with
the corresponding components of x and reorder so
that:
B N


xB
0

 = BxB = b ⇒ xB = B−1
b
Now x = (xT
B 0)T
is a basic solution to (4).
If xB ≥ 0 then x is a basic feasible solution since
it fulfils the constraints in (4).
A basic feasible solution to (4) is an extremepoint
to S = {x|Ax = b, x ≥ 0}.
Lecture 2 11
Solving standard LP with b > 0
Definition 2.2. Two basic solutions are
adjacent if all but one basic variable are in
common.
Consider the standard form LP:



max z = cT
x
Ax ≤ b
x ≥ 0
(5)
Convert into a canonical LP by introducing slack
variables.
An initial basic feasible solution can always be
found by choosing the m slack variables as basic
variables and setting the other variables to zero,
i.e.
ˆx = (0 bT
)T
, ˆA = [A I] ⇒ ˆAˆx = ˆb
Lecture 2 12
Choosing a new variable to
enter the basis
Divide x into basic variables, xB, and non-basic
variables, xN (= 0) and divide A similarly into B
and N, such that
Ax = BxB+NxN = b ⇒ xB = B−1
b−B−1
NxN
Eliminate xB from the goal function giving
z = cT
x = cT
BxB + cT
N xN =
= cT
BB−1
b + (cT
N − cT
BB−1
N)xN =
= ˆz + ˆcT
N xN , (6)
where
ˆcN = cT
N − cT
BB−1
N
are called relative costs.
Observe that if the relative cost ˆci is positive for
some i, the goal function z can be increased by
inserting the corresponding non-basic variable in
the new basis.
Lecture 2 13
Choosing which variable to
leave the basis
Assume that we have selected xk to enter the
basis. The system of equations Ax = b can now
be written as
xB + B−1
akxk = B−1
b ,
with the solution
xB = B−1
b − B−1
akxk = ˆb − ˆakxk
where ak denotes column k in A.
Since we would like to obtain a new feasible basis,
we need to have
xB = ˆb − ˆakxk ≥ 0 .
ˆaij ≤ 0 leads to no decrease
ˆaij > 0 leads to decrease
We need to limit the increase in xk such that
none of the xB will become negative, i.e.
xk ≤
ˆbi
ˆaij
:= θ (aij > 0)
Lecture 2 14
The Tableau method
We start with the following LP in canonical form



max z = cT
x
Ax = b
x ≥ 0
Write the goal function as
z − cT
x = 0 .
Assume that we start with the initial basic
solution xD. The tableau is then defined as
Basis xB xN z ˆb
xD B N 0 b
z −cT
B −cT
N 1 0
• Iterate by changing basis.
• Select incoming and outgoing variable.
• Pivot around the corresponding element in
the matrix
Lecture 2 15
The Tableau method (ctd.)
We first perform row-operations transforming B
to I:
Basis xB xN z ˆb
xB I B−1
N 0 B−1
b
z −cT
B −cT
N 1 0
Then we eliminate cT
B and arrive at the optimum
with xB as basis, giving the tableau:
Basis xB xN z ˆb
xB I B−1
N 0 B−1
b
z 0 cT
BB−1
N − cT
N 1 cT
BB−1
b
Observe that the optimum is xB = B−1
b, xN = 0
and z = cT
BB−1
b.
Observe also that the negative relative costs
cT
BB−1
N − cT
N can be found in the tableau.
Lecture 2 16
The Simplex method for
LP-problems in standard form
with b > 0
• Make tableau for initial basic solution
• Check optimality criterion: If the objective
row has zero entries in the columns labeled by
basic variables and no negative entries in the
columns labeled by nonbasic variables.
• If the solution is not optimal, make tableau
for an adjacent and improved solution
– Selecting entering variable
– Choosing the departing variable
– Pivotal column, pivotal row. θ-ratios.
– How to form the new tableau.
Lecture 2 17
Possible outcomes
• Optimum exists: Objective row has zero
entries for basic variables and no negative
entries for non-basic variables.
• No finite optimal solution exists: No positive
θ-ratios
• No solution exists: Impossible to set up initial
tableau since we start with a basic feasible
solution.
Lecture 2 18
Degeneracy and cycling
Definition 2.3. A basic solution in which some
basic variables are zero is called degenerate.
At a degenerate basic solution, it may happen
that the objective function does not increase.
There is a risk of getting trapped in a cycle.
Bland’s rule is a way of choosing pivotal column
and pivotal row such that cycling is avoided.
• Selecting the pivotal column: Choose the
column with the smallest subscript among
those with negative entries.
• Selecting the pivotal row: If two rows have
equal θ-ratios, choose the row corresponding
to the basic variable with lowest subscript.
Examples
Lecture 2 19
Artificial variables
How to solve an arbitrary LP-problem?
• Two-phase method
– Introduce artificial variables, eliminate
with simplex. This results in a basic
feasible solution.
– Form the Simplex tableau and use the
Simplex method.
• Introduce artificial variables and weight them
with M → ∞. The Big M method
(Optional).
Examples
Lecture 2 20
Repetition - Lecture 2
• Equations and the Simplex tableau.
• The Simplex method.
– Optimality criterion?
– How to select a new basic feasible
solution?
– How to detect if the problem is
unbounded?
– How to form the simplex tableau with
matrices?
• Degenerate basic solution, cycling, Bland’s
rule.
• Two-phase method.

More Related Content

Recently uploaded

1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
QucHHunhnh
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
QucHHunhnh
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
heathfieldcps1
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
ciinovamais
 

Recently uploaded (20)

1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SD
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdf
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docx
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 

Featured

Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
 
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them wellGood Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Saba Software
 
Introduction to C Programming Language
Introduction to C Programming LanguageIntroduction to C Programming Language
Introduction to C Programming Language
Simplilearn
 

Featured (20)

How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
 
ChatGPT webinar slides
ChatGPT webinar slidesChatGPT webinar slides
ChatGPT webinar slides
 
More than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike RoutesMore than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike Routes
 
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
 
Barbie - Brand Strategy Presentation
Barbie - Brand Strategy PresentationBarbie - Brand Strategy Presentation
Barbie - Brand Strategy Presentation
 
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them wellGood Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
 
Introduction to C Programming Language
Introduction to C Programming LanguageIntroduction to C Programming Language
Introduction to C Programming Language
 

Simplex

  • 1. Lecture 2 1 Linear and Combinatorial Optimization Lecture 2: The Simplex method • Basic solution. • The Simplex method (standardform, b>0). 1. Repetition of basic solution. 2. One step in the Simplex algorithm. 3. Unbounded problems. 4. Tableau form. 5. Optimality Criterion. • Degeneracy and cycling. • Artificial variables.
  • 2. Lecture 2 2 Properties of LP Theorem 2.1. A linear programming problem is a convex optimization problem. Proof. Exercise Theorem 2.2. Let S be the set of feasible solutions to a general LP problem. 1. If S is non-empty and bounded, then an optimal solution to the problem exists and occurs at an extreme point. 2. If S is non-empty and not bounded and if an optimal solution the the problem exists, then an optimal solution occurs at an extreme point. 3. If an optimal solution to the problem does not exist, then either S is empty or S is unbounded. Observe that the feasible set S is usually infinite, but the number of extreme points is finite.
  • 3. Lecture 2 3 A simple algorithm for solving LP Exhaustive search: • Identify all extreme points • Calculate the objective value for all extreme points • Pick the largest value Drawback: Although the number of extreme points is finite, it might be very large.
  • 4. Lecture 2 4 Extreme points in LP Study a LP-problem in canonical form. max z = cT x (1) Ax = b (2) x ≥ 0 (3) A m × s matrix with m ≤ s and rank m. Theorem 2.3. Suppose that A = [A1A2] and there exists x2 such that A2x2 = b, x2 > 0. Then, the columns of A2 are linearly dependent if and only if x =   0 x2   is not an extreme point in S.
  • 5. Lecture 2 5 Proof: (⇒) If the columns of A2 are linearly dependent, then there exists a vector c = 0 such that A2c = 0. Then A2 (x2 + ǫc) v2 = b A2 (x2 − ǫc) w2 = b Since all elements in x2 are positive, one can choose ǫ small enough so v2 > 0 and w2 > 0. Then x = 0 x2 T lies on the line segment between v = 0 v2 T and w = 0 w2 T which are both feasible points in S.
  • 6. Lecture 2 6 (⇐) If x is not an extreme point, then there exist v and w with Av = b and Aw = b and a scalar 0 < λ < 1 such that x = λv + (1 − λ)w. Then 0 = λ >0 v1 ≥0 + (1 − λ) >0 w1 ≥0 , ⇒ v1 = 0, w1 = 0 x2 = λv2 + (1 − λ)w2. Since b = Av = A2v2 = A2x2 so A2 (x2 − v2) =0 = 0, hence the columns in A2 are linearly dependent.
  • 7. Lecture 2 7 Important consequences Corollary 2.1. x =   0 x2   is an extreme point in S if and only if the columns of A2 are linearly independent. Corollary 2.2. Suppose x is an extreme point with r non-zero elements. Then r ≤ m and the corresponding columns may be extended to a basis by adding columns in A. Corollary 2.3. At most m elements in x are non-zero for extreme points.
  • 8. Lecture 2 8 Basic and non-basic variables For an LP-problem in canonical form, choose m basis variables such that corresponding columns in A form a basis. By reordering B N   xB 0   = BxB = b Solve for xb. Then x =   xB 0   is called a basic solution. In addition, if x ≥ 0 then x is called a basic feasible solution. Definition 2.1. The variables in xB are called basic variables and the variables in xN are called non-basic variables.
  • 9. Lecture 2 9 Number of basic feasible solutions Since the number of basic feasible solutions can be at most s m : Corollary 2.4. An LP-problem in canonical form has a finite number of basic feasible solutions. Every extreme point in a standard LP-problem corresponds to an extreme point in the corresponding canonical LP-problem and vice versa. Corollary 2.5. An LP-problem in standard form has a finite number of basic feasible solutions. Algorithm idea: Exhaustive search.
  • 10. Lecture 2 10 Constructing a basic solution Consider the canonical LP:    max z = cT x Ax = b x ≥ 0 (4) Choose m linearly independent columns of A with the corresponding components of x and reorder so that: B N   xB 0   = BxB = b ⇒ xB = B−1 b Now x = (xT B 0)T is a basic solution to (4). If xB ≥ 0 then x is a basic feasible solution since it fulfils the constraints in (4). A basic feasible solution to (4) is an extremepoint to S = {x|Ax = b, x ≥ 0}.
  • 11. Lecture 2 11 Solving standard LP with b > 0 Definition 2.2. Two basic solutions are adjacent if all but one basic variable are in common. Consider the standard form LP:    max z = cT x Ax ≤ b x ≥ 0 (5) Convert into a canonical LP by introducing slack variables. An initial basic feasible solution can always be found by choosing the m slack variables as basic variables and setting the other variables to zero, i.e. ˆx = (0 bT )T , ˆA = [A I] ⇒ ˆAˆx = ˆb
  • 12. Lecture 2 12 Choosing a new variable to enter the basis Divide x into basic variables, xB, and non-basic variables, xN (= 0) and divide A similarly into B and N, such that Ax = BxB+NxN = b ⇒ xB = B−1 b−B−1 NxN Eliminate xB from the goal function giving z = cT x = cT BxB + cT N xN = = cT BB−1 b + (cT N − cT BB−1 N)xN = = ˆz + ˆcT N xN , (6) where ˆcN = cT N − cT BB−1 N are called relative costs. Observe that if the relative cost ˆci is positive for some i, the goal function z can be increased by inserting the corresponding non-basic variable in the new basis.
  • 13. Lecture 2 13 Choosing which variable to leave the basis Assume that we have selected xk to enter the basis. The system of equations Ax = b can now be written as xB + B−1 akxk = B−1 b , with the solution xB = B−1 b − B−1 akxk = ˆb − ˆakxk where ak denotes column k in A. Since we would like to obtain a new feasible basis, we need to have xB = ˆb − ˆakxk ≥ 0 . ˆaij ≤ 0 leads to no decrease ˆaij > 0 leads to decrease We need to limit the increase in xk such that none of the xB will become negative, i.e. xk ≤ ˆbi ˆaij := θ (aij > 0)
  • 14. Lecture 2 14 The Tableau method We start with the following LP in canonical form    max z = cT x Ax = b x ≥ 0 Write the goal function as z − cT x = 0 . Assume that we start with the initial basic solution xD. The tableau is then defined as Basis xB xN z ˆb xD B N 0 b z −cT B −cT N 1 0 • Iterate by changing basis. • Select incoming and outgoing variable. • Pivot around the corresponding element in the matrix
  • 15. Lecture 2 15 The Tableau method (ctd.) We first perform row-operations transforming B to I: Basis xB xN z ˆb xB I B−1 N 0 B−1 b z −cT B −cT N 1 0 Then we eliminate cT B and arrive at the optimum with xB as basis, giving the tableau: Basis xB xN z ˆb xB I B−1 N 0 B−1 b z 0 cT BB−1 N − cT N 1 cT BB−1 b Observe that the optimum is xB = B−1 b, xN = 0 and z = cT BB−1 b. Observe also that the negative relative costs cT BB−1 N − cT N can be found in the tableau.
  • 16. Lecture 2 16 The Simplex method for LP-problems in standard form with b > 0 • Make tableau for initial basic solution • Check optimality criterion: If the objective row has zero entries in the columns labeled by basic variables and no negative entries in the columns labeled by nonbasic variables. • If the solution is not optimal, make tableau for an adjacent and improved solution – Selecting entering variable – Choosing the departing variable – Pivotal column, pivotal row. θ-ratios. – How to form the new tableau.
  • 17. Lecture 2 17 Possible outcomes • Optimum exists: Objective row has zero entries for basic variables and no negative entries for non-basic variables. • No finite optimal solution exists: No positive θ-ratios • No solution exists: Impossible to set up initial tableau since we start with a basic feasible solution.
  • 18. Lecture 2 18 Degeneracy and cycling Definition 2.3. A basic solution in which some basic variables are zero is called degenerate. At a degenerate basic solution, it may happen that the objective function does not increase. There is a risk of getting trapped in a cycle. Bland’s rule is a way of choosing pivotal column and pivotal row such that cycling is avoided. • Selecting the pivotal column: Choose the column with the smallest subscript among those with negative entries. • Selecting the pivotal row: If two rows have equal θ-ratios, choose the row corresponding to the basic variable with lowest subscript. Examples
  • 19. Lecture 2 19 Artificial variables How to solve an arbitrary LP-problem? • Two-phase method – Introduce artificial variables, eliminate with simplex. This results in a basic feasible solution. – Form the Simplex tableau and use the Simplex method. • Introduce artificial variables and weight them with M → ∞. The Big M method (Optional). Examples
  • 20. Lecture 2 20 Repetition - Lecture 2 • Equations and the Simplex tableau. • The Simplex method. – Optimality criterion? – How to select a new basic feasible solution? – How to detect if the problem is unbounded? – How to form the simplex tableau with matrices? • Degenerate basic solution, cycling, Bland’s rule. • Two-phase method.