Linear Programming Formulation
Linear Programming Formulation
PROGRAMMIN
G
Formulation
Linear Programming
Linear programming deals with optimization (max or
min) of linear functions subject to linear constraints.
• Constraints:
– Requirement of V: 2x1 + 4 x2 ≥ 60
– Requirement of W: 3x1 + 2 x2 ≥ 75
x-y=6 x’-x’’ –y = 6
x+2z ≥ 24 x’-x’’+2z’-2z’’ ≥ 24
z≤0,y≥0 x , y, z ≥ 0
3. There should be no equalities.
2x+y = 5 2x + y ≥ 5
2x + y ≤ 5
Max 3x+2y
Sub : x + y ≤ 7
2x-y ≤ 2
x,y≥0
Max 3x + 2y
Sub : s1 = 7-x-y x, y are non basic variables
s1 and s2 are basic variables
s2 = 2-2x - y
x,y≥0
• A company receives in sales Rs20/- per book and
Rs18/- per calculator.
• The cost per unit to manufacture each book and
calculator are Rs5/- and Rs4/- respectively.
• The monthly (30 days) manufacturing cost must
not exceed Rs27,000/- per month.
• If the manufacturing equipment used by the
company takes 5 minutes to produce a book and
15 minutes to produce a calculator, how many
books and calculators should the company make
to maximize profit?
* Linear Programming 27
B C Sales
5400 0 108000
0 2880 51840
4221 1473 110,934
Objective: S= 20B+18C
Profit=Sales-Cost=110934-27000=83934/-
* Linear Programming 28
Approaches to solve LPP
1. Graphical method
2. Simplex algorithm
3. Dual Simplex Method
4. Interior point method
Feasible Solution
Optimal solution
A bakery produces cookies , biscuits and bread. They sell each of
these at 6 , 5 , 4 respectively.
To bake each of the above they source flour , butter , sugar from the
market .
Cookies take 2 units flour, 1 unit butter and 2 units Sugar
Biscuits take 1unit flour, 2 units butter and 2 units Sugar
Bread takes 1 unit flour, 2units butter and 2 units Sugar.
Using Simplex algorithm find out the maximum profit the company can
make by selling the above items.
Niki holds two part-time jobs, Job I and Job II. She never
wants to work more than a total of 12 hours a week. She
has determined that for every hour she works at Job I, she
needs 2 hours of preparation time, and for every hour she
works at Job II, she needs one hour of preparation time,
and she cannot spend more than 16 hours for preparation.
If she makes $40 an hour at Job I, and $30 an hour at Job
II, how many hours should she work per week at each job
to maximize her income?
Solution: Z=400 , x1= 4 , x2=8