Introduction To Linear Programming
Introduction To Linear Programming
Introduction To Linear Programming
Programming
Linear Programming
Linear Production
functions
Linear Production
functions
Iso-quants
Linear Production
functions
Iso-quants
01 Expansion path
Linear Production
functions
Linear Production
functions
Linear Production
functions
Iso-quants
Linear Production
functions
Multiple Process Process mixing and Full
Employment
10
Linear Production
functions
Multiple Process Process mixing and Full
Employment
11
Linear Production
functions
Linear Production
functions
13
Linear Production
functions
14
Linear Production
functions
15
Linear Production
functions
16
Problem Formulation
17
18
Example 1: A Simple
Maximization Problem
Max
s.t.
< 6
5x1 + 7x2
x1
2x1 + 3x2
< 19
x1 + x2
Objective
Function
Regular
Constraints
Non-negativity
Constraints
< 8
x1 > 0 and x2
>0
19
Example 1: Graphical
Solution
x1 = 6
7
6
5
4
3
Shaded region
contains all
feasible points
for this constraint
(6, 0)
1
1
x1
9
10
20
Example 1: Graphical
Solution
(0, 6.33333)
7
6
2x1 + 3x2 =
19
5
4
3
2
1
Shaded
region contains
all feasible points
for this constraint
1
(9.5, 0)
5
x1
9
10
21
Example 1: Graphical
Solution
(0, 8)
8
7
x1 + x2 = 8
6
5
4
3
2
1
Shaded
region contains
all feasible points
for this constraint
1
(8, 0)
5
x1
9
10
22
Example 1: Graphical
Solution
Combined-Constraint Graph Showing Feasible Region
x2
x1 + x2 = 8
8
7
x1 = 6
6
5
4
3
2x1 + 3x2 =
19
Feasible
Region
2
1
1
x1
9
10
23
Example 1: Graphical
Solution
Objective Function
Line
x2
8
7
(0, 5)
Objective Function
5x1 + 7x2 = 35
5
4
3
2
(7, 0)
1
1
x1
9
10
24
Example 1: Graphical
Solution
5x1 + 7x2 = 35
5x1 + 7x2 = 39
5
4
5x1 + 7x2 = 42
3
2
1
1
x1
9
10
25
Example 1: Graphical
Solution
Optimal Solution
x2
Maximum
Objective Function Line
5x1 + 7x2 = 46
8
7
Optimal Solution
(x1 = 5, x2 = 3)
6
5
4
3
2
1
1
x1
9
10
26
Summary of the
Graphical Solution
Procedure for
Maximization Problems
Prepare a graph of the feasible solutions for each of
the constraints.
Determine the feasible region that satisfies all the
constraints simultaneously.
Draw an objective function line.
Move parallel objective function lines toward larger
objective function values without entirely leaving
the feasible region.
Any feasible solution on the objective function line
with the largest value is an optimal solution.
27
A linear program in which all the variables are nonnegative and all the constraints are equalities is said
to be in standard form.
Standard form is attained by adding slack variables to
"less than or equal to" constraints, and by subtracting
surplus variables from "greater than or equal to"
constraints.
Slack and surplus variables represent the difference
between the left and right sides of the constraints.
Slack and surplus variables have objective function
coefficients equal to 0.
28
Max
s.t.
s1 , s2 , and s3
are slack
5 x 1 + 7 x 2 + 0 s 1 + 0 s2 + 0 s 3
x1
+
2x 1 + 3 x 2 +
s1
s2
= 6
= 19
x 1 + x2 + s 3 = 8
x1, x2 , s1 , s2 , s3 > 0
29
Slack Variables
Optimal Solution
Third
x2
Constraint:
x1 + x2 = 8
s3 =
0
8
7
6
First
Constraint:
x1 = 6
s1 =
1
Second
Constraint:
2x1 + 3x2 =
s19
2 =
0
4
3
2
1
Optimal
Solution
(x1 = 5, x2 = 3)
1
x1
9
10
30
Example 1: Extreme
Points
x2
8
7
6
5 (0, 6.333)
5
4
4 (5, 3)
Feasible
Region
2
1
3 (6, 2)
2 (6, 0)
1 (0, 0)
1
x1
9
10
32
Computer Solutions
Interpretation of
Computer Output
34
Example 1: Spreadsheet
Solution
35
Example 1: Spreadsheet
Solution
36
Example 1: Spreadsheet
Solution
37
Example 2: A Simple
Minimization Problem
LP Formulation Min
5x1 + 2x2
s.t.
10
12
x1 + x2
>
4
x1, x2 >
38
Example 2: Graphical
Solution
Example 2: Graphical
Solution
Constraints Graphed
x2
6
Feasible Region
4x1 x2 > 12
x1 + x2 > 4
2
1
1
x1
6
40
Example 2: Graphical
Solution
41
Example 2: Graphical
Solution
4x1 x2 > 12
x1 + x2 > 4
2
1
1
x1
42
Example 2: Graphical
Solution
43
Example 2: Graphical
Solution
Optimal Solution
x2
6
4x1 x2 > 12
x1 + x2 > 4
4
3
2
1
1
Optimal
Solution:
x11 = 16/5, x22 =
4/5,
2x1 + 5x2 > 10
5x11 + 2x22 =
17.6
x
1
44
Summary of the
Graphical Solution
Procedure
for Minimization
Prepare a graph
of the feasible solutions for
Problems
Surplus Variables
s.t.
2x1 + 5x2 s1
> 10
4x1 x2
s2
> 12
s1 , s2 , and s3 x + x
1
2
sare
4
3 >
surplus
variables
x1, x2, s1, s2, s3 >
0
46
Example 2: Spreadsheet
Solution
47
Example 2: Spreadsheet
Solution
48
Example 2: Spreadsheet
Solution
49
Example 2: Spreadsheet
Solution
0.8
= 10.4 10 =
= 12.0 12 =
=
4.0 4 =
50
Special Cases
Infeasibility
No solution to the LP problem satisfies all the
constraints, including the non-negativity
conditions.
Graphically, this means a feasible region
does not exist.
Causes include:
A formulation error has been made.
Managements expectations are too high.
Too many restrictions have been placed on
the problem (i.e. the problem is over51
constrained).
Example: Infeasible
Problem
2x1 + 6x2
4x1 + 3x2
2x1 + x2
> 8
x1 , x2
> 0
52
Example: Infeasible
Problem
x2
10
2x1 + x2 > 8
8
6
4
2
2
x1
10
53
Special Cases
Unbounded
The solution to a maximization LP problem
is unbounded if the value of the solution
may be made indefinitely large without
violating any of the constraints.
For real problems, this is the result of
improper formulation. (Quite likely, a
constraint has been inadvertently omitted.)
54
Example: Unbounded
Solution
Max
s.t.
> 5
4x1 + 5x2
x1 + x2
3x1 + x2
> 8
x1 , x2
> 0
55
Example: Unbounded
Solution
3x1 + x2 > 8
Ma
x
4x
5x
2
2
x1 + x2 > 5
x1
10
56