Escolar Documentos
Profissional Documentos
Cultura Documentos
LINEAR PROGRAMMING
CHAPTER TOPICS
Model Formulation
Linear Programming - An
Overview
Steps in application:
1- identify problem as solvable by linear programming.
2- formulate a mathematical model of the unstructured problem.
3- solve the model.
activity of a firm.
Product
Bowl
Mug
Resource Requirements
Labor
Clay
Profit
(hr/unit) (lb/unit)
($/unit)
1
4
40
2
50
Example : A Maximization
Model
Resource availability:
40 hours of labor per day, 120 pounds of clay
Decision variables:
x1= number of bowls to produce/day ,
x2= number of mugs to produce/day
Objective function :
Maximize Z = $40x1 + 50x2 ;
Resource constraints:
Non-negativity constraints:
hours of labor
pounds of clay
x1 0; x2 0
6
Example : A Maximization
Model
Z= $40x1 + 50x2
subject to
1x1 + 2x2 40
4x1 + 3x2 120
x 1 , x2 0
Feasible/Infeasible
A feasible solution does not violate any of the constraints:
Solutions
11
Ex. Graph y 2 x 1
Ex. Graph y 2 x 1
14
Ex. Graph y 3
15
Corners Points
The graph of any systems of inequalities will have
line segments as boundaries. The point of
intersection of two line segments that form the
boundary is called a corner point of the graph.
How to find corner points (or intersections)?
-Using equations
-Graphical (identify from the graph)
17
(Non-negativity)
19
Graphical Solution of a
Maximization Model
Labor Constraint
Maximize Z=$40x1 + 50x2
Subject to
1x1 + 2x2 40 (hours of labor)
4x1 + 3x2 120 (pounds of clay)
x1, x2 0 (Non-negativity)
20
Graphical Solution of a
Maximization Model Labor Constraint
Area
Maximize Z=$40x1 + 50x2
Subject to
1x1 + 2x2 40 (hours of labor)
4x1 + 3x2 120 (pounds of clay)
x 1 , x2 0
(Non-negativity)
21
Graphical Solution of a
Maximization Model
Clay Constraint Area
Maximize Z=$40x1 + 50x2
Subject to
1x1 + 2x2 40 (hours of labor)
4x1 + 3x2 120 (pounds of clay)
x 1 , x2 0
(Non-negativity)
22
Graphical Solution of a
Maximization Model
Both Constraints
Maximize Z=$40x1 + 50x2
Subject to
1x1 + 2x2 40 (hours of labor)
4x1 + 3x2 120 (pounds of clay)
x 1 , x2 0
(Non-negativity)
Graphical Solution of a
Maximization Model Feasible Solution
Area
Maximize Z=$40x1 + 50x2
Subject to
1x1 + 2x2 40 (hours of labor)
4x1 + 3x2 120 (pounds of clay)
x 1 , x2 0
(Non-negativity)
24
Graphical Solution of a
Maximization Model
Corner Point Solutions
Maximize Z=$40x1 + 50x2
Subject to
1x1 + 2x2 40 (hours of labor)
4x1 + 3x2 120 (pounds of clay)
x 1 , x2 0
(Non-negativity)
25
Example : A Minimization
Model
Problem
Definition
Two
brands of fertilizer
available Super-gro, Crop-quick.
Field requires at least 16 pounds of nitrogen and 24 pounds of phosphate.
Super-gro costs $6 per bag, Crop-quick costs $3 per bag.
Problem : How much of each brand to purchase to minimize total cost of
fertilizer given following data ?
26
Example : A Minimization
Model
Model
Construction
Decision variables
: x1 = bags of Super-gro ; x2 = bags of
The objective function:
Minimize
Crop-quick
Z = $6x1 + 3x2
Model constraints:
27
28
29
30
Irregular Types of
Linear Programming Problems
31
Multiple Optimal
Solutions
Objective function is parallel to
a constraint line:
Maximize Z=$40x1 + 30x2
Subject to
1x1 + 2x2 40 hours of labor
4x2 + 3x2 120 pounds of clay
x1, x2 0
where x1 = number of bowls
x2 = number of mugs
32
An Infeasible Problem
Every possible solution
violates at least one constraint:
33
An Unbounded Problem
Value of objective function
increases indefinitely:
34
Characteristics of Linear
Programming Problems
Exercise 1
Formulate LPP
A small company consisting of two carpenters
and a finisher produce and sell two types of tables: type
A and type B.
The type-A table will result in a profit of $50, and
each type-B table will result in a profit of $54. A type-A
table requires 3 hours of carpentry and 1 hour of
finishing. A type-B table requires 2 hours of carpentry
and 2 hours of finishing.
Each day there are 16 hours available for
carpentry and 8 hours available for finishing. How many
tables of each type should be made each day to
maximize profit?
Exercise 2
Formulate LPP
A manufacturing firm produces two products A and B.
Each of these products must be processed through two different
machines. However, both the machines are also used to produce
other products. Thus, the available machine hours for the
production of A and B per week are 12 hours on machine 1 and
8 hours on machine 2. Each unit of product A requires 2 hours of
time on both machines. On the other hand, each unit of product B
requires 3 hours of time on machine1 and 1 hour on machine 2.
The profit per unit of product A and B are RM 6 and RM
7 respectively. The firm can sell as many units of each product as
it can manufacture. Formulate the objective function and the
constraints. Determine the optimal output of products A and B per
week that can be produced within the limits of the available
machine capacities.
Exercise 3
Solve the following model graphically:
maximize Z = 4x1 + 5x2
subject to
x1 + 2x2 10
6x1 + 6x2 36
x1 4
x1,x2 0
Exercise 4
Solve the following model graphically:
Minimize C = 3X + Y
subject to
X + Y 30
X + 2Y 40
X, Y 0
Exercise 5
Solve the following model graphically:
Minimize C = 5X + 3Y
subject to
X + Y 48
X + 3Y 60
9X + 5Y 320
X 10
Y 0
Exercise 6
Formulate and solve LPP
Mikes Famous Toy Trucks manufacturers two kinds
of toy trucks - a standard model and a deluxe model.
In the manufacturing process each standard model
requires 2 hours of grinding and 2 hours of finishing. The
deluxe model requires 2 hours of grinding and 4 hours of
finishing. The company has two grinders and three
finishers, each of whom works at most 40 hours per week.
Each standard model toy truck brings a profit of $3
and each deluxe model a profit of $4. Assuming that every
truck made will be sold, how many of each should be made
to maximize profits?
Exercise 7
Formulate and solve LPP
The water-supply manager for a Midwest city needs
to supply the city with at least 10 million gal of potable
(drinkable) water per day. The supply may be drawn from
the local reservoir or from a pipeline to an adjacent town.
The local reservoir has a maximum daily yield of 5 million
gal of potable water, and the pipeline has a maximum daily
yield of 10 million gallons. By contract, the pipeline is
required to supply a minimum of 6 million gallons/day. If the
cost for 1 million gallons of reservoir water is $300 and that
for pipeline water is $500, how much water should the
manager get from each source to minimize daily water
costs for the city? What is the minimum daily cost?