Chapter 2 - Linear Programming (Part 1)
Chapter 2 - Linear Programming (Part 1)
nzah@utm.my-20232024(S1)
2
Mathematical Formulation of LP Model
Step 1
§ Study the given situation
§ Find the key decision to be made
§ Identify the decision variables of the problem
Step 2
§ Formulate the objective function to be optimized
Step 3
§ Formulate the constraints of the problem
Step 4
§ Add non-negativity restrictions or constraints.
§ The objective function, the set of constraints and the non-
negativity restrictions together form an LP model.
3
3
Properties of LP Model
1) Proportionality
Contribution of each decision variable in both the objective function and constraints to be directly
proportional to the value of the variable.
2) Additivity
Total contribution of all the variables in the objective function and in the constraints to be the direct sum of the
individual contributions of each variable.
3) Certainty
All the objective and constraint coefficients of the LP model are deterministic (known constants).
LP coefficients are average-value approximations of the probabilistic distributions. If standard deviations of
these distributions are sufficiently small, then the approximation is acceptable.
Large standard deviations can be accounted for directly by using stochastic LP algorithms or indirectly by
applying sensitivity analysis to the optimum solution.
4
Linear Programming: Two Variables
EXAMPLE 1: THE GALAXY INDUSTRY PRODUCTION
• Galaxy manufactures two toy models:
i. Space Ray.
ii. Zapper.
• Resources are limited to:
i. 1200 pounds of special plastic.
ii. 40 hours of production time per week.
• Marketing requirement:
i. Total production cannot exceed 800 dozens.
ii. Number of dozens of Space Rays cannot exceed number of dozens of Zappers by more than 450.
• Technological input:
i. Space Rays requires 2 pounds of plastic and 3 minutes of labor per dozen.
ii. Zappers requires 1 pound of plastic and 4 minutes of labor per dozen.
• Current production plan calls for:
i. Producing as much as possible of the more profitable product, Space Ray (RM8 profit per dozen).
ii. Use resources left over to produce Zappers (RM5 profit per dozen).
5
Linear Programming: Two Variables
EXAMPLE 1 - Solution
§ Decisions variables:
§ Objective Function:
6
Exercise #1
The Alex Garment Company manufactures men’s shirts and women’s blouses. The
production process includes cutting, sewing, and packaging. The company employs
25 workers in the cutting department, 35 in the sewing department, and 5 in the
packaging department. The factory works one 8-hrs shift, 5 days a week. The
following table gives the time requirements and profits per unit to produce the two
garments. Formulate the problem to determine the optimal weekly production
schedule for Alex Garment Company.
7
Feasible Solutions for Linear Programming
Figure - Example
8
8
Graphical Presentation
Figure - Example 9
9
EXAMPLE 1: THE GALAXY INDUSTRY PRODUCTION
X2
1200
2X1+X2<=1200 (plastic)
The Plastic constraint
800 X1+X2 <= 800 (Total production)
600 Infeasible
600 800 X1
400
Find the coordinates for all the 4 equations of the restrictions (only take the equality sign)
10
Type of Possible Points
Extreme point:
11
EXAMPLE 1: THE GALAXY INDUSTRY PRODUCTION
X2
1200
2X1+X2<=1200 (plastic)
The Plastic constraint
800 X1+X2 <= 800 (Total production)
600 Infeasible
Extreme
Interior
Boundary point
point
point
12
Solving Graphically for an Optimal Solution: Procedure
Note: The optimum solution of an LP, when it exists, is always associated with a corner
point of the solution space
13
Solving Graphically for an Optimal Solution: Procedure
Start at some arbitrary profit, say profit = $2,000...
X2 Then increase the profit, if possible...
1200
...and continue until it becomes infeasible
ion
eg
le R
800 sib
e fea
l th
600
cal
Re
2X1+X2<=1200 (plastic)
2X1+X2=1200
3X1+4X2=2400 X1= 480
X2= 240
2X1+X2=1200 X1 = 550
X1-X2=450 X2 = 100
15
Solving Graphically for an Optimal Solution: Procedure
2X1+X2<=1200 (plastic)
A (0,600)
B (480,240)
E(0,0) D(450,0)
C (550,100)
16
Corner Point Method
By compensation on:
Max, Z = 8X1 + 5X2
(X1, X2) Objective function
(0,0) 0
(450,0) 3600
(480,240) 5040
(550,100) 4900
(0,600) 3000
17
Corner Point Method
EXAMPLE 2: THE REDDY MIKKS COMPANY
• Reddy Mikks produces both interior and exterior paints from two raw materials M1 and
M2. The following table provide the basic data of the problem:
• The market survey restrict that maximum daily demand of interior paint is 2 tons.
• Daily demand for interior paint cannot exceed that of exterior paint by more than 1 ton.
• Reddy Mikks wants to determine the optimum product mix of interior and exterior
paints that maximizes the total daily profit.
18
Corner Point Method
EXAMPLE 2 - Solution
Variables:
X1 = tons produced daily of exterior paint
X2 = tons produced daily of interior paint
Z = total daily profit (in thousands of dollars)
Conditions:
• Usage of a raw material by both paints < Maximum raw material availability
• Usage of raw material M1 per day = 6X1 + 4X2 tons
• Usage of raw material M2 per day = X1 + 2X2 tons
• Daily availability of raw material M1 is 24 tons
• Daily availability of raw material M2 is 6 tons
19
Corner Point Method
EXAMPLE 2 – Solution (cont’d)
Constraints:
20
Corner Point Method
EXAMPLE 2 – Solution (cont’d)
Graphical Representation - Feasible Solution
21
Corner Point Method
EXAMPLE 2 – Solution (cont’d)
§ To find optimum solution, identify the direction in which the maximum profit increases (Profit, Z
= 5X1 + 4X2)
5X1 + 4X2 = 10
5X1 + 4X2 = 15
22
Corner Point Method
EXAMPLE 2 – Solution (cont’d)
§ Any further increase in Z that is beyond corner point C will put points outside the boundaries
of ABCDEF feasible space.
§ Values of X1 and X2 associated with optimum corner point C are determined by solving the
equations:
6X1 + 4X2 = 24 …(eq. 1)
X1 + 2X2 = 6 …(eq. 2)
§ Solving the above equations give X1 = 3 and X2 = 1.5 with Z = 5(3) + 4(1.5) = 21
§ So daily production mix of 3 tons of exterior paint and 1.5 tons of interior paint produces the
daily profit of $21,000 .
23
Corner Point Method
EXAMPLE 2 – Solution (cont’d)
Optimal Solution
24
Corner Point Method
EXAMPLE 2 – Solution (cont’d)
Since optimum LP solution is always associated with a corner point of the solution space, so
optimum solution can be found by enumerating all the corner points as below:-
A (0, 0) 0
B (4, 0) 20
C (3, 1.5) 21
D (2, 2) 18
E (1, 0) 13
F (0, 1) 4
As number of constraints and variables increases , the number of corner points also
increases.
25
LP - Minimization Model
EXAMPLE 1:
A firm has two bottling plant. One plant located at Coimbatore and other plant located at
Chennai. Each plant produces three types of drinks; Coca-Cola , Fanta and Thumps-up. The
following table show the data.
Market survey indicates that during the month of April there will be a demand of 200,000 bottles of Coca-cola ,
400,000 bottles of Fanta and 440,000 bottles of Thumps-up. For how many days each plant be run in April to
minimize the production cost, while still meeting the market demand?
26
LP - Minimization Model
EXAMPLE 1 - Solution
Let, X1 = number of days to produce all the three types of bottles by plant at Coimbatore.
X2 = number of days to produce all the three types of bottles by plant at Chennai.
Objective:
Minimize Z = 600X1 + 400X2
Constraint:
15,000X1 + 15,000X2 > 200,000 …(1)
30,000X1 + 10,000X2 > 400,000 …(2)
20,000X1 + 50,000X2 > 440,000 …(3)
X1 > 0 …(4)
X2 > 0 …(5)
27
LP - Minimization Model
EXAMPLE 1 – Solution (cont’d)
28
LP - Minimization Model
EXAMPLE 2 – Solution (cont’d)
§ In 12 days, all the three types of bottles (Coca-Cola, Fanta, Thumps-up) are produced
by plant at Coimbatore.
§ In 4 days all the three types of bottles (Coca-Cola, Fanta, Thumps-up) are produced by
plant at Chennai.
§ So minimum production cost is 8800 units to meet the market demand of all the three
types of bottles (Coca-Cola, Fanta, Thumps-up) to be produced in April.
29
Exercise #2
(Continue from Exercise #1)
The Alex Garment Company manufactures men’s shirts and women’s blouses. The
production process includes cutting, sewing, and packaging. The company employs
25 workers in the cutting department, 35 in the sewing department, and 5 in the
packaging department. The factory works one 8-hr shift, 5 days a week. The following
table gives the time requirements and profits per unit to produce the two garments.
Determine the optimal weekly production schedule for Alex Garment Company.
30
Exercise #2
In Hamid grocery store, shelf space is limited and must be used effectively to increase
profit. Two cereal items, Grano and Wheatie, compete for a total shelf space of 60 ft2 . A
box of Grano occupies 0.2 ft2 and a box of Wheatie needs 0.4 ft2 . The maximum daily
demands of Grano and Wheatie are 200 and 120 boxes, respectively. A box of Grano
nets $1.00 in profit and a box of Wheatie $1.35. Hamid thinks that because the unit profit
of Wheatie is 35% higher than that of Grano, Wheatie should be allocated 35% more
space than Grano, which amounts to allocating about 57% to Wheatie and 43% to
Grano. What do you think?
31