Chapter 3 - LP Properties
Chapter 3 - LP Properties
1
Outline
• Linear programs
– General form of linear programs
– Standard form of linear programs
– Underlying assumptions of linear programs
• Properties of solutions of linear programs
– Computer solutions
– Graphical illustration of solutions
– Possibilities of feasible regions
– Algebraic meaning of linear programs
• Summary
2
Linear Programs: An Illustrative Example –
Mixing Gravels to Produce Aggregate
4
General Form of Linear Programs(LP)
Maximize(Minimize) 𝑍=𝑐1 𝑥1 + ⋯ + 𝑐𝑛 𝑥𝑛
Constraint Functions
Subject to:
𝑎11 𝑥1 + ⋯ + 𝑎1𝑛 𝑥𝑛 ≤ (=, ≥)𝑏1
…
𝑎𝑚1 𝑥1 + ⋯ + 𝑎𝑚𝑛 𝑥𝑛 ≤ (=, ≥)𝑏𝑚
Nonnegativity
𝑥1 , … , 𝑥𝑛 ≥ 0
5
Definition of Standard Form of LP
• An LP is in standard
form when:
– All variables are
non-negative Minimize 𝑍=0.20𝑥1 + 0.30𝑥2 + 0.45𝑥3 + 0.65𝑥4
– All constraints are
equalities
Subject to: 𝑥1 +𝑥2 + 𝑥3 + 𝑥4 = 1000
0.35𝑥1 + 0.10𝑥2 + 0.60𝑥3 + 0.50𝑥4 ≥ 480
0.35𝑥1 + 0.10𝑥2 + 0.60𝑥3 + 0.50𝑥4 ≤ 550
0.30𝑥1 + 0.50𝑥2 + 0.30𝑥3 + 0.35𝑥4 ≥ 300
0.30𝑥1 + 0.50𝑥2 + 0.30𝑥3 + 0.35𝑥4 ≤ 350
0.35𝑥1 + 0.40𝑥2 + 0.10𝑥3 + 0.15𝑥4 ≥ 150
0.35𝑥1 + 0.40𝑥2 + 0.10𝑥3 + 0.15𝑥4 ≤ 200
𝑥1 , 𝑥2 , 𝑥3 , 𝑥4 ≥ 0
6
Conversion from General to Standard LPs
7
Conversion from General to Standard LPs
If a variable, say 𝑥5 , is
𝑥5 , free
unrestricted variables
(unrestricted in sign), then two
non-negative variables are 𝑥5 = 𝑥6 − 𝑥7
introduced to avoid unrestricted 𝑥6 , 𝑥7 ≥ 0
variables
𝑥8 ≤ 0
If a variable, say 𝑥8 , is a
negative, then a non-negative
variable is instead introduced 𝑥9 = −𝑥8
𝑥9 ≥ 0
8
Standard Form of Linear Programs
Maximize(Minimize) 𝑍=𝑐1 𝑥1 + ⋯ + 𝑐𝑛 𝑥𝑛
Constraint Functions
Subject to:
𝑎11 𝑥1 + ⋯ + 𝑎1𝑛 𝑥𝑛 = 𝑏1
…
𝑎𝑚1 𝑥1 + ⋯ + 𝑎𝑚𝑛 𝑥𝑛 = 𝑏𝑚
Nonnegativity
𝑥1 , … , 𝑥𝑛 ≥ 0
9
Example of Slack and Surplus Variables
Objective
Decision Variables
Function Surplus Variables
11
Question: Why setting 0 coefficient for slack/surplus
variables in the objective function?
Clearly, 𝑥1∗ = 10; 𝑥2∗ = 0; 𝑍 ∗ = 20 Clearly, 𝑥1∗ = 10; 𝑥2∗ = 0; 𝑠1∗ = 0; 𝑠2∗ = 5; 𝑍 ∗ = 20
12
Properties of Linear Programs:
Properties of Solutions of Linear Programs
13
Properties of Solutions of Linear Programs
Computer Solution
14
Properties of Solutions of Linear Programs
Illustration of Installing Microsoft Excel Add-ins
15
Properties of Solutions of Linear Programs
An Illustrative Example – Mixing Gravels to Produce an Aggregate
16
Properties of Solutions of Linear Programs
Problem Statement
17
Properties of Solutions of Linear Programs
System Analysis
• Decision Variables: amount of aggregate ordered from
two sources
– 𝑥𝑗 is the amount of aggregate from the j-th source
• Objective Function: the least money spend on the
aggregate
– Minimize 0.20𝑥1 + 0.45𝑥2
• Constraint Functions
– 1000 pounds aggregates: 𝑥1 + 𝑥2 = 1000
– Composition requirement of coarse material
(example)
0.35𝑥1 + 0.60𝑥2 ≥ 480
0.35𝑥1 + 0.60𝑥2 ≤ 550 18
Properties of Solutions of Linear Programs
Mathematical Representation of the Linear Program
Decision Variables
Objective Function
X1 X2 Product B
0.00 0.00 0
Minimize 0.20 0.45
Subject to 1.00 1.00 0 1000
0.35 0.60 0 480
0.35 0.60 0 550
0.30 0.30 0 300
0.30 0.30 0 350
0.35 0.10 0 150
0.35 0.10 0 200
Optimal Solution
X1 X2 Product B
400.00 600.00 350
Minimize 0.20 0.45
Subject to 1.00 1.00 1000 1000
0.35 0.60 500 480
0.35 0.60 500 550
0.30 0.30 300 300
0.30 0.30 300 350
0.35 0.10 200 150
0.35 0.10 200 200
20
Graphical Solution Procedure
21
Graphical Solution Procedure for Linear
Programming Problems
s.t. x1 < 3
x1 + 4x2 < 12
3x1 + 2x2 < 12
x1, x2 > 0
23
Example 1: Constraint (1)
x2
7
5 x1 ≤ 3
4
3 x1 = 3 (critical boundary)
1
(3, 0)
0 x1
0 1 2 3 4 5 6 7 8
24
Example 1: Constraint (2)
x2
7
6
x1 + 4x2 < 12
5
(0, 3)
4
3 (4, 2)
x1 + 4x2 = 12
2 Critical boundary
0
x1
0 1 2 3 4 5 6 7 8
25
Example 1: Constraint (3)
x2
7 (0, 6)
6
4
3x1 + 2x2 ≤ 12
3
1 (4, 0)
0 x1
0 1 2 3 4 5 6 7 8
26
Example 1: Combined-Constraint Graph
x2
7
6 x1 ≤ 3
4 3x1 + 2x2 ≤ 12
3
x1 + 4x2 ≤ 12
2
0 x1
0 1 2 3 4 5 6 7 8
27
Example 1: Objective Function Line
x2
7
6 Objective function
2x1 + 3x2 = 6
5
4
(0, 2)
3
Move Direction (max)
2
(3, 0)
1
0 x1
0 1 2 3 4 5 6 7 8
28
Example 1: Objective Function Line
x2
7 Objective function
6 2x1 + 3x2 = 12
4
Optimal solution
(𝑥1∗ =2.4, 𝑥2∗ = 2.4)
3
0 x1
0 1 2 3 4 5 6 7 8
29
Example 2: A Minimization LP Formulation
Min Z = 4x1 + x2
x1 + x2 > 4 (3)
x1, x2 > 0
30
Example 2: Constraints
x2
Feasible region
6
4 x1 + x2 > 4 (3)
0 x1
0 1 2 3 4 5 6 7
31
Example 2: Objective Function
x2
Min Z = 4x1 + x2
6
5 4x1 - x2 > 8
4 x1 + x2 > 4
3 2x1 + 5x2 > 10
2
0 x1
0 1 2 3 4 5 6 7
32
Example 2: Objective Function
x2
Min Z = 4x1 + x2
6
5 4x1 - x2 > 8
4 x1 + x2 > 4
3 2x1 + 5x2 > 10
2
1
Optimal: 𝑥1∗ = 12Τ5
𝑥2∗ = 8Τ5
0 x1
0 1 2 3 4 5 6 7
𝑍 ∗ = 56Τ5
33
Feasible Region
• Infeasibility
– A linear program which is over-constrained so that no
point satisfies all the constraints is said to be infeasible.
• Unboundedness
35
Example: Alternate Optima
𝑥2
𝑥1 ≤ 4
Max 𝑍 = 𝑥1 +2𝑥2
s.t.
𝑥1 + 2𝑥2 ≤ 10 𝑥1 + 2𝑥2 ≤ 10
𝑥1 ≤4 𝑍 = 𝑥1 + 2𝑥2
0
0 𝑥1
36
Example: Infeasible Problem
x2
12
Max 2x1 + 6x2
2x1 + x2 ≥ 8
s.t. 4x1 + 3x2 < 12 8
0 x1
0 1 2 3 4 5
x2
10
Max Z = 3x1 + 4x2 3𝑥1 + 𝑥2 ≥ 8
8
s.t. x1 + x2 > 5 Max 3𝑥1 + 4𝑥2
3x1 + x2 > 8
5 𝑥1 + 𝑥2 ≥ 5
x1, x2 > 0
0 x1
0 8/3 5 6
39
Basic Concepts of Solution
40
Basic Concepts of Solution
41
Example of Basic Concepts of Solution
n = 5, m = 3
Basic variable = 3
Non-basic variable =2
42
Example of Basic Variables, Basis and Basic Solution
set 𝑥2 = 0 & 𝑠1 = 0 43
Example of Basic Variables, Basis and Basic Solution
Feasible region
x2 Not basic, infeasible
6
(1,5,17,-9,2) 4x1 - x2 > 8
5 (5,4,20,8,5) Not basic, but feasible
(0,4,10,-12,0) (1,5) (5,4)
Basic but infeasible 4 x1 + x2 > 4
3
(0,2,0,-10,-2)
2x1 + 5x2 > 10
Basic but infeasible 2 (12/5,8/5,14/5,0,0) Basic, feasible, and optimal
1
0 x1
0 1 2 3 4 5 6 7
(2,0,-6,0,-2) (5,0,0,12,1)
Basic, infeasible Basic and feasible
44
Basic Concepts of Solution
Feasible
Solutions Basic Basic
Feasible
(Feasible Solutions
Solutions
Region)
45
Algebraic Meaning of Linear Program
46
Extreme Points and the Optimal Solution
(for reference only)
Convex Non-convex
X(1)
X(2) X(1)
X(2)
47
Extreme Points and the Optimal Solution
48
Example 1: Five Extreme Points
4
5
3
4
2
3
1
1 2
0 x1
0 1 2 3 4 5 6 7 8
49
Properties of Linear Programs:
Summary
50
Summary
51
Summary
• Properties of Solution
– Linear programs generally can be solved by computer software;
LP with two decision variables can be solved by graphical
methods
– The feasible region of a LP problem is convex, which could be
unbounded. It has a limited number of extreme points and each
feasible basic solution corresponding to an extreme point
– If the LP has an optimal solution, it must be found at an extreme
point of the feasible region; i.e. only need to consider the extreme
points for solution
– Though the number of extreme point is limited, it is inefficient or
impossible to enumerate all the feasible basic solutions
– The solution can be infeasible, unique, alternate/multiple, or
unbounded
52