Chapter 2
Chapter 2
LINEAR PROGRAMMING
GRAPHICAL METHOD
by
Vikash Sonkar
Linear programming
Definition
A linear programming problem is an
optimization problem for which we do the
following.
★We attemp to maximize a linear function
of decision variables called objective
function .
A function f(x1,x2,.....xn) is a linear function .
There exist (cC1,cC2,........cn) such that
f(x1,x2,.......,xn)= x1c1+x2c2+......+xncn)
2) Solution
Profit Hours
$7 $5
Contribution Available
Carpentry 3 hrs 4 hrs 2400
Painting 2 hrs 1 hr 1000
Other Limitations:
• Make no more than 450 chairs
• Make at least 100 tables
Decision Variables:
Maximize $7 T + $5 C
Constraints:
Nonnegativity:
Cannot make a negative number of chairs or tables
T>0
C>0
Model Summary
Max 7T + 5C (profit)
Subject to the constraints:
3T + 4C = 2400 Infeasible
600
> 2400 hrs
3T
+4
Intercepts C
=
24
00
(T = 0, C = 600) Feasible
< 2400 hrs
(T = 800, C = 0) 0
0 800 T
C
1000
Painting
Constraint Line
T2
+
2T + 1C = 1000
1 C
600
1 =
0
00
Intercepts
(T = 0, C = 1000)
(T = 500, C = 0) 0
0 500 800 T
C
1000
Max Chair Line
C = 450
600
Min Table Line 450
T = 100
Feasible
0 Region
0 100 500 800 T
C
T7
Objective
+ 5
C
Function Line
= $
4
500
0 ,
7T + 5C = Profit
0 4
Optimal Point
400 (T = 320, C = 360)
T7
+
C 5
=
300
2$
T7
8 ,
+
0
5
0
C
200
=
,2$
01
0
100
C – T > 75
200
100
Example: x < 10
x < 12
The second constraint is redundant
because it is restrictive.
Special Situation in LP
2. Infeasibility – when no feasible solution
exists (there is no feasible region)
Example: x < 10
x > 15
Special Situation in LP
3. Alternate Optimal Solutions – when there
is more than one optimal solution
C
Max 2T + 2C 10
T2
Subject to:
+
All points on
C2
T + C < 10
=
Red segment
02
6
T < 5 are optimal
C< 6
T, C > 0
0
0 5 10 T
Special Situation in LP
4. Unbounded Solutions – when nothing
prevents the solution from becoming
infinitely large
on
C ti n
e c tio
Max 2T + 2C r
Di olu
Subject to: f s
2 o
2T + 3C > 6
T, C > 0 1
0 1 23 T
Using Excel’ s Solver for LP
Recall the Flair Furniture Example:
Max 7T + 5C (profit)
Subject to the constraints: