Linear Programing (Problem Formulation)
Linear Programing (Problem Formulation)
Linear Programing
Problem Formulation:
A linear programing model, has three basic concepts
1. Decision variables that we seek to determine.
2. Objective (goal) that we need to optimize (maximize or minimize)
3. Constrains that the solution must satisfy
Example:
A firm produces three products. These products are processed on three
different machines. The time required to manufacture one unit of each of
the three products and the daily capacity of the three machines are given
as:
Machine Time per unit (minutes) Machine capacity
(minutes per day)
Product-1 Product-2 Product-3
M1 2 3 2 440
M2 4 ---- 3 470
M3 2 5 --- 430
Solution:
Formulation of linear programming Model.
In the given problem decision is to, decide the extent of product 1, 2 and 3.
The feasible alternatives are those which are physically, economically and
financially possible. In the given situation feasible alternatives are set of
Linear Programming Problem Formulation Instructor: Miss Urooj
values of 𝑥1, 𝑥2 , 𝑥3
Where
𝑥1 , 𝑥2 , 𝑥3 ≥ 0
Since negative production has no meaning and is not feasible.
Capacity of M1
2𝑥1 + 3𝑥2 + 2𝑥3 ≤ 440
Capacity of M2
4𝑥1 + 0𝑥2 + 3𝑥3 ≤ 470
Capacity of M3
2𝑥1 + 5𝑥2 + 0𝑥3 ≤ 430
Linear Programming Problem Formulation Instructor: Miss Urooj
Practice Questions:
Question #1
An advertising company wishes to plan its advertising strategy in three
different media television, radio and magazines. The purpose of
advertising is to reach as large a number of potential customers as
possible. Following data has been obtained from market survey.
Solution:
Formulation of linear programming Model.
Let the number of advertising units to be bought on T.V, radio, Mag-1 and
Mag-2 be 𝑥1, 𝑥2 , 𝑥3 , 𝑥4 units respectively
Where
𝑥1 , 𝑥2 , 𝑥3 , 𝑥4 ≥ 0
Since negative production has no meaning and is not feasible.
Female customers,
150,000𝑥1 + 400,000𝑥2 + 70,000𝑥3 + 50,000𝑥4 ≥ 10,00,000
Expenses on Mags,
15,000𝑥3 + 10,000 𝑥4 ≤ 150,000
Question #2
A firm produces an alloy having the following specification:
I. Specific gravity ≤ 0.98
II. Chromium ≥ 8%
III. Melting point ≥ 450 𝑜𝐶
Raw material A, B and C having the properties shown in the table can be
used to make the alloy.
Costs of the various raw materials per ton are: Rs. 90 for A, Rs. 280 for B,
and Rs. 40 for C. Formulate the L.P. model to find the proportions in which
A, B, C be used to obtain an alloy of desired properties while cost of raw
material is minimum.
Solution:
Let 𝑥1 , 𝑥2 , 𝑥3 denote the percentage contents of raw material A, B, C to be
used for making the alloy.
Subject to,
Specific gravity 0.92𝑥1 + 0.97𝑥2 , +1.04𝑥3 ≤ 0.98
𝑥1 + 𝑥2 + 𝑥3 = 100
𝑥1 , 𝑥2 , 𝑥3 ≥ 0
Linear Programming Problem Formulation Instructor: Miss Urooj
Question #3
A person wants to decide the constituents of diet, which will fulfill his
daily requirements of proteins, fats, and carbohydrates at the minimum
cost. The choice is to be made from four different types of food. The
yields per unit of these foods are given as follows.
Cost per
Yield per unit
Food type unit
Proteins Fats Carbohydrates (Rs.)
1 3 2 6 45
2 4 2 4 40
3 8 7 7 85
4 6 5 4 65
Min.
800 200 700 -------------
Requirement
Solution:
Let 𝑥1 , 𝑥2 , 𝑥3 , 𝑥4 denote the number of units of food of type 1, 2, 3 and 4
respectively
The objective is to minimize the cost.
𝑥1, 𝑥2 , 𝑥3 , 𝑥4 ≥ 0
Linear Programming Problem Formulation Instructor: Miss Urooj
Question #4
A firm manufactures two items. It purchases castings which are then
machined, bored and polished. Casting for item A and B cost Rs. 2 and
Rs. 3 respectively and sold at Rs. 5 and Rs. 6 each respectively. Running
costs of the three machines are Rs. 20, Rs. 14 and Rs. 17.50 per hours
respectively. Capacities of the machines are
Part A Part B
Machine
25/hr 40/hr
Capacity
Boring
28/hr 35/hr
capacity
Polishing
35/hr 25/hr
capacity
Solution:
Let 𝑥1 , 𝑥2 represents the number of units of A, B to be manufactured per
hour
The object is to maximize the profit.
Subject to,
1 1
Machining capacity 𝑥1 + 𝑥 ≤1
25 40 2
1 1
Boring capacity 𝑥1 + 𝑥 ≤1
28 35 2
1 1
Polishing Capacity 𝑥1 + 𝑥 ≤1
35 25 2
𝑥1 , 𝑥2 ≥ 0
Linear Programming Problem Formulation Instructor: Miss Urooj
Question #5
The Delhi florist company is planning to make up floral arrangements for
the upcoming festival. The company has available the following supply of
the flowers at the costs shown:
Solution:
Let 𝑥1 , 𝑥2 , 𝑥3 , 𝑥4 be the number of units of each arrangement that
should be made up to maximize the profit.
Subject to,
Availability of Red Rose, 4𝑥1 + 9𝑥3 + 12 𝑥4 ≤ 800
𝑥1, 𝑥2 , 𝑥3 , 𝑥4 ≥ 0
Linear Programming Problem Formulation Instructor: Miss Urooj
Question #6
A farmer has a 100 acre farm. He can sell all the tomatoes, lettuces or
radishes he can raise. The price he can obtain is Re.1 per kg of tomatoes,
Re. 0.75 a head for lettuce and Re. 2 per kg for radishes. The average yield
per acre is 2,000 kg of tomatoes, 3,000 heads of lettuce and 1,000 kg of
radishes. Fertilizer is available at 0.50 per kg. And the amount required
per acre is 100 kg. Each for tomatoes and lettuce and 50 kg for radishes.
Labor required for sowing, cultivating and harvesting per acre is 5 man-
days for tomatoes and radishes and 6 man-days for lettuce. A total of 400
man days of labor are available at Re. 20 per man-day. Formulate the LP
model for this problem in order to maximize the profitability of the
farmer.
Solution:
Let 𝑥1 , 𝑥2 , 𝑥3 represents the amount of tomatoes, lettuces or radishes in
kilograms.
Subject to,
Availability of land,
𝑥1 + 𝑥2 + 𝑥3 ≤ 1000
Availability of Labor,
5𝑥1 + 6𝑥2 + 5𝑥3 ≤ 400
𝑥1, 𝑥2 , 𝑥3 ≥ 0
Linear Programming Problem Formulation Instructor: Miss Urooj
Question #7
A plant manufactures washing machines and dryers. The major
manufacturing departments are the stamping department, motor and
transmission department, and assembly department. The first two
departments produce parts for both the products while the assembly
lines are different for the two products. The monthly department
capacities are:
Availability
Data
Department Capacity
Stamping 1,000 washers or
1,000 dryers
Motor and 1,600 washers or
Transmission 7,000
dryers
Washer assembly 9,000 washers
Dryer assembly 5,000 dryers
Profits per piece of washers and dryers are Re. 2,700 and Re. 3,000
respectively. Formulate the LP model.
Solution:
Let 𝑥1 , 𝑥2 ,be the number of washing machines and dryers that should be
manufacture each month to maximize the profit.
𝑥1 , 𝑥2 ≥ 0
Linear Programming Problem Formulation Instructor: Miss Urooj
Question # 8
A dairy feed company may purchase and mix one or more of the three
types of grains containing different amounts of nutritional elements.
The data is given in the table below. The production manager specifies
that any feed mix for his livestock must meet at least minimal
nutritional requirements and seeks the least costly among all such
mixes.
One Unit
Weight of
Grain- Minimal
Item Grain-I Grain-II
III Req.
A 2 3 7 1,250
Nutritional B 1 1 0 250
Ingredients C 5 3 0 900
D 6 25 1 232.5
Cost/unit weight
41 35 96
(Re.)
Solution:
Let 𝑥1 , 𝑥2 , 𝑥3 represents the amount of Grain-I, Grain-II and Grain-III to
be used feed mix for his livestock, that fulfil the nutritional requirements
at minimal cost.
Subject to,
Nutritional Ingredient A, 2𝑥1 + 3𝑥2 + 7 𝑥3 ≥ 1250
𝑥1 , 𝑥2 , 𝑥3 ≥ 0