LP Formulation
LP Formulation
• In linear programming
– objective function and constraints are expressed as a linear function of the
variables (activities)
• Usage of raw material M1 in both the plants i.e. 6x1 + 4x2 tons
• Usage of raw material M2 in both the plants i.e. 1x1 + 2x2 tons
• Any solution that satisfies all the constraints of the model is a feasible
solution.
Example 1
• Superfast Cycles operates two assembly lines, A and B. Each
line is used to assemble components of three types of bicycles:
Economy, Super and Racer. The expected daily production on
each line is as follows:
• Model Line A Line B
• Economy 3 1
• Super 1 1
• Racer 2 6
• The daily running costs average Rs.6000 for line A and Rs.4000
for line B. The company must manufacture at least 24
Economy, 16 Super and 48 Racer cycles for which order are
pending. To determine the number of days that the two
assembly lines should be run so as to meet the requirements
with the least cost, formulate the problem into LP form.
Answer
Number of hours
required
Maximum
availability
Lamp A Lamp B hour
Cutter 2 1 104
Finisher
• Formulate 1 a linear programming
this problem into 2 76
model.
Profit (Rs.) 6 11
Answer
• Objective function
• Max Z = 6 x1 + 11 x2
• Subject to constraint
• 2x1 + 1x2 104
• 1x1 + 2x2 76
• x1 0, x2 0
Example 3
• Max 15 x1 + 45 x2
• Subject to
• x1 + 1.6 x2 240
• 0.5 x1 + 2.0 x2 162
• x2 50
• x1 0, x2 0
Example 4
• A farm has available 240, 370 and 180 kg of wood, plastic and
steel respectively. The firm produces two products A and B.
Each unit of A requires 1, 3 and 2 kg of wood, plastic and steel
respectively. The corresponding requirements for each unit of
B are 3, 4 and 1 respectively. If A sells for Rs. 4 and B for Rs.
6, formulate the linear programming problem.
Answer
• Max 4 x1 + 6 x2
• Subject to
• x1 + 3 x2 240
• 3 x1 + 4 x2 370
• 2 x1 + x2 180
• x1 0, x2 0
Example 5
• St
• 3x1 + x2 ≤ 48
• 2x1 + x2 ≤ 40
• x1, x2 0
Example 6
• St
• x1 ≤ 4
• x2 2
• x1 + x2 = 5
• x1, x2 0
Example 7
• St
• Min Z = M + G
• St
• 10M + 5G 3000
• 20M + 30G 10000
• M ≤ 250
• G ≤ 250
• M,G0
Example 9
• St
• D ≤ 10
• Z ≤ 20
• C ≤ 10
• 800D +1000Z + 750C ≤ 10000
• D, Z, C 0
Example 10
• Let the daily diet be consist of x1 gallons of milk, x2 pounds of beef and x3
dozens of eggs
• Objective function
• Min Z = 1 x1 + 1.1 x2 + 0.5 x3
• Subject to constraint
• 1 x1 + 1 x2 + 10 x3 1
• 100 x1 + 10 x2 + 10 x3 50
• 10 x1 + 100 x2 + 10 x3 10
• x1 0, x2 0, x3 0
Example 11
• St
• This quantity should equal at least 30% of the total feed mix
(x1 + x2) lb.