Introduction To Linear Programming
Introduction To Linear Programming
Programming
1
Linear Programming
Introduction
The Linear Programming Model
Examples of Linear Programming Problems
Developing Linear Programming Models
Graphical Solution to LP Problems
4
Basic Components of an LP:
6
An Introductory Example
7
An Introductory Example
9
Step 1: Defining the Decision Variables
10
Step 1: Defining the Decision Variables
11
Step 2: Choosing an Objective Function
Step 3: Identifying the Constraints
14
Step 3: Identifying the Constraints
• The amount of time that machine A is available restricts the
quantities to be manufactured. If we produce x units of P and y
units of Q, machine A should be used for 50x+24y minutes since
each unit of P requires 50 minutes processing time on machine A
and each unit of Q requires 24 minutes processing time on
machine A. On the other hand, machine A is available for 40
hours or equivalently for 2400 minutes. This imposes the
following constraint:
15
Step 3: Identifying the Constraints
16
Step 3: Identifying the Constraints
21
Example of LPP Formulation
2. A company produces two types of tables, T1 and T2. It takes 2 hours to
produce the parts of one unit of T1, 1 hour to assemble and 2 hours to
polish. It takes 4 hours to produce the parts of one unit of T2, 2.5 hour to
assemble and 1.5 hours to polish. Per month, 7000 hours are available for
producing the parts, 4000 hours for assembling the parts and 5500 hours
for polishing the tables. The profit per unit of T1 is $90 and per unit of T2
is $110. How many of each type of tables should be produced in order to
maximize the total monthly profit. Formulate as LPP.
22
Example of LPP Formulation
3. A store sells two types of toys, A and B. The store owner pays $8 and $14 for
each one unit of toy A and B respectively. One unit of toys A yields a profit of
$2 while a unit of toys B yields a profit of $3. The store owner estimates that no
more than 2000 toys will be sold every month and he does not plan to invest
more than $20,000 in inventory of these toys. How many units of each type of
toys should be stocked in order to maximize his monthly total profit ?
Formulate as LPP.
23
Example of LPP Formulation
4. Each month a store owner can spend at most $100,000 on PC's and laptops.
A PC costs the store owner $1000 and a laptop costs him $1500. Each PC is
sold for a profit of $400 while laptop is sold for a profit of $700. The sore
owner estimates that at least 15 PC's but no more than 80 are sold each month.
He also estimates that the number of laptops sold is at most half the PC's. How
many PC's and how many laptops should be sold in order to maximize the
profit?
24
Formulate as LPP.
Q5.A farmer plans to mix two types of food to make a mix of low
cost feed for the animals in his farm. A bag of food A costs $10 and
contains 40 units of proteins, 20 units of minerals and 10 units of
vitamins. A bag of food B costs $12 and contains 30 units of proteins,
20 units of minerals and 30 units of vitamins. How many bags of food
A and B should the consumed by the animals each day in order to
meet the minimum daily requirements of 150 units of proteins, 90
units of minerals and 60 units of vitamins at a minimum cost.
25
Example: Product Mix Problem
The N. Dustrious Company produces two products: I and II. The raw material
requirements, space needed for storage, production rates, and selling prices for
these products are given in Table 1
26
Example: Product Mix Problem
The total amount of raw material available per day for both products is 15751b.
The total storage space for all products is 1500 ft2, and a maximum of 7 hours
per day can be used for production.
All products manufactured are shipped out of the storage area at the end of the
day. Therefore, the two products must share the total raw material, storage
space, and production time. The company wants to determine how many
units of each product to produce per day to maximize its total income.
27