Module 1_Basic Concepts ^0 Linear Programming - Copy
Module 1_Basic Concepts ^0 Linear Programming - Copy
& Linear
Programming
1
©2017 Batangas State University
Basic Concepts of Linear Programming
9
Model Formulation
Decision Variables:
Let X1 = number of model 1 screens to be produced
X2 = number of model 2 screens to be produced
Objective Function:
Max Z = 120X1 + 80X2
Subject to: (constraints)
Wood constraints: 2X1 + X2 ≤ 6
Time constraints: 7X1 + 8X2 ≤ 28
X1, X2 ≥ 0 , non-negativity
Formulate an LP Model
The Shader Electronics Company produces two products: (1) the Shader
Walkman, a portable CD/DVD player, and (2) the Shader Watch-TV, a
wristwatch-size internet-connected color television. The production
process for each product is similar in that both require a certain number of
hours of electronic work and a certain number of labor-hours in the
assembly department. Each walkman takes 4 hours of electronic work and
2 hours in the assembly shop. Each Watch-TV requires 4 hours in
electronics and 1 hour in assembly. During the current production period,
240 hours of electronic time are available, and 100 hours of assembly
department time are available. Each walkman sold yields a profit of $7;
each watch-TV produced may be sold for a $5 profit. Formulate an LP
Model that would maximize profit of both walkmans and watch-TV?
Formulation
12
Model Formulation
Decision Variables:
Let X1 = number of Walkmans to be manufactured
X2 = number of Watch-TVs to be manufactured
Objective Function:
Max Z = $7X1 + $5X2
Subject to: (constraints)
Electronic time constraints: 4X1 + 4X2 ≤ 240
Assembly time constraints: 2X1 + X2 ≤ 100
X1, X2 ≥ 0 , non-negativity
Formulate an LP Model
A small generator burns two types of fuels: low sulfur and high
sulfur to produce electricity. For one hour, each gallon of low sulfur
emits 3 units of sulfur dioxide, generates 4 kilowatts of electricity
and costs P60. Each gallon of high sulfur emits 5 units of sulfur
dioxide, generates 4 kilowatts and costs P50. The environmental
protection agency insists that the maximum amount of sulfur
dioxide that can be emitted per hour is 15 units. Suppose that at
least 16 kilowatts must be generated per hour, how many gallons of
low sulfur and how many gallons of high sulfur must be utilized per
hour in order to minimize the cost of the fuel? Formulate an LP
Model.
Formulation
15
Model Formulation
Decision Variables:
Let X1 = number of low sulfur to be utilized per hr
X2 = number of high sulfur to be utilized per hr
Objective Function:
Minimize cost = P60X1 + P50X2
Subject to: (constraints)
3X1 + 5X2 ≤ 15
4X1 + 4X2 ≥ 16
X1, X2 ≥ 0 , non-negativity
Review of Linear Programming Concepts
There are four basic assumptions in LP:
Objective Function:
Maximize Profit = P80X1 + P60X2
Subject to: (constraints)
4X1 + 2X2 ≤ 60 (assembly)
2X1 + 4X2 ≤ 48 (finishing)
X1, X2 ≥ 0 , non-negativity constraints
Step2&3. Plot the constraints and identify the feasible region
Finding X1 and X2 intercepts:
Tables Chairs
(per table) (per chair)
Profit Hours
$7 $5
Contribution Available
Carpentry 3 hrs 4 hrs 2400
Painting 2 hrs 1 hr 1000
More Constraints:
► Make no more than 450 chairs
X2 < 450 (num. chairs)
► Make at least 100 tables
X1 > 100 (num. tables)
Non negativity:
Cannot make a negative number of chairs or
tables
X1 , X2 > 0
Model Summary
Objective Function:
3X
1+
Intercepts 4X
2=
0 24
00
(X1 = 0, X2 = 600) Feasible
(X1 = 800, X2 = 0) < 2400 hrs
0 800 T
C
1000
Painting
Constraint Line
2X
1+
600
2X1 + 1X2 = 1000
1X
2=
100
0
Intercepts
0
(X1 = 0, X2 = 1000)
(X1= 500, X2 = 0)
0 500 800 T
C
1000
600
Min Table Line
450
X1 = 100
Feasible
0
Region
0 100 500 800 T
7X
C
Objective Function Line
1+
5X
2
7X1 + 5X2 = Z (Profit)
=$
4,0
500
4
A B
0
400
Optimal Point
(T = 320, C = 360)
300 C
200
100
Model constraints:
2x1 + 4x2 ≥ 16 lb (nitrogen constraint)
4x1 + 3x2 ≥ 24 lb (phosphate constraint)
x1, x2 ≥ 0 (nonnegativity constraint)
34
Minimization Model
Decision variables x1 = bags of
Super-gro
x2 = bags of Crop-quick
The objective function:
minimize Z = $6x1 + $3x2
Model constraints:
2x1 + 4x2 ≥ 16 lb (nitrogen constraint)
4x1 + 3x2 ≥ 24 lb (phosphate constraint)
x1, x2 ≥ 0 (nonnegativity constraint)
35
Minimization Model
Decision variables x1 = bags of
Super-gro
x2 = bags of Crop-quick
The objective function:
minimize Z = $6x1 + $3x2
Model constraints:
2x1 + 4x2 ≥ 16 lb (nitrogen constraint)
4x1 + 3x2 ≥ 24 lb (phosphate constraint)
x1, x2 ≥ 0 (nonnegativity constraint)
36
Problems
An appliance manufacturer produces two models of microwave
ovens: H and W. Both models requires fabrication and assembly
work; each H uses four hours of fabrication and two hours of
assembly, and each W uses two hours of fabrication and six hours of
assembly. There are 600 fabrication hours available this week and
480 hours of assembly. Each H contributes $40 to profits, and each
W contributes $30 to profits. What quantities of H and W will
maximize profits?
Problems
A calculator company produces a scientific calculator and a graphing
calculator. Long term projections indicate an expected demand of at
least 100 scientific and 80 graphing calculators each day. Because of
limitations on production capacity, no more than 200 scientific and 170
graphing calculators can be made daily. To satisfy a shipping contract,
a total of at least 200 calculators must be shipped each day.
If each scientific calculator sold results in a $2 profit, but each
graphing calculator produces a $5 profit, how many of each type
should be made daily to maximize net profits?
LP Model 2:
-A Hot dog mixture in 1000-pound batches. Two ingredients is needed to create the
mixture, chicken ($3/lb) and beef ($5/lb),
- Recipe requires at least 500 pounds of chicken and at least 200 pounds of beef is
needed. Also, Ratio of chicken to beef must be at least 2 to 1. Determine optimal
mixture of ingredients that will minimize costs.