LP Formulation
LP Formulation
Formulation
• Linear programming is a mathematical modeling technique
designed to optimize the usage of limited resources
– Programming means planning of activities
– Linear implies the activities are linearly related
– Contribution of each decision variable in both objective function and
constraints to be directly proportional to the value of the variable
– Total contributions of all the variables in the objective function and
constraints be direct sum of individual contribution of each variable.
• 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
• Objective function
• Max Z = 6 x1 + 11 x2
• Subject to constraint
• 2x1 + 1x2 104
• 1x1 + 2x2 76
• x1 0, x2 0
Example 4
• 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 5
• 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 6
• St
• 3x1 + x2 ≤ 48
• 2x1 + x2 ≤ 40
• x1, x2 0
Example 7
• St
• x1 ≤ 4
• x2 2
• x1 + x2 = 5
• x1, x2 0
Example 8
• St
• Min Z = M + G
• St
• 10M + 5G 3000
• 20M + 30G 10000
• M ≤ 250
• G ≤ 250
• M,G0
Example 10
• St
• D ≤ 10
• Z ≤ 20
• C ≤ 10
• 800D +1000Z + 750C ≤ 10000
• D, Z, C 0
Example 11
• St
• 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 12