Modelling with Linear programming MOT 3
Modelling with Linear programming MOT 3
programming
Dr. Manjubala Bisi
The Reddy Mikks Company
Reddy Mikks produces both exterior and interior paints from two raw
materials M1 and M2. A market survey indicates that the daily
demand for interior paint can not exceed that for exterior paint by
more than 1 Ton. Also, the maximum daily demand for interior paint is
2 Ton.
Reddy Mikks wants to determine the optimum (best) product mix of
interior and exterior paints that maximizes the total daily profit.
Two-variable LP Model
Exterior Paint Interior Paint Maximum daily
(Tons of raw (Tons of raw availability
material per material per
Ton of) Ton of)
x1 6 4 24
x2 1 2 6
Maximize / Minimize
Z: = σ𝑛𝑗=1 𝑐𝑗𝑥𝑗
Subject to restriction : σ𝑛𝑗=1 𝑎𝑖𝑗𝑥𝑗 ≤ 𝑏𝑖, 𝑖 = 1,2, … … 𝑚.
xj >=0, j = 1,2, ----,n
Enumeration method to solve LP model
Consider the following LP model:
Maximize Z = 2x1 + 3x2
subject to 2x1 + x2 <= 4
x1 + 2x2 <= 5
x1, x2 >= 0
How many variables (n) and how many equations(m) ?
Enumeration method to solve LP model
• The LP model is represented by following m =2 equations and n = 4
variables:
2x1 + x2 + s1 = 4
x1 + 2x2 + s2 = 5
x1, x2, s1, s2 >= 0
• The basic solutions are determined by setting (n – m = 4-2 ) 2
variables equal to zero and solving for the remaining (m) 2-variable.
• If we set x1 = 0 and x2 =0, , the equation provides unique basic
solution s1 = 4 and s2 =5
Enumeration method to solve LP model
• The LP model is represented by following m =2 equations and n = 4
variables:
2x1 + x2 + s1 = 4
x1 + 2x2 + s2 = 5
x1, x2, s1, s2 >= 0
• The basic solutions are determined by setting (n – m = 4-2 ) 2 variables
equal to zero and solving for the remaining (m) 2-variable.
• If we set x1 = 0 and x2 =0, , the equation provides unique basic solution s1
= 4 and s2 =5 [corner point A (0,0)]
• If we set s1 = 0 and s2 =0, , the equation provides unique basic solution x1
= 1 and x2 =2 [corner point E (1,2)]
Enumeration method to solve LP model
• Which (n-m) variables should be set equal to zero to target a specific
corner point
• Simply consider all combinations, in which (n-m) variables equal zero
and solve the resulting equations
• Once done, the optimum solution is the feasible basic solution (
corner point) with best objective value
• To complete the transition from the graphical to algebraic solution,
the zero (n-m) variables are known as non-basic variables and the
remaining m variables are called basic variables and their solution
(obtained by solving m equations) is referred as feasible solution
Enumeration method to solve LP model
[Here we are enumerating all the basic solutions(corner points of the LP problem)]