SlideShare a Scribd company logo
Linear Programming
Dr. Varun Kumar
Dr. Varun Kumar ( IIIT Surat) Linear Programming 1 / 15
Outlines
1 Fundamental of Operation Research
2 Introduction to Linear Programming
Problem Formulation
Generalized form of Linear Programming
Solution by Graphical Method
Dr. Varun Kumar ( IIIT Surat) Linear Programming 2 / 15
Introduction to operation research
Operation research
⇒ It is scientific approach for decision making.
⇒ It operates on a system under the condition requiring the allocation of
scarce resource.
⇒ Origin during world war II, when British military asked to scientists to
analyze the military problems.
⇒ Application of mathematics + Scientific approach → Operation
research
Dr. Varun Kumar ( IIIT Surat) Linear Programming 3 / 15
Fundamental of operation research
1 Linear Programming- Formulation
2 Linear Programming- Solutions
3 Duality and Sensitivity Analysis
4 Transportation Problem
5 Assignment Problem
6 Dynamic Programming
7 Deterministic Inventory Models
Dr. Varun Kumar ( IIIT Surat) Linear Programming 4 / 15
Introduction to Linear Programming
Programming problem flow chart
Linear Programming
⇒ Linear programming is a method to achieve the best outcome in a
mathematical model whose requirements are represented by linear
relationships.
⇒ Linear programming is a technique for the optimization of a linear
objective function, subject to linear equality and linear inequality
constraints.
Dr. Varun Kumar ( IIIT Surat) Linear Programming 5 / 15
Example 1: Maximization of the profit
Example 1
⇒ Consider a small manufacturer making two products A and B.
⇒ Two resources R1 and R2 are required for making these products.
⇒ Each unit of A required 1 unit of R1 and 3 unit of R2.
⇒ Each unit of B required 1 unit of R1 and 4 unit of R2.
⇒ Manufacturer has 20 units of R1 and 72 unit R2.
⇒ The manufacturer also makes a profit of
Rs 4 per unit of product A sold
Rs 5 per unit of product B sold
Dr. Varun Kumar ( IIIT Surat) Linear Programming 6 / 15
Problem formulation
⇒ Let manufacturer sold x1 unit of product A and x2 unit of product B.
⇒ Here objective function f (x1, x2) = Z is to maximize the profit.
⇒ As per the question
Rs 4 per unit of product A sold
Rs 5 per unit of product B sold
Hence, the aim of manufacturer is to maximize the profit, i.e
f (x1, x2) = Z = max{4x1 + 5x2}
Condition
x1 + x2 ≤ 20, 3x1 + 4x2 ≤ 72, x1 ≥ 0, x2 ≥ 0
Final formulated problem (maximization)
f (x1, x2) = Z = 4x1 + 5x2
s.t x1 + x2 ≤ 20, 3x1 + 4x2 ≤ 72, x1 ≥ 0, x2 ≥ 0
Dr. Varun Kumar ( IIIT Surat) Linear Programming 7 / 15
Terminology and essential condition
Terminology
⇒ Decision variable → x1 and x2 (As per above example)
⇒ Objective function → f (x1, x2) = Z (As per above example)
⇒ Constraints
Inequality → x1 + x2 ≤ 20, 3x1 + 4x2 ≤ 72 (As per above example)
Equality
Essential condition
⇒ Non-negative restriction
x1 ≥ 0, x2 ≥ 0
⇒ Objective function → f (x1, x2) and constraints both should be linear.
Dr. Varun Kumar ( IIIT Surat) Linear Programming 8 / 15
Example 2
Problem related to product manufacturing
⇒ A company makes a single product.
⇒ The estimated demand for product for next four months are 10000,
8800, 12000, 9000.
⇒ The company has regular time (RT) capacity of 8000 per month and
over-time (OT) capacity of 2000 per month.
⇒ The cost of RT is Rs 200 per unit and OT is Rs 250.
⇒ The company can carry inventory to the next month is Rs 30/unit.
⇒ The demand has to meet every month.
Dr. Varun Kumar ( IIIT Surat) Linear Programming 9 / 15
Problem formulation
⇒ Expected demand from 1st to 4th month → 10000, 8800, 12000,
9000.
⇒ Production cost/capacity:
Rs 200 → RT→ 8000/month
Rs 250 → OT→ 2000/month.
Inventory cost: Rs 30/unit/month
⇒ Decision variable:
Let Xj be the quantity produced in RT at jth
month.
Let Yj be the quantity produced in OT at jth
month.
Let Ij be the quantity carried at the end of month jth
.
⇒ Objective function
minimize
n
Z = 200
4
X
j=1
Xj + 250
4
X
j=1
Yj + 30
3
X
j=1
Ij
o
Dr. Varun Kumar ( IIIT Surat) Linear Programming 10 / 15
Continued–
⇒ Constraints
X1 + X2 = 10000 + I1 (For 1st
month)
I1 + X3 + X4 = 8800 + I2 (For 2nd
month)
I2 + X5 + X6 = 12000 + I3 (For 3rd
month)
I3 + X7 + X8 = 9000 (For 4th
month)
Xj ≤ 8000 ∀ j = {1, 2, 3, 4}
Yj ≤ 2000 ∀ j = {1, 2, 3, 4}
⇒ Non-negative restriction
Xj , Yj , Ij ≥ 0 ∀ j
Dr. Varun Kumar ( IIIT Surat) Linear Programming 11 / 15
Linear programming problem generalization
In general linear programming problem having n decision variable
x1, x2, ....., xn optimize the objective function. Ex- Let F is a linear
objective function. Mathematically,
F = W1x1 + W2x2 + ...... + Wnxn → Linear objective function
Linear equality/inequality constraints
C11x1 + C12x2 + ...... + C1nxn (≤ = ≥) b1
C21x1 + C22x2 + ...... + C2nxn (≤ = ≥) b2
.
.
.
Cm1x1 + Cm2x2 + ...... + Cmnxn (≤ = ≥) bm
and
x1, x2, ....., xn ≥ 0
In matrix form, above linear programming problem can be expressed
as
Dr. Varun Kumar ( IIIT Surat) Linear Programming 12 / 15
Continued–
Objective function
F = WT
x
Linearity equality/inequality constraints
Cx(≤ = ≥)b
⇒ W is weight vector of size n × 1.
⇒ C is matrix of size m × n
⇒ x is vector of size n × 1
⇒ b is a vector of size m × 1
Constraints on decision variable:
x 4 or < 0
⇒ 4 or < notation is used for the element-wise inequality.
⇒
Dr. Varun Kumar ( IIIT Surat) Linear Programming 13 / 15
Linear programming solution-
Graphical method
Q Formulated problem is as follow
f (x1, x2) = Z = 4x1 + 5x2
s.t x1 + x2 ≤ 20, 3x1 + 4x2 ≤ 72, x1 ≥ 0, x2 ≥ 0
Graphical method:
Dr. Varun Kumar ( IIIT Surat) Linear Programming 14 / 15
Dr. Varun Kumar ( IIIT Surat) Linear Programming 15 / 15

More Related Content

PPTX
Operations Research
PPTX
Mathematical formulation of lpp- properties and example
PPT
Mba i ot unit-1.1_linear programming
PPTX
Simplex method concept,
PPTX
Linear programming Cost Minimization
PPT
Introduction to Linear Programming
PPTX
Linear programming - Model formulation, Graphical Method
DOCX
Limitations of linear programming
Operations Research
Mathematical formulation of lpp- properties and example
Mba i ot unit-1.1_linear programming
Simplex method concept,
Linear programming Cost Minimization
Introduction to Linear Programming
Linear programming - Model formulation, Graphical Method
Limitations of linear programming

What's hot (19)

PPTX
Lenier Equation
PPTX
Linear Programming
PPT
Linear Programming 1
PPT
Linear programming
PDF
Linear programming class 12 investigatory project
PPTX
Linear Programming
PPTX
Linear programming
PDF
LP linear programming (summary) (5s)
PPTX
Linear programming manzoor nabi
PPTX
DECISION MAKING
PDF
linear programming
PPT
Linear programming
PDF
Mathematical linear programming notes
PPT
Tbs910 linear programming
PPTX
Chapter 3 linear programming
PDF
Numerical analysis m3 l2slides
PDF
Lecture27 linear programming
PPTX
Branch and Bound technique to solve Integer Linear Programming
PPTX
Unit 2 lpp tp
Lenier Equation
Linear Programming
Linear Programming 1
Linear programming
Linear programming class 12 investigatory project
Linear Programming
Linear programming
LP linear programming (summary) (5s)
Linear programming manzoor nabi
DECISION MAKING
linear programming
Linear programming
Mathematical linear programming notes
Tbs910 linear programming
Chapter 3 linear programming
Numerical analysis m3 l2slides
Lecture27 linear programming
Branch and Bound technique to solve Integer Linear Programming
Unit 2 lpp tp
Ad

Similar to Linear programming (20)

PDF
Ees 300
DOCX
Linear programming
PDF
Developing a Linear Programming Model - Comprehensive Homework Solution Bluep...
PDF
Lecture - Linear Programming.pdf
PDF
Chapter 2.Linear Programming.pdf
PDF
Linear programing
PPT
Vcs slides on or 2014
PPTX
chapter 2 revised.pptx
PPTX
linear programing is the model that can be
PPT
Introduction to linear programming
PPTX
introduction to Operation Research
PDF
Linear Models for Engineering applications
PPTX
Introduction to Linear programing.ORpptx
PPTX
Linear programming.pptx
PPTX
Quantitativetechniqueformanagerialdecisionlinearprogramming 090725035417-phpa...
PDF
1. intro. to or &amp; lp
PPTX
Linear Programming
PDF
Operation Research
PDF
PDF
An Introduction to Linear Programming Problem
Ees 300
Linear programming
Developing a Linear Programming Model - Comprehensive Homework Solution Bluep...
Lecture - Linear Programming.pdf
Chapter 2.Linear Programming.pdf
Linear programing
Vcs slides on or 2014
chapter 2 revised.pptx
linear programing is the model that can be
Introduction to linear programming
introduction to Operation Research
Linear Models for Engineering applications
Introduction to Linear programing.ORpptx
Linear programming.pptx
Quantitativetechniqueformanagerialdecisionlinearprogramming 090725035417-phpa...
1. intro. to or &amp; lp
Linear Programming
Operation Research
An Introduction to Linear Programming Problem
Ad

More from VARUN KUMAR (20)

PDF
Distributed rc Model
PDF
Electrical Wire Model
PDF
Interconnect Parameter in Digital VLSI Design
PDF
Introduction to Digital VLSI Design
PDF
Challenges of Massive MIMO System
PDF
E-democracy or Digital Democracy
PDF
Ethics of Parasitic Computing
PDF
Action Lines of Geneva Plan of Action
PDF
Geneva Plan of Action
PDF
Fair Use in the Electronic Age
PDF
Software as a Property
PDF
Orthogonal Polynomial
PDF
Patent Protection
PDF
Copyright Vs Patent and Trade Secrecy Law
PDF
Property Right and Software
PDF
Investigating Data Trials
PDF
Gaussian Numerical Integration
PDF
Censorship and Controversy
PDF
Romberg's Integration
PDF
Introduction to Censorship
Distributed rc Model
Electrical Wire Model
Interconnect Parameter in Digital VLSI Design
Introduction to Digital VLSI Design
Challenges of Massive MIMO System
E-democracy or Digital Democracy
Ethics of Parasitic Computing
Action Lines of Geneva Plan of Action
Geneva Plan of Action
Fair Use in the Electronic Age
Software as a Property
Orthogonal Polynomial
Patent Protection
Copyright Vs Patent and Trade Secrecy Law
Property Right and Software
Investigating Data Trials
Gaussian Numerical Integration
Censorship and Controversy
Romberg's Integration
Introduction to Censorship

Recently uploaded (20)

PPTX
OOP with Java - Java Introduction (Basics)
PPTX
KTU 2019 -S7-MCN 401 MODULE 2-VINAY.pptx
PPTX
Internet of Things (IOT) - A guide to understanding
PPTX
Foundation to blockchain - A guide to Blockchain Tech
PDF
The CXO Playbook 2025 – Future-Ready Strategies for C-Suite Leaders Cerebrai...
PPTX
MCN 401 KTU-2019-PPE KITS-MODULE 2.pptx
PPTX
CYBER-CRIMES AND SECURITY A guide to understanding
PPTX
FINAL REVIEW FOR COPD DIANOSIS FOR PULMONARY DISEASE.pptx
PDF
PRIZ Academy - 9 Windows Thinking Where to Invest Today to Win Tomorrow.pdf
PDF
TFEC-4-2020-Design-Guide-for-Timber-Roof-Trusses.pdf
PPTX
Sustainable Sites - Green Building Construction
PPTX
web development for engineering and engineering
PDF
Evaluating the Democratization of the Turkish Armed Forces from a Normative P...
PDF
SM_6th-Sem__Cse_Internet-of-Things.pdf IOT
DOCX
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx
PPTX
UNIT-1 - COAL BASED THERMAL POWER PLANTS
PPTX
additive manufacturing of ss316l using mig welding
PDF
PPT on Performance Review to get promotions
PPTX
Recipes for Real Time Voice AI WebRTC, SLMs and Open Source Software.pptx
PPT
CRASH COURSE IN ALTERNATIVE PLUMBING CLASS
OOP with Java - Java Introduction (Basics)
KTU 2019 -S7-MCN 401 MODULE 2-VINAY.pptx
Internet of Things (IOT) - A guide to understanding
Foundation to blockchain - A guide to Blockchain Tech
The CXO Playbook 2025 – Future-Ready Strategies for C-Suite Leaders Cerebrai...
MCN 401 KTU-2019-PPE KITS-MODULE 2.pptx
CYBER-CRIMES AND SECURITY A guide to understanding
FINAL REVIEW FOR COPD DIANOSIS FOR PULMONARY DISEASE.pptx
PRIZ Academy - 9 Windows Thinking Where to Invest Today to Win Tomorrow.pdf
TFEC-4-2020-Design-Guide-for-Timber-Roof-Trusses.pdf
Sustainable Sites - Green Building Construction
web development for engineering and engineering
Evaluating the Democratization of the Turkish Armed Forces from a Normative P...
SM_6th-Sem__Cse_Internet-of-Things.pdf IOT
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx
UNIT-1 - COAL BASED THERMAL POWER PLANTS
additive manufacturing of ss316l using mig welding
PPT on Performance Review to get promotions
Recipes for Real Time Voice AI WebRTC, SLMs and Open Source Software.pptx
CRASH COURSE IN ALTERNATIVE PLUMBING CLASS

Linear programming

  • 1. Linear Programming Dr. Varun Kumar Dr. Varun Kumar ( IIIT Surat) Linear Programming 1 / 15
  • 2. Outlines 1 Fundamental of Operation Research 2 Introduction to Linear Programming Problem Formulation Generalized form of Linear Programming Solution by Graphical Method Dr. Varun Kumar ( IIIT Surat) Linear Programming 2 / 15
  • 3. Introduction to operation research Operation research ⇒ It is scientific approach for decision making. ⇒ It operates on a system under the condition requiring the allocation of scarce resource. ⇒ Origin during world war II, when British military asked to scientists to analyze the military problems. ⇒ Application of mathematics + Scientific approach → Operation research Dr. Varun Kumar ( IIIT Surat) Linear Programming 3 / 15
  • 4. Fundamental of operation research 1 Linear Programming- Formulation 2 Linear Programming- Solutions 3 Duality and Sensitivity Analysis 4 Transportation Problem 5 Assignment Problem 6 Dynamic Programming 7 Deterministic Inventory Models Dr. Varun Kumar ( IIIT Surat) Linear Programming 4 / 15
  • 5. Introduction to Linear Programming Programming problem flow chart Linear Programming ⇒ Linear programming is a method to achieve the best outcome in a mathematical model whose requirements are represented by linear relationships. ⇒ Linear programming is a technique for the optimization of a linear objective function, subject to linear equality and linear inequality constraints. Dr. Varun Kumar ( IIIT Surat) Linear Programming 5 / 15
  • 6. Example 1: Maximization of the profit Example 1 ⇒ Consider a small manufacturer making two products A and B. ⇒ Two resources R1 and R2 are required for making these products. ⇒ Each unit of A required 1 unit of R1 and 3 unit of R2. ⇒ Each unit of B required 1 unit of R1 and 4 unit of R2. ⇒ Manufacturer has 20 units of R1 and 72 unit R2. ⇒ The manufacturer also makes a profit of Rs 4 per unit of product A sold Rs 5 per unit of product B sold Dr. Varun Kumar ( IIIT Surat) Linear Programming 6 / 15
  • 7. Problem formulation ⇒ Let manufacturer sold x1 unit of product A and x2 unit of product B. ⇒ Here objective function f (x1, x2) = Z is to maximize the profit. ⇒ As per the question Rs 4 per unit of product A sold Rs 5 per unit of product B sold Hence, the aim of manufacturer is to maximize the profit, i.e f (x1, x2) = Z = max{4x1 + 5x2} Condition x1 + x2 ≤ 20, 3x1 + 4x2 ≤ 72, x1 ≥ 0, x2 ≥ 0 Final formulated problem (maximization) f (x1, x2) = Z = 4x1 + 5x2 s.t x1 + x2 ≤ 20, 3x1 + 4x2 ≤ 72, x1 ≥ 0, x2 ≥ 0 Dr. Varun Kumar ( IIIT Surat) Linear Programming 7 / 15
  • 8. Terminology and essential condition Terminology ⇒ Decision variable → x1 and x2 (As per above example) ⇒ Objective function → f (x1, x2) = Z (As per above example) ⇒ Constraints Inequality → x1 + x2 ≤ 20, 3x1 + 4x2 ≤ 72 (As per above example) Equality Essential condition ⇒ Non-negative restriction x1 ≥ 0, x2 ≥ 0 ⇒ Objective function → f (x1, x2) and constraints both should be linear. Dr. Varun Kumar ( IIIT Surat) Linear Programming 8 / 15
  • 9. Example 2 Problem related to product manufacturing ⇒ A company makes a single product. ⇒ The estimated demand for product for next four months are 10000, 8800, 12000, 9000. ⇒ The company has regular time (RT) capacity of 8000 per month and over-time (OT) capacity of 2000 per month. ⇒ The cost of RT is Rs 200 per unit and OT is Rs 250. ⇒ The company can carry inventory to the next month is Rs 30/unit. ⇒ The demand has to meet every month. Dr. Varun Kumar ( IIIT Surat) Linear Programming 9 / 15
  • 10. Problem formulation ⇒ Expected demand from 1st to 4th month → 10000, 8800, 12000, 9000. ⇒ Production cost/capacity: Rs 200 → RT→ 8000/month Rs 250 → OT→ 2000/month. Inventory cost: Rs 30/unit/month ⇒ Decision variable: Let Xj be the quantity produced in RT at jth month. Let Yj be the quantity produced in OT at jth month. Let Ij be the quantity carried at the end of month jth . ⇒ Objective function minimize n Z = 200 4 X j=1 Xj + 250 4 X j=1 Yj + 30 3 X j=1 Ij o Dr. Varun Kumar ( IIIT Surat) Linear Programming 10 / 15
  • 11. Continued– ⇒ Constraints X1 + X2 = 10000 + I1 (For 1st month) I1 + X3 + X4 = 8800 + I2 (For 2nd month) I2 + X5 + X6 = 12000 + I3 (For 3rd month) I3 + X7 + X8 = 9000 (For 4th month) Xj ≤ 8000 ∀ j = {1, 2, 3, 4} Yj ≤ 2000 ∀ j = {1, 2, 3, 4} ⇒ Non-negative restriction Xj , Yj , Ij ≥ 0 ∀ j Dr. Varun Kumar ( IIIT Surat) Linear Programming 11 / 15
  • 12. Linear programming problem generalization In general linear programming problem having n decision variable x1, x2, ....., xn optimize the objective function. Ex- Let F is a linear objective function. Mathematically, F = W1x1 + W2x2 + ...... + Wnxn → Linear objective function Linear equality/inequality constraints C11x1 + C12x2 + ...... + C1nxn (≤ = ≥) b1 C21x1 + C22x2 + ...... + C2nxn (≤ = ≥) b2 . . . Cm1x1 + Cm2x2 + ...... + Cmnxn (≤ = ≥) bm and x1, x2, ....., xn ≥ 0 In matrix form, above linear programming problem can be expressed as Dr. Varun Kumar ( IIIT Surat) Linear Programming 12 / 15
  • 13. Continued– Objective function F = WT x Linearity equality/inequality constraints Cx(≤ = ≥)b ⇒ W is weight vector of size n × 1. ⇒ C is matrix of size m × n ⇒ x is vector of size n × 1 ⇒ b is a vector of size m × 1 Constraints on decision variable: x 4 or < 0 ⇒ 4 or < notation is used for the element-wise inequality. ⇒ Dr. Varun Kumar ( IIIT Surat) Linear Programming 13 / 15
  • 14. Linear programming solution- Graphical method Q Formulated problem is as follow f (x1, x2) = Z = 4x1 + 5x2 s.t x1 + x2 ≤ 20, 3x1 + 4x2 ≤ 72, x1 ≥ 0, x2 ≥ 0 Graphical method: Dr. Varun Kumar ( IIIT Surat) Linear Programming 14 / 15
  • 15. Dr. Varun Kumar ( IIIT Surat) Linear Programming 15 / 15