CH 1 Linear Programming: Graphical Method & Excel Solver
CH 1 Linear Programming: Graphical Method & Excel Solver
1
History of Linear Programming
2
Introduction
3
Application of Linear Programming
4
Requirements of a Linear Programming
Problem
5
LP Properties and Assumptions
Table 1.1
PROPERTIES OF LINEAR PROGRAMS
1. One objective function
2. One or more constraints
3. Alternative courses of action
4. Objective function and constraints are linear
ASSUMPTIONS OF LP
1. Certainty
2. Proportionality
3. Additivity
4. Divisibility
6 5. Nonnegative variables
Basic Assumptions of LP
7
Formulating LP Problems
8
Formulating LP Problems
9
Flair Furniture Company
11
Flair Furniture Company
The objective is to
Maximize profit
The constraints are
1. The hours of carpentry time used cannot exceed 240
hours per week
2. The hours of painting and varnishing time used cannot
exceed 100 hours per week
The decision variables representing the actual decisions we
will make are
T = number of tables to be produced per week
C = number of chairs to be produced per week
12
Flair Furniture Company
Similarly
Painting and varnishing time used
≤ Painting and varnishing time available
2 T + 1C ≤ 100 (hours of painting and varnishing time)
16
Graphical Representation of a Constraint
C
This Axis Represents the Constraint T ≥ 0
100 –
–
80 –
Number of Chairs
–
60 –
–
This Axis Represents the
40 – Constraint C ≥ 0
–
20 –
–
|– | | | | | | | | | | |
Figure 1.1 0 20 40 60 80 100 T
17 Number of Tables
Graphical Representation of a Constraint
18
Graphical Representation of a Constraint
19
Graphical Representation of a Constraint
C
Graph of carpentry constraint equation
100 –
–
80 –
Number of Chairs
(T = 0, C = 80)
–
60 –
–
40 –
–
(T = 60, C = 0)
20 –
–
|– | | | | | | | | | | |
0 20 40 60 80 100 T
20 Figure 1.2 Number of Tables
Graphical Representation of a Constraint
–
60 –
–
(30, 40) (70, 40)
40 –
–
20 –
– (30, 20)
|– | | | | | | | | | | |
0 20 40 60 80 100
21 Figure 1.3 T
Number of Tables
Graphical Representation of a Constraint
The point (30, 40) lies on the plot and exactly satisfies
the constraint
4(30) + 3(40) = 240
The point (30, 20) lies below the plot and satisfies the
constraint
4(30) + 3(20) = 180
The point (70, 40) lies above the plot and does not
satisfy the constraint
4(70) + 3(40) = 400
22
Graphical Representation of a Constraint
100 – (T = 0, C = 100)
–
80 –
Number of Chairs
24
Graphical Representation of a Constraint
C
Feasible solution region for Flair Furniture
100 –
–
80 –
Number of Chairs
Painting/Varnishing Constraint
–
60 –
–
40 –
–
Carpentry Constraint
20 – Feasible
– Region
|– | | | | | | | | | | |
0 20 40 60 80 100 T
25 Figure 1.5
Number of Tables
Graphical Representation of a Constraint
26
constraint (2)(70) + (1)(40) = 180 hours used
Graphical Representation of a Constraint
27
Isoprofit Line Solution Method
Once the feasible region has been graphed, we need to find the
optimal solution from the many possible solutions
The speediest way to do this is to use the isoprofit line method
Starting with a small but possible profit value, we graph the
objective function
We move the objective function line in the direction of increasing
profit while maintaining the slope
The last point it touches in the feasible region is the optimal
solution
28
Isoprofit Line Solution Method
29
Isoprofit Line Solution Method
C
Isoprofit line at $2,100
100 –
–
80 –
Number of Chairs
–
60 –
– $2,100 = $70T + $50C
(0, 42)
40 –
–
(30, 0)
20 –
–
|– | | | | | | | | | | |
0 20 40 60 80 100 T
30 Figure 1.6 Number of Tables
Isoprofit Line Solution Method
C
Four isoprofit lines
100 –
–
$3,500 = $70T + $50C
80 –
Number of Chairs
–
60 –
–
3
40 –
–
20 –
–
1 |– | | | | | | | | | | |
0 20 40 60 80 100 T
34 4
Figure 1.9
Number of Tables
Corner Point Solution Method
35
Corner Point Solution Method
38
Using Solver to Solve the Flair Furniture
Problem
40
Using Solver to Solve the Flair Furniture
Problem
1. Enter the variable names and the coefficients for the objective
function and constraints
2. Specify cells where the values of the variables will be located
3. Write a formula to compute the value of the objective function
4. Write formulas to compute the left-hand sides of the constraints
5. Indicate constraint signs (≤, =, and ≥) for display purposes only
6. Input the right-hand side values for each constraint
7. If desired, write a formula for the slack of each constraint
41
Using Solver to Solve the Flair Furniture
Problem
Once the model has been entered, the following steps can be used to
solve the problem
If Solver does not appear in the indicated place, follow the installation
instructions in the text
2. Once Solver has been selected, a window will open for the input of the
Solver Parameters. Move the cursor to the Set Target Cell box and fill
in the cell that is used to calculate the value of the objective function.
42
Using Solver to Solve the Flair Furniture
Problem
3. Move the cursor to the By Changing Cells box and input the cells that
will contain the values for the variables
4. Move the cursor to the Subject to the Constraints box, and then select
Add
Program 1.2B
43
Using Solver to Solve the Flair Furniture
Problem
5. The Cell Reference box is for the range of cells that contain the left-
hand sides of the constraints
6. Click the ≤ to change the type of constraint if necessary (If there had
been some ≥ or = constraints in addition to the ≤ constraints, it would be
best to input all of one type [e.g., ≤] first, and then select Add to input
the other type of constraint)
7. Move the cursor to the Constraint box to input the right-hand sides of
the constraints. Click Add to finish this set of constraints and begin
inputting another set, or click OK if there are no other constraints to add.
44
Using Solver to Solve the Flair Furniture
Problem
10. The Solver Solutions window is displayed and indicates that a solution
was found. Select Keep Solver Solution, and the values in the
spreadsheet will be kept at the optimal solution. You may select what
sort of additional information (e.g., Sensitivity) is to be presented from
the reports Window.
45
Using Solver to Solve the Flair Furniture
Problem
46 Program 1.2C
Using Solver to Solve the Flair Furniture
Problem
47 Program 1.2D
Using Solver to Solve the Flair Furniture
Problem
Excel’s answer report for the Flair Furniture problem
48 Program 1.2E