SlideShare a Scribd company logo
Iris Hui-Ru Jiang Fall 2014
Linear Programming
IRIS H.-R. JIANG
Linear Programming
¨ Course contents:
¤ Linear programming
¤ Formulation
¤ Duality
¤ The simplex method
¨ Reading:
¤ Chapter 7 (Dasgupta)
¤ Chapter 29 (Cormen)
Linear programming
2
IRIS H.-R. JIANG
Linear Programming
¨ Linear programming describes a broad class of optimization
tasks in which both the optimization criterion and the
constraints are linear functions.
¨ Linear programming consists of three parts:
¤ A set of decision variables
¤ An objective function:
n maximize or minimize a given linear objective function
¤ A set of constraints:
n satisfy a set of linear inequalities involving these variables
Linear programming
3
IRIS H.-R. JIANG
Example: Profit Maximization (1/4)
¨ A boutique chocolatier has two products:
¤ A (Pyramide): profit $1 per box
¤ B (Nuit): profit $6 per box
¨ Constraints:
¤ The daily demand for these exclusive chocolates is limited to at
most 200 boxes of A and 300 boxes of B
¤ The current workforce can produce a total of at most 400 boxes
of chocolate per day
¨ Decision variables:
¤ x1 = Boxes of A
¤ x2 = Boxes of B
¨ Objective Function:
¤ Maximize profit
Linear programming
4
Iris Hui-Ru Jiang Fall 2014
Linear Programming
IRIS H.-R. JIANG
Linear Programming
¨ Course contents:
¤ Linear programming
¤ Formulation
¤ Duality
¤ The simplex method
¨ Reading:
¤ Chapter 7 (Dasgupta)
¤ Chapter 29 (Cormen)
Linear programming
2
IRIS H.-R. JIANG
Linear Programming
¨ Linear programming describes a broad class of optimization
tasks in which both the optimization criterion and the
constraints are linear functions.
¨ Linear programming consists of three parts:
¤ A set of decision variables
¤ An objective function:
n maximize or minimize a given linear objective function
¤ A set of constraints:
n satisfy a set of linear inequalities involving these variables
Linear programming
3
IRIS H.-R. JIANG
Example: Profit Maximization (1/4)
¨ A boutique chocolatier has two products:
¤ A (Pyramide): profit $1 per box
¤ B (Nuit): profit $6 per box
¨ Constraints:
¤ The daily demand for these exclusive chocolates is limited to at
most 200 boxes of A and 300 boxes of B
¤ The current workforce can produce a total of at most 400 boxes
of chocolate per day
¨ Decision variables:
¤ x1 = Boxes of A
¤ x2 = Boxes of B
¨ Objective Function:
¤ Maximize profit
Linear programming
4
Iris Hui-Ru Jiang Fall 2014
Linear Programming
IRIS H.-R. JIANG
Linear Programming
¨ Course contents:
¤ Linear programming
¤ Formulation
¤ Duality
¤ The simplex method
¨ Reading:
¤ Chapter 7 (Dasgupta)
¤ Chapter 29 (Cormen)
Linear programming
2
IRIS H.-R. JIANG
Linear Programming
¨ Linear programming describes a broad class of optimization
tasks in which both the optimization criterion and the
constraints are linear functions.
¨ Linear programming consists of three parts:
¤ A set of decision variables
¤ An objective function:
n maximize or minimize a given linear objective function
¤ A set of constraints:
n satisfy a set of linear inequalities involving these variables
Linear programming
3
IRIS H.-R. JIANG
Example: Profit Maximization (1/4)
¨ A boutique chocolatier has two products:
¤ A (Pyramide): profit $1 per box
¤ B (Nuit): profit $6 per box
¨ Constraints:
¤ The daily demand for these exclusive chocolates is limited to at
most 200 boxes of A and 300 boxes of B
¤ The current workforce can produce a total of at most 400 boxes
of chocolate per day
¨ Decision variables:
¤ x1 = Boxes of A
¤ x2 = Boxes of B
¨ Objective Function:
¤ Maximize profit
Linear programming
4
Iris Hui-Ru Jiang Fall 2014
Linear Programming
IRIS H.-R. JIANG
Linear Programming
¨ Course contents:
¤ Linear programming
¤ Formulation
¤ Duality
¤ The simplex method
¨ Reading:
¤ Chapter 7 (Dasgupta)
¤ Chapter 29 (Cormen)
Linear programming
2
IRIS H.-R. JIANG
Linear Programming
¨ Linear programming describes a broad class of optimization
tasks in which both the optimization criterion and the
constraints are linear functions.
¨ Linear programming consists of three parts:
¤ A set of decision variables
¤ An objective function:
n maximize or minimize a given linear objective function
¤ A set of constraints:
n satisfy a set of linear inequalities involving these variables
Linear programming
3
IRIS H.-R. JIANG
Example: Profit Maximization (1/4)
¨ A boutique chocolatier has two products:
¤ A (Pyramide): profit $1 per box
¤ B (Nuit): profit $6 per box
¨ Constraints:
¤ The daily demand for these exclusive chocolates is limited to at
most 200 boxes of A and 300 boxes of B
¤ The current workforce can produce a total of at most 400 boxes
of chocolate per day
¨ Decision variables:
¤ x1 = Boxes of A
¤ x2 = Boxes of B
¨ Objective Function:
¤ Maximize profit
Linear programming
4
IRIS H.-R. JIANG
Example: Profit Maximization (2/4)
¨ A linear equation in x1 and x2 defines a line in the 2D plane
¨ A linear inequality designates a half-space
¨ The set of all feasible solutions of this linear program is the
intersection of five half-spaces. It is a convex polygon
Linear programming
5
IRIS H.-R. JIANG
Example: Profit Maximization (3/4)
¨ Search for the optimal solution
¤ It is a general rule of linear programs that the optimum is
achieved at a vertex of the feasible region.
Linear programming
6
(100, 300)
IRIS H.-R. JIANG
Example: Profit Maximization (4/4)
¨ The Simplex method: hill climbing
¤ George Dantzig, 1947
¤ Starts at a vertex, say (0, 0)
¤ Repeatedly looks for an adjacent vertex (connected by an edge
of the feasible region) of better objective value
¤ Upon reaching a vertex that has no better neighbor, simplex
declares it to be optimal and halts
Linear programming
7
(100, 300)
IRIS H.-R. JIANG
Multipliers?
¨ Optimal: (x1, x2) = (100, 300); objective value = 1900
¨ Can this answer be checked somehow?
¤ (1) + 6*(2):
x1 + 6x2 <= 2000
¤ 0*(1) + 5*(2) + (3):
x1 + 6x2 <= 1900
¤ The multipliers (0, 5, 1) constitute a certificate of optimality
¤ How would we systematically find the magic multipliers?
Linear programming
8
max x1 + 6x2
x1 <= 200 (1)
x2 <= 300 (2)
x1 + x2 <= 400 (3)
x1 , x2 >= 0.
IRIS H.-R. JIANG
Example: Profit Maximization (2/4)
¨ A linear equation in x1 and x2 defines a line in the 2D plane
¨ A linear inequality designates a half-space
¨ The set of all feasible solutions of this linear program is the
intersection of five half-spaces. It is a convex polygon
Linear programming
5
IRIS H.-R. JIANG
Example: Profit Maximization (3/4)
¨ Search for the optimal solution
¤ It is a general rule of linear programs that the optimum is
achieved at a vertex of the feasible region.
Linear programming
6
(100, 300)
IRIS H.-R. JIANG
Example: Profit Maximization (4/4)
¨ The Simplex method: hill climbing
¤ George Dantzig, 1947
¤ Starts at a vertex, say (0, 0)
¤ Repeatedly looks for an adjacent vertex (connected by an edge
of the feasible region) of better objective value
¤ Upon reaching a vertex that has no better neighbor, simplex
declares it to be optimal and halts
Linear programming
7
(100, 300)
IRIS H.-R. JIANG
Multipliers?
¨ Optimal: (x1, x2) = (100, 300); objective value = 1900
¨ Can this answer be checked somehow?
¤ (1) + 6*(2):
x1 + 6x2 <= 2000
¤ 0*(1) + 5*(2) + (3):
x1 + 6x2 <= 1900
¤ The multipliers (0, 5, 1) constitute a certificate of optimality
¤ How would we systematically find the magic multipliers?
Linear programming
8
max x1 + 6x2
x1 <= 200 (1)
x2 <= 300 (2)
x1 + x2 <= 400 (3)
x1 , x2 >= 0.
IRIS H.-R. JIANG
Example: Profit Maximization (2/4)
¨ A linear equation in x1 and x2 defines a line in the 2D plane
¨ A linear inequality designates a half-space
¨ The set of all feasible solutions of this linear program is the
intersection of five half-spaces. It is a convex polygon
Linear programming
5
IRIS H.-R. JIANG
Example: Profit Maximization (3/4)
¨ Search for the optimal solution
¤ It is a general rule of linear programs that the optimum is
achieved at a vertex of the feasible region.
Linear programming
6
(100, 300)
IRIS H.-R. JIANG
Example: Profit Maximization (4/4)
¨ The Simplex method: hill climbing
¤ George Dantzig, 1947
¤ Starts at a vertex, say (0, 0)
¤ Repeatedly looks for an adjacent vertex (connected by an edge
of the feasible region) of better objective value
¤ Upon reaching a vertex that has no better neighbor, simplex
declares it to be optimal and halts
Linear programming
7
(100, 300)
IRIS H.-R. JIANG
Multipliers?
¨ Optimal: (x1, x2) = (100, 300); objective value = 1900
¨ Can this answer be checked somehow?
¤ (1) + 6*(2):
x1 + 6x2 <= 2000
¤ 0*(1) + 5*(2) + (3):
x1 + 6x2 <= 1900
¤ The multipliers (0, 5, 1) constitute a certificate of optimality
¤ How would we systematically find the magic multipliers?
Linear programming
8
max x1 + 6x2
x1 <= 200 (1)
x2 <= 300 (2)
x1 + x2 <= 400 (3)
x1 , x2 >= 0.
IRIS H.-R. JIANG
Example: Profit Maximization (2/4)
¨ A linear equation in x1 and x2 defines a line in the 2D plane
¨ A linear inequality designates a half-space
¨ The set of all feasible solutions of this linear program is the
intersection of five half-spaces. It is a convex polygon
Linear programming
5
IRIS H.-R. JIANG
Example: Profit Maximization (3/4)
¨ Search for the optimal solution
¤ It is a general rule of linear programs that the optimum is
achieved at a vertex of the feasible region.
Linear programming
6
(100, 300)
IRIS H.-R. JIANG
Example: Profit Maximization (4/4)
¨ The Simplex method: hill climbing
¤ George Dantzig, 1947
¤ Starts at a vertex, say (0, 0)
¤ Repeatedly looks for an adjacent vertex (connected by an edge
of the feasible region) of better objective value
¤ Upon reaching a vertex that has no better neighbor, simplex
declares it to be optimal and halts
Linear programming
7
(100, 300)
IRIS H.-R. JIANG
Multipliers?
¨ Optimal: (x1, x2) = (100, 300); objective value = 1900
¨ Can this answer be checked somehow?
¤ (1) + 6*(2):
x1 + 6x2 <= 2000
¤ 0*(1) + 5*(2) + (3):
x1 + 6x2 <= 1900
¤ The multipliers (0, 5, 1) constitute a certificate of optimality
¤ How would we systematically find the magic multipliers?
Linear programming
8
max x1 + 6x2
x1 <= 200 (1)
x2 <= 300 (2)
x1 + x2 <= 400 (3)
x1 , x2 >= 0.
IRIS H.-R. JIANG
Duality (1/3)
¨ Multipliers yi’s must be nonnegative
¨ If the left-hand side to look like our objective function, the right-
hand side is an upper bound on the optimum solution
¨ We want a tight bound!
Linear programming
9
max x1 + 6x2
x1 <= 200 (1)
x2 <= 300 (2)
x1 + x2 <= 400 (3)
x1 , x2 >= 0.
IRIS H.-R. JIANG
Duality (2/3)
¨ A new LP: finding multipliers that gives the best upper bound
on our original LP
¤ Primal LP
¤ Any feasible value of dual LP is an upper bound on primal LP
¤ If we find a pair of primal and dual feasible values that are equal,
they must be both optimal.
Linear programming
10
¤ Dual LP
IRIS H.-R. JIANG
Duality (3/3)
¨ Generic form:
¨ Dual theorem: If a linear program has a bounded optimum, then
so does its dual, and the new optimum values coincide.
¤ Max-flow min-cut
Linear programming
11
IRIS H.-R. JIANG
The Simplex Algorithm
Linear programming
12
Every constraint specifies an
n-dimensional half-space
Travel along “edges” until no
improvement can be made
IRIS H.-R. JIANG
Duality (1/3)
¨ Multipliers yi’s must be nonnegative
¨ If the left-hand side to look like our objective function, the right-
hand side is an upper bound on the optimum solution
¨ We want a tight bound!
Linear programming
9
max x1 + 6x2
x1 <= 200 (1)
x2 <= 300 (2)
x1 + x2 <= 400 (3)
x1 , x2 >= 0.
IRIS H.-R. JIANG
Duality (2/3)
¨ A new LP: finding multipliers that gives the best upper bound
on our original LP
¤ Primal LP
¤ Any feasible value of dual LP is an upper bound on primal LP
¤ If we find a pair of primal and dual feasible values that are equal,
they must be both optimal.
Linear programming
10
¤ Dual LP
IRIS H.-R. JIANG
Duality (3/3)
¨ Generic form:
¨ Dual theorem: If a linear program has a bounded optimum, then
so does its dual, and the new optimum values coincide.
¤ Max-flow min-cut
Linear programming
11
IRIS H.-R. JIANG
The Simplex Algorithm
Linear programming
12
Every constraint specifies an
n-dimensional half-space
Travel along “edges” until no
improvement can be made
IRIS H.-R. JIANG
Duality (1/3)
¨ Multipliers yi’s must be nonnegative
¨ If the left-hand side to look like our objective function, the right-
hand side is an upper bound on the optimum solution
¨ We want a tight bound!
Linear programming
9
max x1 + 6x2
x1 <= 200 (1)
x2 <= 300 (2)
x1 + x2 <= 400 (3)
x1 , x2 >= 0.
IRIS H.-R. JIANG
Duality (2/3)
¨ A new LP: finding multipliers that gives the best upper bound
on our original LP
¤ Primal LP
¤ Any feasible value of dual LP is an upper bound on primal LP
¤ If we find a pair of primal and dual feasible values that are equal,
they must be both optimal.
Linear programming
10
¤ Dual LP
IRIS H.-R. JIANG
Duality (3/3)
¨ Generic form:
¨ Dual theorem: If a linear program has a bounded optimum, then
so does its dual, and the new optimum values coincide.
¤ Max-flow min-cut
Linear programming
11
IRIS H.-R. JIANG
The Simplex Algorithm
Linear programming
12
Every constraint specifies an
n-dimensional half-space
Travel along “edges” until no
improvement can be made
IRIS H.-R. JIANG
Duality (1/3)
¨ Multipliers yi’s must be nonnegative
¨ If the left-hand side to look like our objective function, the right-
hand side is an upper bound on the optimum solution
¨ We want a tight bound!
Linear programming
9
max x1 + 6x2
x1 <= 200 (1)
x2 <= 300 (2)
x1 + x2 <= 400 (3)
x1 , x2 >= 0.
IRIS H.-R. JIANG
Duality (2/3)
¨ A new LP: finding multipliers that gives the best upper bound
on our original LP
¤ Primal LP
¤ Any feasible value of dual LP is an upper bound on primal LP
¤ If we find a pair of primal and dual feasible values that are equal,
they must be both optimal.
Linear programming
10
¤ Dual LP
IRIS H.-R. JIANG
Duality (3/3)
¨ Generic form:
¨ Dual theorem: If a linear program has a bounded optimum, then
so does its dual, and the new optimum values coincide.
¤ Max-flow min-cut
Linear programming
11
IRIS H.-R. JIANG
The Simplex Algorithm
Linear programming
12
Every constraint specifies an
n-dimensional half-space
Travel along “edges” until no
improvement can be made
IRIS H.-R. JIANG
Vertex and Neighbors
¨ Pick a subset of the inequalities. If there is
a unique point that satisfies them with equality,
and this point happens to be feasible,
then it is a vertex
¤ {2, 3, 7} ® A
¤ {4, 6} ® no vertex
¨ Two vertices are neighbors if they have
n - 1 defining inequalities in common
¤ {2, 3, 7} ® A
¤ {1, 3, 7} ® C
13
Linear programming
IRIS H.-R. JIANG
The Simplex Algorithm
¨ On each iteration, simplex has two tasks:
¤ Task 1: Check whether the current vertex is optimal
¤ Task 2: Determine where to move next
¨ Both tasks are easy if the vertex happens to be at the origin
¤ Transform the coordinate system to move vertex u to the origin
¨ Task 1:
¤ The origin is optimal if and only if all ci <= 0
¨ Task 2:
¤ We can move by increasing some xi for which ci > 0
¤ Until we hit some other constraint
14
Linear programming
IRIS H.-R. JIANG
Example (1/3)
Linear programming
15
IRIS H.-R. JIANG
Example (2/3)
Linear programming
16
IRIS H.-R. JIANG
Vertex and Neighbors
¨ Pick a subset of the inequalities. If there is
a unique point that satisfies them with equality,
and this point happens to be feasible,
then it is a vertex
¤ {2, 3, 7} ® A
¤ {4, 6} ® no vertex
¨ Two vertices are neighbors if they have
n - 1 defining inequalities in common
¤ {2, 3, 7} ® A
¤ {1, 3, 7} ® C
13
Linear programming
IRIS H.-R. JIANG
The Simplex Algorithm
¨ On each iteration, simplex has two tasks:
¤ Task 1: Check whether the current vertex is optimal
¤ Task 2: Determine where to move next
¨ Both tasks are easy if the vertex happens to be at the origin
¤ Transform the coordinate system to move vertex u to the origin
¨ Task 1:
¤ The origin is optimal if and only if all ci <= 0
¨ Task 2:
¤ We can move by increasing some xi for which ci > 0
¤ Until we hit some other constraint
14
Linear programming
IRIS H.-R. JIANG
Example (1/3)
Linear programming
15
IRIS H.-R. JIANG
Example (2/3)
Linear programming
16
IRIS H.-R. JIANG
Vertex and Neighbors
¨ Pick a subset of the inequalities. If there is
a unique point that satisfies them with equality,
and this point happens to be feasible,
then it is a vertex
¤ {2, 3, 7} ® A
¤ {4, 6} ® no vertex
¨ Two vertices are neighbors if they have
n - 1 defining inequalities in common
¤ {2, 3, 7} ® A
¤ {1, 3, 7} ® C
13
Linear programming
IRIS H.-R. JIANG
The Simplex Algorithm
¨ On each iteration, simplex has two tasks:
¤ Task 1: Check whether the current vertex is optimal
¤ Task 2: Determine where to move next
¨ Both tasks are easy if the vertex happens to be at the origin
¤ Transform the coordinate system to move vertex u to the origin
¨ Task 1:
¤ The origin is optimal if and only if all ci <= 0
¨ Task 2:
¤ We can move by increasing some xi for which ci > 0
¤ Until we hit some other constraint
14
Linear programming
IRIS H.-R. JIANG
Example (1/3)
Linear programming
15
IRIS H.-R. JIANG
Example (2/3)
Linear programming
16
IRIS H.-R. JIANG
Vertex and Neighbors
¨ Pick a subset of the inequalities. If there is
a unique point that satisfies them with equality,
and this point happens to be feasible,
then it is a vertex
¤ {2, 3, 7} ® A
¤ {4, 6} ® no vertex
¨ Two vertices are neighbors if they have
n - 1 defining inequalities in common
¤ {2, 3, 7} ® A
¤ {1, 3, 7} ® C
13
Linear programming
IRIS H.-R. JIANG
The Simplex Algorithm
¨ On each iteration, simplex has two tasks:
¤ Task 1: Check whether the current vertex is optimal
¤ Task 2: Determine where to move next
¨ Both tasks are easy if the vertex happens to be at the origin
¤ Transform the coordinate system to move vertex u to the origin
¨ Task 1:
¤ The origin is optimal if and only if all ci <= 0
¨ Task 2:
¤ We can move by increasing some xi for which ci > 0
¤ Until we hit some other constraint
14
Linear programming
IRIS H.-R. JIANG
Example (1/3)
Linear programming
15
IRIS H.-R. JIANG
Example (2/3)
Linear programming
16
IRIS H.-R. JIANG
Example (3/3)
17
Linear programming
IRIS H.-R. JIANG
Standard Form
¨ Variants
¤ Either a maximization or a minimization problem
¤ Constraints can be equations and/or inequalities
¤ Variables are restricted to be nonnegative or unrestricted in sign
¨ Standard form
¤ Objective function: minimization
¤ Constraints: equations
¤ Variables: nonnegative
Linear programming
18
Slack variables
IRIS H.-R. JIANG
Example (3/3)
17
Linear programming
IRIS H.-R. JIANG
Standard Form
¨ Variants
¤ Either a maximization or a minimization problem
¤ Constraints can be equations and/or inequalities
¤ Variables are restricted to be nonnegative or unrestricted in sign
¨ Standard form
¤ Objective function: minimization
¤ Constraints: equations
¤ Variables: nonnegative
Linear programming
18
Slack variables
Ad

Recommended

Precalculus 1 chapter 2
Precalculus 1 chapter 2
oreves
 
Vcs slides on or 2014
Vcs slides on or 2014
Shakti Ranjan
 
Quantitative Methods - section 6.pdf in business administration
Quantitative Methods - section 6.pdf in business administration
nourhanrezk
 
beyond linear programming: mathematical programming extensions
beyond linear programming: mathematical programming extensions
Angelica Angelo Ocon
 
Formulation Lpp
Formulation Lpp
Sachin MK
 
LinearProgramming-Graphicalnethod.ppt
LinearProgramming-Graphicalnethod.ppt
Mayurkumarpatil1
 
linear programming model formulation and graphical solution
linear programming model formulation and graphical solution
EslamMagdy64
 
Paper Study: Melding the data decision pipeline
Paper Study: Melding the data decision pipeline
ChenYiHuang5
 
Alg II Unit 3-4-linear programingintro
Alg II Unit 3-4-linear programingintro
jtentinger
 
P7
P7
salamhello
 
Alg II 3-4 Linear Programming
Alg II 3-4 Linear Programming
jtentinger
 
linearprogramming.pdf
linearprogramming.pdf
Er. Rahul Jarariya
 
Linear programming - Model formulation, Graphical Method
Linear programming - Model formulation, Graphical Method
Joseph Konnully
 
오토인코더의 모든 것
오토인코더의 모든 것
NAVER Engineering
 
Ms(lpgraphicalsoln.)[1]
Ms(lpgraphicalsoln.)[1]
Manisha Kaushal
 
SRWColAlg6_0P_07.ppt
SRWColAlg6_0P_07.ppt
alexdomingo18
 
Dynamic Programming Matrix Chain Multiplication
Dynamic Programming Matrix Chain Multiplication
KrishnakoumarC
 
Introductory maths analysis chapter 17 official
Introductory maths analysis chapter 17 official
Evert Sandye Taasiringan
 
Chapter 17 - Multivariable Calculus
Chapter 17 - Multivariable Calculus
Muhammad Bilal Khairuddin
 
Chapter17 multivariablecalculus-151007044001-lva1-app6891
Chapter17 multivariablecalculus-151007044001-lva1-app6891
Cleophas Rwemera
 
02.03 Artificial Intelligence: Search by Optimization
02.03 Artificial Intelligence: Search by Optimization
Andres Mendez-Vazquez
 
439_Applied_Mathematics_for_Civil_Engineering_LECTURE_1 Function.pptx
439_Applied_Mathematics_for_Civil_Engineering_LECTURE_1 Function.pptx
htutkhungsan5420
 
Integer Programming PPt.ernxzamnbmbmspdf
Integer Programming PPt.ernxzamnbmbmspdf
Raja Manyam
 
Determination of Optimal Product Mix for Profit Maximization using Linear Pro...
Determination of Optimal Product Mix for Profit Maximization using Linear Pro...
IJERA Editor
 
Determination of Optimal Product Mix for Profit Maximization using Linear Pro...
Determination of Optimal Product Mix for Profit Maximization using Linear Pro...
IJERA Editor
 
Numerical Methods for Engineers 6th Edition Chapra Solutions Manual
Numerical Methods for Engineers 6th Edition Chapra Solutions Manual
webavaq
 
Feature Engineering
Feature Engineering
Sri Ambati
 
4. linear programming using excel solver
4. linear programming using excel solver
Hakeem-Ur- Rehman
 
algorithm_6dynamic_programming.pdf
algorithm_6dynamic_programming.pdf
HsuChi Chen
 
algorithm_1introdunction.pdf
algorithm_1introdunction.pdf
HsuChi Chen
 

More Related Content

Similar to algorithm_9linear_programming.pdf (20)

Alg II Unit 3-4-linear programingintro
Alg II Unit 3-4-linear programingintro
jtentinger
 
P7
P7
salamhello
 
Alg II 3-4 Linear Programming
Alg II 3-4 Linear Programming
jtentinger
 
linearprogramming.pdf
linearprogramming.pdf
Er. Rahul Jarariya
 
Linear programming - Model formulation, Graphical Method
Linear programming - Model formulation, Graphical Method
Joseph Konnully
 
오토인코더의 모든 것
오토인코더의 모든 것
NAVER Engineering
 
Ms(lpgraphicalsoln.)[1]
Ms(lpgraphicalsoln.)[1]
Manisha Kaushal
 
SRWColAlg6_0P_07.ppt
SRWColAlg6_0P_07.ppt
alexdomingo18
 
Dynamic Programming Matrix Chain Multiplication
Dynamic Programming Matrix Chain Multiplication
KrishnakoumarC
 
Introductory maths analysis chapter 17 official
Introductory maths analysis chapter 17 official
Evert Sandye Taasiringan
 
Chapter 17 - Multivariable Calculus
Chapter 17 - Multivariable Calculus
Muhammad Bilal Khairuddin
 
Chapter17 multivariablecalculus-151007044001-lva1-app6891
Chapter17 multivariablecalculus-151007044001-lva1-app6891
Cleophas Rwemera
 
02.03 Artificial Intelligence: Search by Optimization
02.03 Artificial Intelligence: Search by Optimization
Andres Mendez-Vazquez
 
439_Applied_Mathematics_for_Civil_Engineering_LECTURE_1 Function.pptx
439_Applied_Mathematics_for_Civil_Engineering_LECTURE_1 Function.pptx
htutkhungsan5420
 
Integer Programming PPt.ernxzamnbmbmspdf
Integer Programming PPt.ernxzamnbmbmspdf
Raja Manyam
 
Determination of Optimal Product Mix for Profit Maximization using Linear Pro...
Determination of Optimal Product Mix for Profit Maximization using Linear Pro...
IJERA Editor
 
Determination of Optimal Product Mix for Profit Maximization using Linear Pro...
Determination of Optimal Product Mix for Profit Maximization using Linear Pro...
IJERA Editor
 
Numerical Methods for Engineers 6th Edition Chapra Solutions Manual
Numerical Methods for Engineers 6th Edition Chapra Solutions Manual
webavaq
 
Feature Engineering
Feature Engineering
Sri Ambati
 
4. linear programming using excel solver
4. linear programming using excel solver
Hakeem-Ur- Rehman
 
Alg II Unit 3-4-linear programingintro
Alg II Unit 3-4-linear programingintro
jtentinger
 
Alg II 3-4 Linear Programming
Alg II 3-4 Linear Programming
jtentinger
 
Linear programming - Model formulation, Graphical Method
Linear programming - Model formulation, Graphical Method
Joseph Konnully
 
오토인코더의 모든 것
오토인코더의 모든 것
NAVER Engineering
 
SRWColAlg6_0P_07.ppt
SRWColAlg6_0P_07.ppt
alexdomingo18
 
Dynamic Programming Matrix Chain Multiplication
Dynamic Programming Matrix Chain Multiplication
KrishnakoumarC
 
Introductory maths analysis chapter 17 official
Introductory maths analysis chapter 17 official
Evert Sandye Taasiringan
 
Chapter17 multivariablecalculus-151007044001-lva1-app6891
Chapter17 multivariablecalculus-151007044001-lva1-app6891
Cleophas Rwemera
 
02.03 Artificial Intelligence: Search by Optimization
02.03 Artificial Intelligence: Search by Optimization
Andres Mendez-Vazquez
 
439_Applied_Mathematics_for_Civil_Engineering_LECTURE_1 Function.pptx
439_Applied_Mathematics_for_Civil_Engineering_LECTURE_1 Function.pptx
htutkhungsan5420
 
Integer Programming PPt.ernxzamnbmbmspdf
Integer Programming PPt.ernxzamnbmbmspdf
Raja Manyam
 
Determination of Optimal Product Mix for Profit Maximization using Linear Pro...
Determination of Optimal Product Mix for Profit Maximization using Linear Pro...
IJERA Editor
 
Determination of Optimal Product Mix for Profit Maximization using Linear Pro...
Determination of Optimal Product Mix for Profit Maximization using Linear Pro...
IJERA Editor
 
Numerical Methods for Engineers 6th Edition Chapra Solutions Manual
Numerical Methods for Engineers 6th Edition Chapra Solutions Manual
webavaq
 
Feature Engineering
Feature Engineering
Sri Ambati
 
4. linear programming using excel solver
4. linear programming using excel solver
Hakeem-Ur- Rehman
 

More from HsuChi Chen (14)

algorithm_6dynamic_programming.pdf
algorithm_6dynamic_programming.pdf
HsuChi Chen
 
algorithm_1introdunction.pdf
algorithm_1introdunction.pdf
HsuChi Chen
 
algorithm_4greedy_algorithms.pdf
algorithm_4greedy_algorithms.pdf
HsuChi Chen
 
algorithm_3graphs.pdf
algorithm_3graphs.pdf
HsuChi Chen
 
algorithm_7network_flow.pdf
algorithm_7network_flow.pdf
HsuChi Chen
 
algorithm_2algorithm_analysis.pdf
algorithm_2algorithm_analysis.pdf
HsuChi Chen
 
algorithm_8beyond_polynomial_running_times.pdf
algorithm_8beyond_polynomial_running_times.pdf
HsuChi Chen
 
algorithm_5divide_and_conquer.pdf
algorithm_5divide_and_conquer.pdf
HsuChi Chen
 
algorithm_0introdunction.pdf
algorithm_0introdunction.pdf
HsuChi Chen
 
期末專題報告書
期末專題報告書
HsuChi Chen
 
單晶片期末專題-報告二
單晶片期末專題-報告二
HsuChi Chen
 
單晶片期末專題-報告一
單晶片期末專題-報告一
HsuChi Chen
 
模組化課程生醫微製程期末報告
模組化課程生醫微製程期末報告
HsuChi Chen
 
單晶片期末專題-初步想法
單晶片期末專題-初步想法
HsuChi Chen
 
algorithm_6dynamic_programming.pdf
algorithm_6dynamic_programming.pdf
HsuChi Chen
 
algorithm_1introdunction.pdf
algorithm_1introdunction.pdf
HsuChi Chen
 
algorithm_4greedy_algorithms.pdf
algorithm_4greedy_algorithms.pdf
HsuChi Chen
 
algorithm_3graphs.pdf
algorithm_3graphs.pdf
HsuChi Chen
 
algorithm_7network_flow.pdf
algorithm_7network_flow.pdf
HsuChi Chen
 
algorithm_2algorithm_analysis.pdf
algorithm_2algorithm_analysis.pdf
HsuChi Chen
 
algorithm_8beyond_polynomial_running_times.pdf
algorithm_8beyond_polynomial_running_times.pdf
HsuChi Chen
 
algorithm_5divide_and_conquer.pdf
algorithm_5divide_and_conquer.pdf
HsuChi Chen
 
algorithm_0introdunction.pdf
algorithm_0introdunction.pdf
HsuChi Chen
 
期末專題報告書
期末專題報告書
HsuChi Chen
 
單晶片期末專題-報告二
單晶片期末專題-報告二
HsuChi Chen
 
單晶片期末專題-報告一
單晶片期末專題-報告一
HsuChi Chen
 
模組化課程生醫微製程期末報告
模組化課程生醫微製程期末報告
HsuChi Chen
 
單晶片期末專題-初步想法
單晶片期末專題-初步想法
HsuChi Chen
 
Ad

Recently uploaded (20)

Rierino Commerce Platform - CMS Solution
Rierino Commerce Platform - CMS Solution
Rierino
 
Async-ronizing Success at Wix - Patterns for Seamless Microservices - Devoxx ...
Async-ronizing Success at Wix - Patterns for Seamless Microservices - Devoxx ...
Natan Silnitsky
 
Decipher SEO Solutions for your startup needs.
Decipher SEO Solutions for your startup needs.
mathai2
 
UPDASP a project coordination unit ......
UPDASP a project coordination unit ......
withrj1
 
What is data visualization and how data visualization tool can help.pdf
What is data visualization and how data visualization tool can help.pdf
Varsha Nayak
 
FME as an Orchestration Tool - Peak of Data & AI 2025
FME as an Orchestration Tool - Peak of Data & AI 2025
Safe Software
 
wAIred_RabobankIgniteSession_12062025.pptx
wAIred_RabobankIgniteSession_12062025.pptx
SimonedeGijt
 
Transmission Media. (Computer Networks)
Transmission Media. (Computer Networks)
S Pranav (Deepu)
 
dp-700 exam questions sample docume .pdf
dp-700 exam questions sample docume .pdf
pravkumarbiz
 
Open Source Software Development Methods
Open Source Software Development Methods
VICTOR MAESTRE RAMIREZ
 
Zoneranker’s Digital marketing solutions
Zoneranker’s Digital marketing solutions
reenashriee
 
Advanced Token Development - Decentralized Innovation
Advanced Token Development - Decentralized Innovation
arohisinghas720
 
Meet You in the Middle: 1000x Performance for Parquet Queries on PB-Scale Dat...
Meet You in the Middle: 1000x Performance for Parquet Queries on PB-Scale Dat...
Alluxio, Inc.
 
Download Adobe Illustrator Crack free for Windows 2025?
Download Adobe Illustrator Crack free for Windows 2025?
grete1122g
 
Porting Qt 5 QML Modules to Qt 6 Webinar
Porting Qt 5 QML Modules to Qt 6 Webinar
ICS
 
Application Modernization with Choreo - The AI-Native Internal Developer Plat...
Application Modernization with Choreo - The AI-Native Internal Developer Plat...
WSO2
 
Step by step guide to install Flutter and Dart
Step by step guide to install Flutter and Dart
S Pranav (Deepu)
 
How Insurance Policy Management Software Streamlines Operations
How Insurance Policy Management Software Streamlines Operations
Insurance Tech Services
 
Shell Skill Tree - LabEx Certification (LabEx)
Shell Skill Tree - LabEx Certification (LabEx)
VICTOR MAESTRE RAMIREZ
 
SAP Datasphere Catalog L2 (2024-02-07).pptx
SAP Datasphere Catalog L2 (2024-02-07).pptx
HimanshuSachdeva46
 
Rierino Commerce Platform - CMS Solution
Rierino Commerce Platform - CMS Solution
Rierino
 
Async-ronizing Success at Wix - Patterns for Seamless Microservices - Devoxx ...
Async-ronizing Success at Wix - Patterns for Seamless Microservices - Devoxx ...
Natan Silnitsky
 
Decipher SEO Solutions for your startup needs.
Decipher SEO Solutions for your startup needs.
mathai2
 
UPDASP a project coordination unit ......
UPDASP a project coordination unit ......
withrj1
 
What is data visualization and how data visualization tool can help.pdf
What is data visualization and how data visualization tool can help.pdf
Varsha Nayak
 
FME as an Orchestration Tool - Peak of Data & AI 2025
FME as an Orchestration Tool - Peak of Data & AI 2025
Safe Software
 
wAIred_RabobankIgniteSession_12062025.pptx
wAIred_RabobankIgniteSession_12062025.pptx
SimonedeGijt
 
Transmission Media. (Computer Networks)
Transmission Media. (Computer Networks)
S Pranav (Deepu)
 
dp-700 exam questions sample docume .pdf
dp-700 exam questions sample docume .pdf
pravkumarbiz
 
Open Source Software Development Methods
Open Source Software Development Methods
VICTOR MAESTRE RAMIREZ
 
Zoneranker’s Digital marketing solutions
Zoneranker’s Digital marketing solutions
reenashriee
 
Advanced Token Development - Decentralized Innovation
Advanced Token Development - Decentralized Innovation
arohisinghas720
 
Meet You in the Middle: 1000x Performance for Parquet Queries on PB-Scale Dat...
Meet You in the Middle: 1000x Performance for Parquet Queries on PB-Scale Dat...
Alluxio, Inc.
 
Download Adobe Illustrator Crack free for Windows 2025?
Download Adobe Illustrator Crack free for Windows 2025?
grete1122g
 
Porting Qt 5 QML Modules to Qt 6 Webinar
Porting Qt 5 QML Modules to Qt 6 Webinar
ICS
 
Application Modernization with Choreo - The AI-Native Internal Developer Plat...
Application Modernization with Choreo - The AI-Native Internal Developer Plat...
WSO2
 
Step by step guide to install Flutter and Dart
Step by step guide to install Flutter and Dart
S Pranav (Deepu)
 
How Insurance Policy Management Software Streamlines Operations
How Insurance Policy Management Software Streamlines Operations
Insurance Tech Services
 
Shell Skill Tree - LabEx Certification (LabEx)
Shell Skill Tree - LabEx Certification (LabEx)
VICTOR MAESTRE RAMIREZ
 
SAP Datasphere Catalog L2 (2024-02-07).pptx
SAP Datasphere Catalog L2 (2024-02-07).pptx
HimanshuSachdeva46
 
Ad

algorithm_9linear_programming.pdf

  • 1. Iris Hui-Ru Jiang Fall 2014 Linear Programming IRIS H.-R. JIANG Linear Programming ¨ Course contents: ¤ Linear programming ¤ Formulation ¤ Duality ¤ The simplex method ¨ Reading: ¤ Chapter 7 (Dasgupta) ¤ Chapter 29 (Cormen) Linear programming 2 IRIS H.-R. JIANG Linear Programming ¨ Linear programming describes a broad class of optimization tasks in which both the optimization criterion and the constraints are linear functions. ¨ Linear programming consists of three parts: ¤ A set of decision variables ¤ An objective function: n maximize or minimize a given linear objective function ¤ A set of constraints: n satisfy a set of linear inequalities involving these variables Linear programming 3 IRIS H.-R. JIANG Example: Profit Maximization (1/4) ¨ A boutique chocolatier has two products: ¤ A (Pyramide): profit $1 per box ¤ B (Nuit): profit $6 per box ¨ Constraints: ¤ The daily demand for these exclusive chocolates is limited to at most 200 boxes of A and 300 boxes of B ¤ The current workforce can produce a total of at most 400 boxes of chocolate per day ¨ Decision variables: ¤ x1 = Boxes of A ¤ x2 = Boxes of B ¨ Objective Function: ¤ Maximize profit Linear programming 4
  • 2. Iris Hui-Ru Jiang Fall 2014 Linear Programming IRIS H.-R. JIANG Linear Programming ¨ Course contents: ¤ Linear programming ¤ Formulation ¤ Duality ¤ The simplex method ¨ Reading: ¤ Chapter 7 (Dasgupta) ¤ Chapter 29 (Cormen) Linear programming 2 IRIS H.-R. JIANG Linear Programming ¨ Linear programming describes a broad class of optimization tasks in which both the optimization criterion and the constraints are linear functions. ¨ Linear programming consists of three parts: ¤ A set of decision variables ¤ An objective function: n maximize or minimize a given linear objective function ¤ A set of constraints: n satisfy a set of linear inequalities involving these variables Linear programming 3 IRIS H.-R. JIANG Example: Profit Maximization (1/4) ¨ A boutique chocolatier has two products: ¤ A (Pyramide): profit $1 per box ¤ B (Nuit): profit $6 per box ¨ Constraints: ¤ The daily demand for these exclusive chocolates is limited to at most 200 boxes of A and 300 boxes of B ¤ The current workforce can produce a total of at most 400 boxes of chocolate per day ¨ Decision variables: ¤ x1 = Boxes of A ¤ x2 = Boxes of B ¨ Objective Function: ¤ Maximize profit Linear programming 4
  • 3. Iris Hui-Ru Jiang Fall 2014 Linear Programming IRIS H.-R. JIANG Linear Programming ¨ Course contents: ¤ Linear programming ¤ Formulation ¤ Duality ¤ The simplex method ¨ Reading: ¤ Chapter 7 (Dasgupta) ¤ Chapter 29 (Cormen) Linear programming 2 IRIS H.-R. JIANG Linear Programming ¨ Linear programming describes a broad class of optimization tasks in which both the optimization criterion and the constraints are linear functions. ¨ Linear programming consists of three parts: ¤ A set of decision variables ¤ An objective function: n maximize or minimize a given linear objective function ¤ A set of constraints: n satisfy a set of linear inequalities involving these variables Linear programming 3 IRIS H.-R. JIANG Example: Profit Maximization (1/4) ¨ A boutique chocolatier has two products: ¤ A (Pyramide): profit $1 per box ¤ B (Nuit): profit $6 per box ¨ Constraints: ¤ The daily demand for these exclusive chocolates is limited to at most 200 boxes of A and 300 boxes of B ¤ The current workforce can produce a total of at most 400 boxes of chocolate per day ¨ Decision variables: ¤ x1 = Boxes of A ¤ x2 = Boxes of B ¨ Objective Function: ¤ Maximize profit Linear programming 4
  • 4. Iris Hui-Ru Jiang Fall 2014 Linear Programming IRIS H.-R. JIANG Linear Programming ¨ Course contents: ¤ Linear programming ¤ Formulation ¤ Duality ¤ The simplex method ¨ Reading: ¤ Chapter 7 (Dasgupta) ¤ Chapter 29 (Cormen) Linear programming 2 IRIS H.-R. JIANG Linear Programming ¨ Linear programming describes a broad class of optimization tasks in which both the optimization criterion and the constraints are linear functions. ¨ Linear programming consists of three parts: ¤ A set of decision variables ¤ An objective function: n maximize or minimize a given linear objective function ¤ A set of constraints: n satisfy a set of linear inequalities involving these variables Linear programming 3 IRIS H.-R. JIANG Example: Profit Maximization (1/4) ¨ A boutique chocolatier has two products: ¤ A (Pyramide): profit $1 per box ¤ B (Nuit): profit $6 per box ¨ Constraints: ¤ The daily demand for these exclusive chocolates is limited to at most 200 boxes of A and 300 boxes of B ¤ The current workforce can produce a total of at most 400 boxes of chocolate per day ¨ Decision variables: ¤ x1 = Boxes of A ¤ x2 = Boxes of B ¨ Objective Function: ¤ Maximize profit Linear programming 4
  • 5. IRIS H.-R. JIANG Example: Profit Maximization (2/4) ¨ A linear equation in x1 and x2 defines a line in the 2D plane ¨ A linear inequality designates a half-space ¨ The set of all feasible solutions of this linear program is the intersection of five half-spaces. It is a convex polygon Linear programming 5 IRIS H.-R. JIANG Example: Profit Maximization (3/4) ¨ Search for the optimal solution ¤ It is a general rule of linear programs that the optimum is achieved at a vertex of the feasible region. Linear programming 6 (100, 300) IRIS H.-R. JIANG Example: Profit Maximization (4/4) ¨ The Simplex method: hill climbing ¤ George Dantzig, 1947 ¤ Starts at a vertex, say (0, 0) ¤ Repeatedly looks for an adjacent vertex (connected by an edge of the feasible region) of better objective value ¤ Upon reaching a vertex that has no better neighbor, simplex declares it to be optimal and halts Linear programming 7 (100, 300) IRIS H.-R. JIANG Multipliers? ¨ Optimal: (x1, x2) = (100, 300); objective value = 1900 ¨ Can this answer be checked somehow? ¤ (1) + 6*(2): x1 + 6x2 <= 2000 ¤ 0*(1) + 5*(2) + (3): x1 + 6x2 <= 1900 ¤ The multipliers (0, 5, 1) constitute a certificate of optimality ¤ How would we systematically find the magic multipliers? Linear programming 8 max x1 + 6x2 x1 <= 200 (1) x2 <= 300 (2) x1 + x2 <= 400 (3) x1 , x2 >= 0.
  • 6. IRIS H.-R. JIANG Example: Profit Maximization (2/4) ¨ A linear equation in x1 and x2 defines a line in the 2D plane ¨ A linear inequality designates a half-space ¨ The set of all feasible solutions of this linear program is the intersection of five half-spaces. It is a convex polygon Linear programming 5 IRIS H.-R. JIANG Example: Profit Maximization (3/4) ¨ Search for the optimal solution ¤ It is a general rule of linear programs that the optimum is achieved at a vertex of the feasible region. Linear programming 6 (100, 300) IRIS H.-R. JIANG Example: Profit Maximization (4/4) ¨ The Simplex method: hill climbing ¤ George Dantzig, 1947 ¤ Starts at a vertex, say (0, 0) ¤ Repeatedly looks for an adjacent vertex (connected by an edge of the feasible region) of better objective value ¤ Upon reaching a vertex that has no better neighbor, simplex declares it to be optimal and halts Linear programming 7 (100, 300) IRIS H.-R. JIANG Multipliers? ¨ Optimal: (x1, x2) = (100, 300); objective value = 1900 ¨ Can this answer be checked somehow? ¤ (1) + 6*(2): x1 + 6x2 <= 2000 ¤ 0*(1) + 5*(2) + (3): x1 + 6x2 <= 1900 ¤ The multipliers (0, 5, 1) constitute a certificate of optimality ¤ How would we systematically find the magic multipliers? Linear programming 8 max x1 + 6x2 x1 <= 200 (1) x2 <= 300 (2) x1 + x2 <= 400 (3) x1 , x2 >= 0.
  • 7. IRIS H.-R. JIANG Example: Profit Maximization (2/4) ¨ A linear equation in x1 and x2 defines a line in the 2D plane ¨ A linear inequality designates a half-space ¨ The set of all feasible solutions of this linear program is the intersection of five half-spaces. It is a convex polygon Linear programming 5 IRIS H.-R. JIANG Example: Profit Maximization (3/4) ¨ Search for the optimal solution ¤ It is a general rule of linear programs that the optimum is achieved at a vertex of the feasible region. Linear programming 6 (100, 300) IRIS H.-R. JIANG Example: Profit Maximization (4/4) ¨ The Simplex method: hill climbing ¤ George Dantzig, 1947 ¤ Starts at a vertex, say (0, 0) ¤ Repeatedly looks for an adjacent vertex (connected by an edge of the feasible region) of better objective value ¤ Upon reaching a vertex that has no better neighbor, simplex declares it to be optimal and halts Linear programming 7 (100, 300) IRIS H.-R. JIANG Multipliers? ¨ Optimal: (x1, x2) = (100, 300); objective value = 1900 ¨ Can this answer be checked somehow? ¤ (1) + 6*(2): x1 + 6x2 <= 2000 ¤ 0*(1) + 5*(2) + (3): x1 + 6x2 <= 1900 ¤ The multipliers (0, 5, 1) constitute a certificate of optimality ¤ How would we systematically find the magic multipliers? Linear programming 8 max x1 + 6x2 x1 <= 200 (1) x2 <= 300 (2) x1 + x2 <= 400 (3) x1 , x2 >= 0.
  • 8. IRIS H.-R. JIANG Example: Profit Maximization (2/4) ¨ A linear equation in x1 and x2 defines a line in the 2D plane ¨ A linear inequality designates a half-space ¨ The set of all feasible solutions of this linear program is the intersection of five half-spaces. It is a convex polygon Linear programming 5 IRIS H.-R. JIANG Example: Profit Maximization (3/4) ¨ Search for the optimal solution ¤ It is a general rule of linear programs that the optimum is achieved at a vertex of the feasible region. Linear programming 6 (100, 300) IRIS H.-R. JIANG Example: Profit Maximization (4/4) ¨ The Simplex method: hill climbing ¤ George Dantzig, 1947 ¤ Starts at a vertex, say (0, 0) ¤ Repeatedly looks for an adjacent vertex (connected by an edge of the feasible region) of better objective value ¤ Upon reaching a vertex that has no better neighbor, simplex declares it to be optimal and halts Linear programming 7 (100, 300) IRIS H.-R. JIANG Multipliers? ¨ Optimal: (x1, x2) = (100, 300); objective value = 1900 ¨ Can this answer be checked somehow? ¤ (1) + 6*(2): x1 + 6x2 <= 2000 ¤ 0*(1) + 5*(2) + (3): x1 + 6x2 <= 1900 ¤ The multipliers (0, 5, 1) constitute a certificate of optimality ¤ How would we systematically find the magic multipliers? Linear programming 8 max x1 + 6x2 x1 <= 200 (1) x2 <= 300 (2) x1 + x2 <= 400 (3) x1 , x2 >= 0.
  • 9. IRIS H.-R. JIANG Duality (1/3) ¨ Multipliers yi’s must be nonnegative ¨ If the left-hand side to look like our objective function, the right- hand side is an upper bound on the optimum solution ¨ We want a tight bound! Linear programming 9 max x1 + 6x2 x1 <= 200 (1) x2 <= 300 (2) x1 + x2 <= 400 (3) x1 , x2 >= 0. IRIS H.-R. JIANG Duality (2/3) ¨ A new LP: finding multipliers that gives the best upper bound on our original LP ¤ Primal LP ¤ Any feasible value of dual LP is an upper bound on primal LP ¤ If we find a pair of primal and dual feasible values that are equal, they must be both optimal. Linear programming 10 ¤ Dual LP IRIS H.-R. JIANG Duality (3/3) ¨ Generic form: ¨ Dual theorem: If a linear program has a bounded optimum, then so does its dual, and the new optimum values coincide. ¤ Max-flow min-cut Linear programming 11 IRIS H.-R. JIANG The Simplex Algorithm Linear programming 12 Every constraint specifies an n-dimensional half-space Travel along “edges” until no improvement can be made
  • 10. IRIS H.-R. JIANG Duality (1/3) ¨ Multipliers yi’s must be nonnegative ¨ If the left-hand side to look like our objective function, the right- hand side is an upper bound on the optimum solution ¨ We want a tight bound! Linear programming 9 max x1 + 6x2 x1 <= 200 (1) x2 <= 300 (2) x1 + x2 <= 400 (3) x1 , x2 >= 0. IRIS H.-R. JIANG Duality (2/3) ¨ A new LP: finding multipliers that gives the best upper bound on our original LP ¤ Primal LP ¤ Any feasible value of dual LP is an upper bound on primal LP ¤ If we find a pair of primal and dual feasible values that are equal, they must be both optimal. Linear programming 10 ¤ Dual LP IRIS H.-R. JIANG Duality (3/3) ¨ Generic form: ¨ Dual theorem: If a linear program has a bounded optimum, then so does its dual, and the new optimum values coincide. ¤ Max-flow min-cut Linear programming 11 IRIS H.-R. JIANG The Simplex Algorithm Linear programming 12 Every constraint specifies an n-dimensional half-space Travel along “edges” until no improvement can be made
  • 11. IRIS H.-R. JIANG Duality (1/3) ¨ Multipliers yi’s must be nonnegative ¨ If the left-hand side to look like our objective function, the right- hand side is an upper bound on the optimum solution ¨ We want a tight bound! Linear programming 9 max x1 + 6x2 x1 <= 200 (1) x2 <= 300 (2) x1 + x2 <= 400 (3) x1 , x2 >= 0. IRIS H.-R. JIANG Duality (2/3) ¨ A new LP: finding multipliers that gives the best upper bound on our original LP ¤ Primal LP ¤ Any feasible value of dual LP is an upper bound on primal LP ¤ If we find a pair of primal and dual feasible values that are equal, they must be both optimal. Linear programming 10 ¤ Dual LP IRIS H.-R. JIANG Duality (3/3) ¨ Generic form: ¨ Dual theorem: If a linear program has a bounded optimum, then so does its dual, and the new optimum values coincide. ¤ Max-flow min-cut Linear programming 11 IRIS H.-R. JIANG The Simplex Algorithm Linear programming 12 Every constraint specifies an n-dimensional half-space Travel along “edges” until no improvement can be made
  • 12. IRIS H.-R. JIANG Duality (1/3) ¨ Multipliers yi’s must be nonnegative ¨ If the left-hand side to look like our objective function, the right- hand side is an upper bound on the optimum solution ¨ We want a tight bound! Linear programming 9 max x1 + 6x2 x1 <= 200 (1) x2 <= 300 (2) x1 + x2 <= 400 (3) x1 , x2 >= 0. IRIS H.-R. JIANG Duality (2/3) ¨ A new LP: finding multipliers that gives the best upper bound on our original LP ¤ Primal LP ¤ Any feasible value of dual LP is an upper bound on primal LP ¤ If we find a pair of primal and dual feasible values that are equal, they must be both optimal. Linear programming 10 ¤ Dual LP IRIS H.-R. JIANG Duality (3/3) ¨ Generic form: ¨ Dual theorem: If a linear program has a bounded optimum, then so does its dual, and the new optimum values coincide. ¤ Max-flow min-cut Linear programming 11 IRIS H.-R. JIANG The Simplex Algorithm Linear programming 12 Every constraint specifies an n-dimensional half-space Travel along “edges” until no improvement can be made
  • 13. IRIS H.-R. JIANG Vertex and Neighbors ¨ Pick a subset of the inequalities. If there is a unique point that satisfies them with equality, and this point happens to be feasible, then it is a vertex ¤ {2, 3, 7} ® A ¤ {4, 6} ® no vertex ¨ Two vertices are neighbors if they have n - 1 defining inequalities in common ¤ {2, 3, 7} ® A ¤ {1, 3, 7} ® C 13 Linear programming IRIS H.-R. JIANG The Simplex Algorithm ¨ On each iteration, simplex has two tasks: ¤ Task 1: Check whether the current vertex is optimal ¤ Task 2: Determine where to move next ¨ Both tasks are easy if the vertex happens to be at the origin ¤ Transform the coordinate system to move vertex u to the origin ¨ Task 1: ¤ The origin is optimal if and only if all ci <= 0 ¨ Task 2: ¤ We can move by increasing some xi for which ci > 0 ¤ Until we hit some other constraint 14 Linear programming IRIS H.-R. JIANG Example (1/3) Linear programming 15 IRIS H.-R. JIANG Example (2/3) Linear programming 16
  • 14. IRIS H.-R. JIANG Vertex and Neighbors ¨ Pick a subset of the inequalities. If there is a unique point that satisfies them with equality, and this point happens to be feasible, then it is a vertex ¤ {2, 3, 7} ® A ¤ {4, 6} ® no vertex ¨ Two vertices are neighbors if they have n - 1 defining inequalities in common ¤ {2, 3, 7} ® A ¤ {1, 3, 7} ® C 13 Linear programming IRIS H.-R. JIANG The Simplex Algorithm ¨ On each iteration, simplex has two tasks: ¤ Task 1: Check whether the current vertex is optimal ¤ Task 2: Determine where to move next ¨ Both tasks are easy if the vertex happens to be at the origin ¤ Transform the coordinate system to move vertex u to the origin ¨ Task 1: ¤ The origin is optimal if and only if all ci <= 0 ¨ Task 2: ¤ We can move by increasing some xi for which ci > 0 ¤ Until we hit some other constraint 14 Linear programming IRIS H.-R. JIANG Example (1/3) Linear programming 15 IRIS H.-R. JIANG Example (2/3) Linear programming 16
  • 15. IRIS H.-R. JIANG Vertex and Neighbors ¨ Pick a subset of the inequalities. If there is a unique point that satisfies them with equality, and this point happens to be feasible, then it is a vertex ¤ {2, 3, 7} ® A ¤ {4, 6} ® no vertex ¨ Two vertices are neighbors if they have n - 1 defining inequalities in common ¤ {2, 3, 7} ® A ¤ {1, 3, 7} ® C 13 Linear programming IRIS H.-R. JIANG The Simplex Algorithm ¨ On each iteration, simplex has two tasks: ¤ Task 1: Check whether the current vertex is optimal ¤ Task 2: Determine where to move next ¨ Both tasks are easy if the vertex happens to be at the origin ¤ Transform the coordinate system to move vertex u to the origin ¨ Task 1: ¤ The origin is optimal if and only if all ci <= 0 ¨ Task 2: ¤ We can move by increasing some xi for which ci > 0 ¤ Until we hit some other constraint 14 Linear programming IRIS H.-R. JIANG Example (1/3) Linear programming 15 IRIS H.-R. JIANG Example (2/3) Linear programming 16
  • 16. IRIS H.-R. JIANG Vertex and Neighbors ¨ Pick a subset of the inequalities. If there is a unique point that satisfies them with equality, and this point happens to be feasible, then it is a vertex ¤ {2, 3, 7} ® A ¤ {4, 6} ® no vertex ¨ Two vertices are neighbors if they have n - 1 defining inequalities in common ¤ {2, 3, 7} ® A ¤ {1, 3, 7} ® C 13 Linear programming IRIS H.-R. JIANG The Simplex Algorithm ¨ On each iteration, simplex has two tasks: ¤ Task 1: Check whether the current vertex is optimal ¤ Task 2: Determine where to move next ¨ Both tasks are easy if the vertex happens to be at the origin ¤ Transform the coordinate system to move vertex u to the origin ¨ Task 1: ¤ The origin is optimal if and only if all ci <= 0 ¨ Task 2: ¤ We can move by increasing some xi for which ci > 0 ¤ Until we hit some other constraint 14 Linear programming IRIS H.-R. JIANG Example (1/3) Linear programming 15 IRIS H.-R. JIANG Example (2/3) Linear programming 16
  • 17. IRIS H.-R. JIANG Example (3/3) 17 Linear programming IRIS H.-R. JIANG Standard Form ¨ Variants ¤ Either a maximization or a minimization problem ¤ Constraints can be equations and/or inequalities ¤ Variables are restricted to be nonnegative or unrestricted in sign ¨ Standard form ¤ Objective function: minimization ¤ Constraints: equations ¤ Variables: nonnegative Linear programming 18 Slack variables
  • 18. IRIS H.-R. JIANG Example (3/3) 17 Linear programming IRIS H.-R. JIANG Standard Form ¨ Variants ¤ Either a maximization or a minimization problem ¤ Constraints can be equations and/or inequalities ¤ Variables are restricted to be nonnegative or unrestricted in sign ¨ Standard form ¤ Objective function: minimization ¤ Constraints: equations ¤ Variables: nonnegative Linear programming 18 Slack variables