SlideShare a Scribd company logo
1 of 18
Download to read offline
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

More Related Content

Similar to algorithm_9linear_programming.pdf

Alg II 3-4 Linear Programming
Alg II 3-4 Linear ProgrammingAlg II 3-4 Linear Programming
Alg II 3-4 Linear Programmingjtentinger
 
Linear programming - Model formulation, Graphical Method
Linear programming  - Model formulation, Graphical MethodLinear programming  - Model formulation, Graphical Method
Linear programming - Model formulation, Graphical MethodJoseph Konnully
 
오토인코더의 모든 것
오토인코더의 모든 것오토인코더의 모든 것
오토인코더의 모든 것NAVER Engineering
 
SRWColAlg6_0P_07.ppt
SRWColAlg6_0P_07.pptSRWColAlg6_0P_07.ppt
SRWColAlg6_0P_07.pptalexdomingo18
 
Dynamic Programming Matrix Chain Multiplication
Dynamic Programming Matrix Chain MultiplicationDynamic Programming Matrix Chain Multiplication
Dynamic Programming Matrix Chain MultiplicationKrishnakoumarC
 
Introductory maths analysis chapter 17 official
Introductory maths analysis   chapter 17 officialIntroductory maths analysis   chapter 17 official
Introductory maths analysis chapter 17 officialEvert Sandye Taasiringan
 
Chapter17 multivariablecalculus-151007044001-lva1-app6891
Chapter17 multivariablecalculus-151007044001-lva1-app6891Chapter17 multivariablecalculus-151007044001-lva1-app6891
Chapter17 multivariablecalculus-151007044001-lva1-app6891Cleophas Rwemera
 
02.03 Artificial Intelligence: Search by Optimization
02.03 Artificial Intelligence: Search by Optimization02.03 Artificial Intelligence: Search by Optimization
02.03 Artificial Intelligence: Search by OptimizationAndres Mendez-Vazquez
 
Integer Programming PPt.ernxzamnbmbmspdf
Integer Programming PPt.ernxzamnbmbmspdfInteger Programming PPt.ernxzamnbmbmspdf
Integer Programming PPt.ernxzamnbmbmspdfRaja Manyam
 
Determination of Optimal Product Mix for Profit Maximization using Linear Pro...
Determination of Optimal Product Mix for Profit Maximization using Linear Pro...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...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 ManualNumerical Methods for Engineers 6th Edition Chapra Solutions Manual
Numerical Methods for Engineers 6th Edition Chapra Solutions Manualwebavaq
 
Feature Engineering
Feature EngineeringFeature Engineering
Feature EngineeringSri Ambati
 
4. linear programming using excel solver
4. linear programming using excel solver4. linear programming using excel solver
4. linear programming using excel solverHakeem-Ur- Rehman
 
181_Sample-Chapter.pdf
181_Sample-Chapter.pdf181_Sample-Chapter.pdf
181_Sample-Chapter.pdfThanoonQasem
 
Lecture complex fractions
Lecture complex fractionsLecture complex fractions
Lecture complex fractionsHazel Joy Chong
 

Similar to algorithm_9linear_programming.pdf (20)

Alg II 3-4 Linear Programming
Alg II 3-4 Linear ProgrammingAlg II 3-4 Linear Programming
Alg II 3-4 Linear Programming
 
Linear programming - Model formulation, Graphical Method
Linear programming  - Model formulation, Graphical MethodLinear programming  - Model formulation, Graphical Method
Linear programming - Model formulation, Graphical Method
 
linearprogramming.pdf
linearprogramming.pdflinearprogramming.pdf
linearprogramming.pdf
 
오토인코더의 모든 것
오토인코더의 모든 것오토인코더의 모든 것
오토인코더의 모든 것
 
Ms(lpgraphicalsoln.)[1]
Ms(lpgraphicalsoln.)[1]Ms(lpgraphicalsoln.)[1]
Ms(lpgraphicalsoln.)[1]
 
SRWColAlg6_0P_07.ppt
SRWColAlg6_0P_07.pptSRWColAlg6_0P_07.ppt
SRWColAlg6_0P_07.ppt
 
Dynamic Programming Matrix Chain Multiplication
Dynamic Programming Matrix Chain MultiplicationDynamic Programming Matrix Chain Multiplication
Dynamic Programming Matrix Chain Multiplication
 
Chapter 17 - Multivariable Calculus
Chapter 17 - Multivariable CalculusChapter 17 - Multivariable Calculus
Chapter 17 - Multivariable Calculus
 
Introductory maths analysis chapter 17 official
Introductory maths analysis   chapter 17 officialIntroductory maths analysis   chapter 17 official
Introductory maths analysis chapter 17 official
 
Chapter17 multivariablecalculus-151007044001-lva1-app6891
Chapter17 multivariablecalculus-151007044001-lva1-app6891Chapter17 multivariablecalculus-151007044001-lva1-app6891
Chapter17 multivariablecalculus-151007044001-lva1-app6891
 
02.03 Artificial Intelligence: Search by Optimization
02.03 Artificial Intelligence: Search by Optimization02.03 Artificial Intelligence: Search by Optimization
02.03 Artificial Intelligence: Search by Optimization
 
Integer Programming PPt.ernxzamnbmbmspdf
Integer Programming PPt.ernxzamnbmbmspdfInteger Programming PPt.ernxzamnbmbmspdf
Integer Programming PPt.ernxzamnbmbmspdf
 
Determination of Optimal Product Mix for Profit Maximization using Linear Pro...
Determination of Optimal Product Mix for Profit Maximization using Linear Pro...Determination of Optimal Product Mix for Profit Maximization using Linear Pro...
Determination of Optimal Product Mix for Profit Maximization using Linear Pro...
 
Determination of Optimal Product Mix for Profit Maximization using Linear Pro...
Determination of Optimal Product Mix for Profit Maximization using Linear Pro...Determination of Optimal Product Mix for Profit Maximization using Linear Pro...
Determination of Optimal Product Mix for Profit Maximization using Linear Pro...
 
Numerical Methods for Engineers 6th Edition Chapra Solutions Manual
Numerical Methods for Engineers 6th Edition Chapra Solutions ManualNumerical Methods for Engineers 6th Edition Chapra Solutions Manual
Numerical Methods for Engineers 6th Edition Chapra Solutions Manual
 
Feature Engineering
Feature EngineeringFeature Engineering
Feature Engineering
 
4. linear programming using excel solver
4. linear programming using excel solver4. linear programming using excel solver
4. linear programming using excel solver
 
181_Sample-Chapter.pdf
181_Sample-Chapter.pdf181_Sample-Chapter.pdf
181_Sample-Chapter.pdf
 
Lecture complex fractions
Lecture complex fractionsLecture complex fractions
Lecture complex fractions
 
Eye deep
Eye deepEye deep
Eye deep
 

More from HsuChi Chen

algorithm_6dynamic_programming.pdf
algorithm_6dynamic_programming.pdfalgorithm_6dynamic_programming.pdf
algorithm_6dynamic_programming.pdfHsuChi Chen
 
algorithm_1introdunction.pdf
algorithm_1introdunction.pdfalgorithm_1introdunction.pdf
algorithm_1introdunction.pdfHsuChi Chen
 
algorithm_4greedy_algorithms.pdf
algorithm_4greedy_algorithms.pdfalgorithm_4greedy_algorithms.pdf
algorithm_4greedy_algorithms.pdfHsuChi Chen
 
algorithm_3graphs.pdf
algorithm_3graphs.pdfalgorithm_3graphs.pdf
algorithm_3graphs.pdfHsuChi Chen
 
algorithm_7network_flow.pdf
algorithm_7network_flow.pdfalgorithm_7network_flow.pdf
algorithm_7network_flow.pdfHsuChi Chen
 
algorithm_2algorithm_analysis.pdf
algorithm_2algorithm_analysis.pdfalgorithm_2algorithm_analysis.pdf
algorithm_2algorithm_analysis.pdfHsuChi Chen
 
algorithm_8beyond_polynomial_running_times.pdf
algorithm_8beyond_polynomial_running_times.pdfalgorithm_8beyond_polynomial_running_times.pdf
algorithm_8beyond_polynomial_running_times.pdfHsuChi Chen
 
algorithm_5divide_and_conquer.pdf
algorithm_5divide_and_conquer.pdfalgorithm_5divide_and_conquer.pdf
algorithm_5divide_and_conquer.pdfHsuChi Chen
 
algorithm_0introdunction.pdf
algorithm_0introdunction.pdfalgorithm_0introdunction.pdf
algorithm_0introdunction.pdfHsuChi Chen
 
期末專題報告書
期末專題報告書期末專題報告書
期末專題報告書HsuChi Chen
 
單晶片期末專題-報告二
單晶片期末專題-報告二單晶片期末專題-報告二
單晶片期末專題-報告二HsuChi Chen
 
單晶片期末專題-報告一
單晶片期末專題-報告一單晶片期末專題-報告一
單晶片期末專題-報告一HsuChi Chen
 
模組化課程生醫微製程期末報告
模組化課程生醫微製程期末報告模組化課程生醫微製程期末報告
模組化課程生醫微製程期末報告HsuChi Chen
 
單晶片期末專題-初步想法
單晶片期末專題-初步想法單晶片期末專題-初步想法
單晶片期末專題-初步想法HsuChi Chen
 

More from HsuChi Chen (14)

algorithm_6dynamic_programming.pdf
algorithm_6dynamic_programming.pdfalgorithm_6dynamic_programming.pdf
algorithm_6dynamic_programming.pdf
 
algorithm_1introdunction.pdf
algorithm_1introdunction.pdfalgorithm_1introdunction.pdf
algorithm_1introdunction.pdf
 
algorithm_4greedy_algorithms.pdf
algorithm_4greedy_algorithms.pdfalgorithm_4greedy_algorithms.pdf
algorithm_4greedy_algorithms.pdf
 
algorithm_3graphs.pdf
algorithm_3graphs.pdfalgorithm_3graphs.pdf
algorithm_3graphs.pdf
 
algorithm_7network_flow.pdf
algorithm_7network_flow.pdfalgorithm_7network_flow.pdf
algorithm_7network_flow.pdf
 
algorithm_2algorithm_analysis.pdf
algorithm_2algorithm_analysis.pdfalgorithm_2algorithm_analysis.pdf
algorithm_2algorithm_analysis.pdf
 
algorithm_8beyond_polynomial_running_times.pdf
algorithm_8beyond_polynomial_running_times.pdfalgorithm_8beyond_polynomial_running_times.pdf
algorithm_8beyond_polynomial_running_times.pdf
 
algorithm_5divide_and_conquer.pdf
algorithm_5divide_and_conquer.pdfalgorithm_5divide_and_conquer.pdf
algorithm_5divide_and_conquer.pdf
 
algorithm_0introdunction.pdf
algorithm_0introdunction.pdfalgorithm_0introdunction.pdf
algorithm_0introdunction.pdf
 
期末專題報告書
期末專題報告書期末專題報告書
期末專題報告書
 
單晶片期末專題-報告二
單晶片期末專題-報告二單晶片期末專題-報告二
單晶片期末專題-報告二
 
單晶片期末專題-報告一
單晶片期末專題-報告一單晶片期末專題-報告一
單晶片期末專題-報告一
 
模組化課程生醫微製程期末報告
模組化課程生醫微製程期末報告模組化課程生醫微製程期末報告
模組化課程生醫微製程期末報告
 
單晶片期末專題-初步想法
單晶片期末專題-初步想法單晶片期末專題-初步想法
單晶片期末專題-初步想法
 

Recently uploaded

Der Spagat zwischen BIAS und FAIRNESS (2024)
Der Spagat zwischen BIAS und FAIRNESS (2024)Der Spagat zwischen BIAS und FAIRNESS (2024)
Der Spagat zwischen BIAS und FAIRNESS (2024)OPEN KNOWLEDGE GmbH
 
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online ☂️
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online  ☂️CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online  ☂️
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online ☂️anilsa9823
 
Advancing Engineering with AI through the Next Generation of Strategic Projec...
Advancing Engineering with AI through the Next Generation of Strategic Projec...Advancing Engineering with AI through the Next Generation of Strategic Projec...
Advancing Engineering with AI through the Next Generation of Strategic Projec...OnePlan Solutions
 
SyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AI
SyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AISyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AI
SyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AIABDERRAOUF MEHENNI
 
Optimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTVOptimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTVshikhaohhpro
 
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...MyIntelliSource, Inc.
 
Cloud Management Software Platforms: OpenStack
Cloud Management Software Platforms: OpenStackCloud Management Software Platforms: OpenStack
Cloud Management Software Platforms: OpenStackVICTOR MAESTRE RAMIREZ
 
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdfLearn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdfkalichargn70th171
 
Building Real-Time Data Pipelines: Stream & Batch Processing workshop Slide
Building Real-Time Data Pipelines: Stream & Batch Processing workshop SlideBuilding Real-Time Data Pipelines: Stream & Batch Processing workshop Slide
Building Real-Time Data Pipelines: Stream & Batch Processing workshop SlideChristina Lin
 
How To Troubleshoot Collaboration Apps for the Modern Connected Worker
How To Troubleshoot Collaboration Apps for the Modern Connected WorkerHow To Troubleshoot Collaboration Apps for the Modern Connected Worker
How To Troubleshoot Collaboration Apps for the Modern Connected WorkerThousandEyes
 
Active Directory Penetration Testing, cionsystems.com.pdf
Active Directory Penetration Testing, cionsystems.com.pdfActive Directory Penetration Testing, cionsystems.com.pdf
Active Directory Penetration Testing, cionsystems.com.pdfCionsystems
 
What is Binary Language? Computer Number Systems
What is Binary Language?  Computer Number SystemsWhat is Binary Language?  Computer Number Systems
What is Binary Language? Computer Number SystemsJheuzeDellosa
 
A Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docxA Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docxComplianceQuest1
 
Unlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language ModelsUnlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language Modelsaagamshah0812
 
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time ApplicationsUnveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time ApplicationsAlberto González Trastoy
 
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...OnePlan Solutions
 
Adobe Marketo Engage Deep Dives: Using Webhooks to Transfer Data
Adobe Marketo Engage Deep Dives: Using Webhooks to Transfer DataAdobe Marketo Engage Deep Dives: Using Webhooks to Transfer Data
Adobe Marketo Engage Deep Dives: Using Webhooks to Transfer DataBradBedford3
 
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...ICS
 

Recently uploaded (20)

Der Spagat zwischen BIAS und FAIRNESS (2024)
Der Spagat zwischen BIAS und FAIRNESS (2024)Der Spagat zwischen BIAS und FAIRNESS (2024)
Der Spagat zwischen BIAS und FAIRNESS (2024)
 
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online ☂️
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online  ☂️CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online  ☂️
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online ☂️
 
Advancing Engineering with AI through the Next Generation of Strategic Projec...
Advancing Engineering with AI through the Next Generation of Strategic Projec...Advancing Engineering with AI through the Next Generation of Strategic Projec...
Advancing Engineering with AI through the Next Generation of Strategic Projec...
 
SyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AI
SyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AISyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AI
SyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AI
 
Optimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTVOptimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTV
 
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
 
Cloud Management Software Platforms: OpenStack
Cloud Management Software Platforms: OpenStackCloud Management Software Platforms: OpenStack
Cloud Management Software Platforms: OpenStack
 
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdfLearn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
 
Building Real-Time Data Pipelines: Stream & Batch Processing workshop Slide
Building Real-Time Data Pipelines: Stream & Batch Processing workshop SlideBuilding Real-Time Data Pipelines: Stream & Batch Processing workshop Slide
Building Real-Time Data Pipelines: Stream & Batch Processing workshop Slide
 
How To Troubleshoot Collaboration Apps for the Modern Connected Worker
How To Troubleshoot Collaboration Apps for the Modern Connected WorkerHow To Troubleshoot Collaboration Apps for the Modern Connected Worker
How To Troubleshoot Collaboration Apps for the Modern Connected Worker
 
Active Directory Penetration Testing, cionsystems.com.pdf
Active Directory Penetration Testing, cionsystems.com.pdfActive Directory Penetration Testing, cionsystems.com.pdf
Active Directory Penetration Testing, cionsystems.com.pdf
 
What is Binary Language? Computer Number Systems
What is Binary Language?  Computer Number SystemsWhat is Binary Language?  Computer Number Systems
What is Binary Language? Computer Number Systems
 
Exploring iOS App Development: Simplifying the Process
Exploring iOS App Development: Simplifying the ProcessExploring iOS App Development: Simplifying the Process
Exploring iOS App Development: Simplifying the Process
 
A Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docxA Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docx
 
Unlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language ModelsUnlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language Models
 
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time ApplicationsUnveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
 
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
 
Call Girls In Mukherjee Nagar 📱 9999965857 🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SE...
Call Girls In Mukherjee Nagar 📱  9999965857  🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SE...Call Girls In Mukherjee Nagar 📱  9999965857  🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SE...
Call Girls In Mukherjee Nagar 📱 9999965857 🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SE...
 
Adobe Marketo Engage Deep Dives: Using Webhooks to Transfer Data
Adobe Marketo Engage Deep Dives: Using Webhooks to Transfer DataAdobe Marketo Engage Deep Dives: Using Webhooks to Transfer Data
Adobe Marketo Engage Deep Dives: Using Webhooks to Transfer Data
 
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
 

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