Chapter 2: Linear Programming: Source: Tayloriii (2007)
Chapter 2: Linear Programming: Source: Tayloriii (2007)
Chapter Topics
Model Formulation
Model Components
Decision variables - mathematical symbols representing levels of activity of a firm. Objective function - a linear mathematical relationship describing an objective of the firm, in terms of decision variables - this function is to be maximized or minimized. Constraints requirements or restrictions placed on the firm by the operating environment, stated in linear relationships of the decision variables.
Parameters - numerical coefficients and constants used in the objective function and constraints.
Chapter 2 - Linear Programming: Model Formulation & Graphical Solution 4
How many bowls and mugs should be produced to maximize profits given labor and materials constraints?
Product resource requirements and unit profit:
Decision Variables:
Objective Function: Resource Constraints: Non-Negativity Constraints:
x1 = number of bowls to produce per day x2 = number of mugs to produce per day
Maximize Z = $40x1 + $50x2 Where Z = profit per day 1x1 + 2x2 40 hours of labor 4x1 + 3x2 120 pounds of clay x1 0; x2 0
Chapter 2 - Linear Programming: Model Formulation & Graphical Solution 8
Feasible Solutions
A feasible solution does not violate any of the constraints: Example x1 = 5 bowls x2 = 10 mugs Z = $40x1 + $50x2 = $700 Labor constraint check: 1(5) + 2(10) = 25 < 40 hours, within constraint Clay constraint check: 4(5) + 3(10) = 70 < 120 pounds, within constraint
10
Infeasible Solutions
An infeasible solution violates at least one of the constraints: Example x1 = 10 bowls x2 = 20 mugs Z = $1400 Labor constraint check: 1(10) + 2(20) = 50 > 40 hours, violates constraint
11
12
Maximize Z = $40x1 + $50x2 subject to: 1x1 + 2x2 40 4x1 + 3x2 120 x1, x2 0
Maximize Z = $40x1 + $50x2 subject to: 1x1 + 2x2 40 4x1 + 3x2 120 x1, x2 0
Maximize Z = $40x1 + $50x2 subject to: 1x1 + 2x2 40 4x1 + 3x2 120 x1, x2 0
Maximize Z = $40x1 + $50x2 subject to: 1x1 + 2x2 40 4x1 + 3x2 120 x1, x2 0
Maximize Z = $40x1 + $50x2 subject to: 1x1 + 2x2 40 4x1 + 3x2 120 x1, x2 0
Maximize Z = $40x1 + $50x2 subject to: 1x1 + 2x2 40 4x1 + 3x2 120 x1, x2 0
Maximize Z = $40x1 + $50x2 subject to: 1x1 + 2x2 40 4x1 + 3x2 120 x1, x2 0
Alternative Objective Function Solution Lines Graphical Solution of Maximization Model (8 of 12)
Maximize Z = $40x1 + $50x2 subject to: 1x1 + 2x2 40 4x1 + 3x2 120 x1, x2 0
Maximize Z = $40x1 + $50x2 subject to: 1x1 + 2x2 40 4x1 + 3x2 120 x1, x2 0
Maximize Z = $40x1 + $50x2 subject to: 1x1 + 2x2 40 4x1 + 3x2 120 x1, x2 0
Extreme (Corner) Point Solutions Graphical Solution of Maximization Model (11 of 12)
Maximize Z = $40x1 + $50x2 subject to: 1x1 + 2x2 40 4x1 + 3x2 120 x1, x2 0
Optimal Solution for New Objective Function Graphical Solution of Maximization Model (12 of 12)
Maximize Z = $70x1 + $20x2 subject to: 1x1 + 2x2 40 4x1 + 3x2 120 x1, x2 0
Slack Variables
Standard form requires that all constraints be in the form of equations (equalities). A slack variable is added to a constraint (weak inequality) to convert it to an equation (=). A slack variable typically represents an unused resource. A slack variable contributes nothing to the objective function value.
25
Phosphate (lb/bag) 4 3
27
28
Minimize Z = $6x1 + $3x2 subject to: 2x1 + 4x2 16 4x1 + 3x2 24 x1, x2 0
Minimize Z = $6x1 + $3x2 subject to: 2x1 + 4x2 16 4x1 + 3x2 24 x1, x2 0
Minimize Z = $6x1 + $3x2 subject to: 2x1 + 4x2 16 4x1 + 3x2 24 x1, x2 0
Surplus Variables A Minimization Example (6 of 7) A surplus variable is subtracted from a constraint to convert it to an equation (=). A surplus variable represents an excess above a constraint requirement level.
Surplus variables contribute nothing to the calculated value of the objective function.
Subtracting slack variables in the farmer problem constraints: 2x1 + 4x2 - s1 = 16 (nitrogen) 4x1 + 3x2 - s2 = 24 (phosphate)
Chapter 2 - Linear Programming: Model Formulation & Graphical Solution 33
Minimize Z = $6x1 + $3x2 + 0s1 + 0s2 subject to: 2x1 + 4x2 s1 = 16 4x1 + 3x2 s2 = 24 x1, x2, s1, s2 0
35
Multiple Optimal Solutions Beaver Creek Pottery Example Objective function is parallel to to a constraint line. Maximize Z=$40x1 + 30x2 subject to: 1x1 + 2x2 40 4x1 + 3x2 120 x1, x2 0 Where: x1 = number of bowls x2 = number of mugs
Figure 2.20 Example with Multiple Optimal Solutions
Chapter 2 - Linear Programming: Model Formulation & Graphical Solution 36
An Infeasible Problem
An Unbounded Problem
Value of objective function increases indefinitely: Maximize Z = 4x1 + 2x2 subject to: x1 4 x2 2 x1, x2 0
The objective and constraints must be definable by linear mathematical functional relationships.
Chapter 2 - Linear Programming: Model Formulation & Graphical Solution 39
40
41
6x1 + 6x2 36
x1 4 x1, x2 0 Step 1: Plot the constraints as equations
x1 4
x1, x2 0 Step 3 and 4: Determine the solution points and optimal solution
Figure 2.25 Optimal Solution Point
Chapter 2 - Linear Programming: Model Formulation & Graphical Solution 46
Exercises
1) A wood products firm uses leftover time at the end of each week to make goods for stock. Currently, there are two products on the list of items that are produced or stock: a chopping board and a knife holder. Both items require three operations: cutting, glueing, and finishing. The manager of the firm has collected the following data on these products: The manager has also determined that during each week 56 minutes are available for cutting, 650 minutes for glueing, and 360 minutes for finishing.
Time per unit (min)
Item
Chopping board Knife holder
Profit/U
RM 2 RM 6
Cutting
1.4 0.8
Glueing
5 13
Finishing
12 3
a) Determined the optimal quantities of the decision variable. b) Which resources are not completely used by your solution? How much?
47
Exercises 2) Explain why the following linear programming formulation is probably in error:
Min 30x1 + 33x2 S.T: 15x1 + 18x2 90 20x1 + 12x2 120 x 1, x 2 0
48
Exercises 3) Explain why the following linear programming problem can not be solved for an optimal solution
Min 7x1 + 3x2 S.T: 6x1 + 8x2 48 4x1 + 3x2 24 x2 5 x 1 , x2 0
49
Exercises
4) A company is in process of developing a new product by mixing raw materials A & B where each contains necessary elements E1 & E2 for the new product. 1kg of A contains 2 units of E1 & 2 units of of E2, while 1 kg of B contains 1,3 respectively. Of one box of the new product should contain 20 units of E1 and 24 units of E2, and costs of A & B respectively are RM 4 & RM 3, then how much A & B to use in the production mix?
Chapter 2 - Linear Programming: Model Formulation & Graphical Solution 50
Exercises 5) A company produces two types of bike that are in great demand. Bike A needs 2 assembly time hours, and 4 painting time hours. Bike B needs 3,2 respectively. If the assembly hours cant exceed 360 hrs/wk, painting hours cant exceed 400 hrs/wk, profit RM80/bike A and RM 70/bike B, then how many of product A & B should the company produced weekly to maximize profit?
Chapter 2 - Linear Programming: Model Formulation & Graphical Solution 51
End of Chapter
52