SlideShare a Scribd company logo
Presented To:
Dr. Col (Retd) Manjushree Kumar

Presented by:
Dr. Aadil
Krantee
Mrudul
Ratish
Contents
•
•
•
•
•
•
•
•
•

Introduction
History
Linear programming model formulation
Applications
Illustration (Diet problem)
Assignment problem
Assumptions of LP
Limitations of LP
Duality
2
Introduction
• Linear Programming is a mathematical modeling

technique used to determine a level of operational
activity in order to achieve an objective.
• Mathematical programming is used to find the best or
optimal solution to a problem that requires a decision or
set of decisions about how best to use a set of limited
resources to achieve a state goal of objectives.
3
History of linear programming
• It started in 1947 when G. B. Dantzig designed the

“simplex method” for solving linear programming
formulations of U.S. Air Force planning problems.
• It soon became clear that a surprisingly wide range of
apparently

unrelated

problems

in

production

management could be stated in linear programming
terms and solved by the simplex method.
4
LP Model Formulation
• Decision variables
– mathematical symbols representing levels of activity of an operation

• Objective function
– a linear relationship reflecting the objective of an operation
– most frequent objective of business firms is to maximize profit
– most frequent objective of individual operational units (such as a
production or packaging department) is to minimize cost

• Constraint
– a linear relationship representing a restriction on decision making

5
• Steps involved in mathematical programming
– Conversion of stated problem into a mathematical model that

abstracts all the essential elements of the problem.
– Exploration of different solutions of the problem.
– Find out the most suitable or optimum solution.

• Linear programming requires that all the mathematical
functions in the model be linear functions.

6
Applications
The Importance of Linear Programming
•
•
•
•
•
•
•

Hospital management
Diet management
Manufacturing
Finance (investment)
Advertising
Agriculture
Military

7
Some applications in Hospital management :
1) Incinerators and Pollution Control. (What is the most
economical way to make the necessary cutbacks? i.e. sulfur
dioxide emissions must be limited to 400,000 units per day
and particulate emissions to 50,000 units per day .)
2) Assignments to Hospitals .(draw up a disaster plan for
assigning casualties to hospitals in the event of a disaster.
How should the victims be assigned to minimize the total
time lost in transporting them?)
3) The Diet Problem. (e.g.. The problem is to supply the
required nutrients at minimum cost.)
4) The Transportation Problem (e.g..The problem is to meet the
hospital or patient requirements at minimum transportation
cost.)

8
5) The Activity Analysis Problem. ( e.g.. The problem is to
choose the intensities which the various activities are to be
operated to maximize the value of the output to the company
subject to the given resources.)

6) The Optimal Assignment Problem. ( e.g.. The problem is to
choose an assignment of persons to jobs to maximize the total
value.)
7) The Product Mix Problem (The company would like to
determine how many units of each product it should produce
so as to maximize overall profit given its limited resources.)
8) Design of radiation therapy. (e.g.. Radiation therapy beams
affects tissues. The goal of the design is to select the
combination of beams to be used and the intensity of each
one.)

9
Illustration 1. Diet problem
Question:







A dietician has to develop a special diet using two foods P
and Q.
Each packet (containing 30 g) of food P contains 12 units of
calcium, 4 units of iron, 6 units of cholesterol and 6 units of
vitamin A.
Each packet of the same quantity of food Q contains 3 units
of calcium, 20 units of iron, 4 units of cholesterol and 3 units
of vitamin A.
The diet requires at least 240 units of calcium, at least 460
units of iron and at most 300 units of cholesterol.
How many packets of each food should be used to minimize
the amount of vitamin A in the diet? What is the minimum
amount of vitamin A?
10
Solution:
Let x and y be the number of packets of food P and Q respectively.
Obviously x ≥ 0, y ≥ 0. Mathematical formulation of the given problem
is as follows:
Minimize Z = 6x + 3y (vitamin A) subject to the constraints
12x + 3y ≥ 240 (constraint on calcium), i.e. 4x + y ≥ 80

... (1)

4x + 20y ≥ 460 (constraint on iron.), i.e. x + 5y ≥ 115

... (2)

6x + 4y ≤ 300 (constraint on cholestérol), i.e. 3x + 2y ≤ 150

... (3)

x ≥ 0, y ≥ 0

... (4)
11
• Let us graph the inequalities (1) to
(4).The feasible region (shaded)
determined by the constraints (1) to (4)
is shown in the figure.
• The coordinates of the corner points L,
M and N are (2, 72), (15, 20) and (40,
15) respectively. Let us evaluate Z at
these points:

• From the table, we find that Z is
minimum at the point (15, 20). Hence,
the amount of vitamin A under the
constraints given in the problem will be
minimum, if 15 packets of food P and
20 packets of food Q are used in the
special diet. The minimum amount of
vitamin A will be 150 units.
12
Assignment problem
• The assignment problem refers to the class of
linear programming problems that involve
determining the most efficient assignment of
assignees to perform tasks.
 people to projects
 salespeople to territories
 contracts to bidders
 jobs to machines, etc.
• The objective is most often to minimize total
costs or total time of performing the tasks at hand.
13
• To fit the definition of an assignment problem, these
kinds of applications need to be formulated in a way
that satisfies the following assumptions.
1.The number of assignees and the number of tasks are
the same. (This number is denoted by n.)
2.Each assignee is to be assigned to exactly one task.
3.Each task is to be performed by exactly one assignee.
4.There is a cost cij associated with assignee i (i1, 2,...,n)
performing task j (j1, 2, . . . ,n).
5.The objective is to determine how all assignments
should be made to minimize the total cost.
14
Assignment problem solving
methods
1.
2.
3.
4.

Hungarian Method
Enumeration method
Simplex method
Transportation

15
AP (Hungarian method)
Question:
We must determine how jobs should be assigned to
machines to minimize setup times, which are given below:
Job 1

Job 2

Job 3

Job 4

Machine 1

14

5

8

7

Machine 2

2

12

6

5

Machine 3

7

8

3

9

Machine 4

2

4

6

10

16
• Step 1: (a) Find the minimum element in
each row of the cost matrix. Form a new
matrix by subtracting this cost from each
row. (b) Find the minimum cost in each
column of the new matrix, and subtract this
from each column. This is the reduced cost
matrix.

17
Step 1(a)
Job 1

Job 2

Job 3

Job 4

Machine 1

14

5

8

7

Machine 2

2

12

6

5

Machine 3

7

8

3

9

Machine 4

2

4

6

10

Job 1

Job 3

Job 4

Machine 1

Row Reduction

Job 2

9

0

3

2

Machine 2

0

10

4

3

Machine 3

4

5

0

6

Machine 4

0

2

4

8
18
Step 1(b)
Job 1

Job 2

Job 3

Job 4

Machine 1

9

0

3

2

Machine 2

0

10

4

3

Machine 3

4

5

0

6

Machine 4

0

2

4

8

Job 1

Job 2

Job 3

Job 4

Machine 1

9

0

3

0

Machine 2

0

10

4

1

Machine 3

4

5

0

4

Machine 4

0

2

4

6

Column Reduction

19
Step 2
Draw the minimum number of lines that are needed to
cover all the zeros in the reduced cost matrix. If m lines are
required, then an optimal solution is available among the
covered zeros in the matrix. Otherwise, continue to Step 3.
Job 1

Job 2

Job 3

Job 4

Machine 1

9

0

3

0

Machine 2

0

10

4

1

Machine 3

4

5

0

4

Machine 4

0

2

4

6

20
Step 3
Find the smallest nonzero element (say, k)
in the reduced cost matrix that is uncovered
by the lines. Subtract k from each
uncovered element, and add k to each
element that is covered by two lines. Return
to Step 2.

21
Step 4
Job 1

Job 2

Job 3

Job 4

Machine 1

9

0

3

0

Machine 2

0

10

4

1

Machine 3

4

5

0

4

Machine 4

0

2

4

6

Job 1

Job 2

Job 3

Job 4

Machine 1

10

0

3

0

Machine 2

0

9

3

0

Machine 3

5

5

0

4

Machine 4

0

1

3

5
22
Job 1

Job 2

Job 3

Job 4

Machine 1

10

0

3

0

Machine 2

0

9

3

0

Machine 3

5

5

0

4

Machine 4

0

1

3

5

23
Assumptions of LP
1. Certainty:


numbers in the objective and constraints are known with
certainty and do not change during the period being
studied

2. Proportionality:



exists in the objective and constraints
constancy between production increases and resource
utilization

3. Additivity:


the total of all activities equals the sum of the individual
activities
24
Assumptions of LP cont…
4. Divisibility:



solutions need not be in whole numbers (integers)
solutions are divisible, and may take any fractional
value

5. Non-negativity:



all answers or variables are greater than or equal to (≥)
zero
negative values of physical quantities are impossible

25
Limitations of LP
•It treats all relationships among decision variables as linear.
•There is no guarantee that we will get integer value
solutions. e.g. 2.5 machines
•LP does not take into consideration the effect of time &
uncertainty.
•In LP parameters are assumed to be constant ; but in real life
situations majority of the times they are neither known nor
constant.
•LP deals with only single objective whereas in real life
conflicting situations may have to be solved.
26
Duality in LP
•In context of LP, duality means each LP problem can be
analyzed in two different ways.
•LP problem can be stated in another equivalent problem based
on the same data and new problem will be called as DUAL.
•The main focus of a dual problem is to find best marginal
value for each resource; also known as Shadow Prize.
•The shadow prize is also defined as change in optimal
objective function value with respect to unit change in
availability of resource.

27
28
REFERENCES
•
•
•
•
•

www.math.ucla.edu/~tom/LP.pdf
www.sce.carleton.ca/faculty/chinneck/po/Chapter2.
www.markschulze.net/LinearProgramming.pdf
web.ntpu.edu.tw/~juang/ms/Ch02.
cmp.felk.cvut.cz/~hlavac/Public/.../Linear%20Progra
mming-1.ppt
• www.slideshare.net/

29
Questions/
Queries?

30
31

More Related Content

What's hot

Transportation model
Transportation modelTransportation model
Transportation model
shakila haque
 
Operational research
Operational researchOperational research
Operational research
Dr Ramniwas
 
Transportation Problem In Linear Programming
Transportation Problem In Linear ProgrammingTransportation Problem In Linear Programming
Transportation Problem In Linear Programming
Mirza Tanzida
 
Assignment Problem
Assignment ProblemAssignment Problem
Assignment Problem
Nakul Bhardwaj
 
LINEAR PROGRAMMING PROBLEMS.pptx
LINEAR PROGRAMMING PROBLEMS.pptxLINEAR PROGRAMMING PROBLEMS.pptx
LINEAR PROGRAMMING PROBLEMS.pptx
cidiorapalpha
 
LINEAR PROGRAMMING
LINEAR PROGRAMMINGLINEAR PROGRAMMING
LINEAR PROGRAMMING
rashi9
 
Linear programming problem
Linear programming problemLinear programming problem
Linear programming problem
makeitsimple007
 
Introduction to Operations Research
Introduction to Operations ResearchIntroduction to Operations Research
Introduction to Operations Research
Victor Seelan
 
Queuing theory
Queuing theoryQueuing theory
Queuing theory
Bikash Kumar
 
QUEUING THEORY
QUEUING THEORYQUEUING THEORY
QUEUING THEORY
avtarsingh
 
Transportation problem
Transportation problemTransportation problem
Transportation problem
Dr. Abdulfatah Salem
 
Linear Programming
Linear ProgrammingLinear Programming
Linear Programming
Pulchowk Campus
 
Operations research-an-introduction
Operations research-an-introductionOperations research-an-introduction
Operations research-an-introduction
Manoj Bhambu
 
Linear programming
Linear programmingLinear programming
Linear programming
Karnav Rana
 
Unit.2. linear programming
Unit.2. linear programmingUnit.2. linear programming
Unit.2. linear programming
DagnaygebawGoshme
 
Queuing theory
Queuing theoryQueuing theory
Queuing theory
Abu Bashar
 
Operations Research
Operations ResearchOperations Research
Operations Research
Ahana Ahu
 
OPERATION RESEARCH Simulation
OPERATION RESEARCH SimulationOPERATION RESEARCH Simulation
OPERATION RESEARCH Simulation
Komal Hambir
 
Applications of linear programming
Applications of linear programmingApplications of linear programming
Applications of linear programming
Zenblade 93
 
Operational research on Assignment ppt
Operational research on Assignment pptOperational research on Assignment ppt
Operational research on Assignment ppt
Nirali Solanki
 

What's hot (20)

Transportation model
Transportation modelTransportation model
Transportation model
 
Operational research
Operational researchOperational research
Operational research
 
Transportation Problem In Linear Programming
Transportation Problem In Linear ProgrammingTransportation Problem In Linear Programming
Transportation Problem In Linear Programming
 
Assignment Problem
Assignment ProblemAssignment Problem
Assignment Problem
 
LINEAR PROGRAMMING PROBLEMS.pptx
LINEAR PROGRAMMING PROBLEMS.pptxLINEAR PROGRAMMING PROBLEMS.pptx
LINEAR PROGRAMMING PROBLEMS.pptx
 
LINEAR PROGRAMMING
LINEAR PROGRAMMINGLINEAR PROGRAMMING
LINEAR PROGRAMMING
 
Linear programming problem
Linear programming problemLinear programming problem
Linear programming problem
 
Introduction to Operations Research
Introduction to Operations ResearchIntroduction to Operations Research
Introduction to Operations Research
 
Queuing theory
Queuing theoryQueuing theory
Queuing theory
 
QUEUING THEORY
QUEUING THEORYQUEUING THEORY
QUEUING THEORY
 
Transportation problem
Transportation problemTransportation problem
Transportation problem
 
Linear Programming
Linear ProgrammingLinear Programming
Linear Programming
 
Operations research-an-introduction
Operations research-an-introductionOperations research-an-introduction
Operations research-an-introduction
 
Linear programming
Linear programmingLinear programming
Linear programming
 
Unit.2. linear programming
Unit.2. linear programmingUnit.2. linear programming
Unit.2. linear programming
 
Queuing theory
Queuing theoryQueuing theory
Queuing theory
 
Operations Research
Operations ResearchOperations Research
Operations Research
 
OPERATION RESEARCH Simulation
OPERATION RESEARCH SimulationOPERATION RESEARCH Simulation
OPERATION RESEARCH Simulation
 
Applications of linear programming
Applications of linear programmingApplications of linear programming
Applications of linear programming
 
Operational research on Assignment ppt
Operational research on Assignment pptOperational research on Assignment ppt
Operational research on Assignment ppt
 

Similar to Linear programming

Mb0048 operations research
Mb0048  operations researchMb0048  operations research
Mb0048 operations research
smumbahelp
 
Mb0048 operations research
Mb0048  operations researchMb0048  operations research
Mb0048 operations research
smumbahelp
 
Vcs slides on or 2014
Vcs slides on or 2014Vcs slides on or 2014
Vcs slides on or 2014
Shakti Ranjan
 
chapter 2 revised.pptx
chapter 2 revised.pptxchapter 2 revised.pptx
chapter 2 revised.pptx
DejeneDay
 
chapter 2 revised.pptx
chapter 2 revised.pptxchapter 2 revised.pptx
chapter 2 revised.pptx
DejeneDay
 
linearprogramingproblemlpp-180729145239.pptx
linearprogramingproblemlpp-180729145239.pptxlinearprogramingproblemlpp-180729145239.pptx
linearprogramingproblemlpp-180729145239.pptx
KOUSHIkPIPPLE
 
chapter 2 revised.pptx
chapter 2 revised.pptxchapter 2 revised.pptx
chapter 2 revised.pptx
DejeneDay
 
Mb0048 operations research
Mb0048  operations researchMb0048  operations research
Mb0048 operations research
smumbahelp
 
LPP FORMULATION 21 -22.pptx
LPP FORMULATION  21 -22.pptxLPP FORMULATION  21 -22.pptx
LPP FORMULATION 21 -22.pptx
kiran513883
 
UNIT-2 Quantitaitive Anlaysis for Mgt Decisions.pptx
UNIT-2 Quantitaitive Anlaysis for Mgt Decisions.pptxUNIT-2 Quantitaitive Anlaysis for Mgt Decisions.pptx
UNIT-2 Quantitaitive Anlaysis for Mgt Decisions.pptx
MinilikDerseh1
 
Mb0048 operations research
Mb0048  operations researchMb0048  operations research
Mb0048 operations research
smumbahelp
 
Mb0048 operations research
Mb0048  operations researchMb0048  operations research
Mb0048 operations research
smumbahelp
 
Mb0048 operations research
Mb0048 operations researchMb0048 operations research
Mb0048 operations research
consult4solutions
 
QA CHAPTER II.pptx
QA CHAPTER II.pptxQA CHAPTER II.pptx
QA CHAPTER II.pptx
Teshome48
 
Mb0048 operations research
Mb0048  operations researchMb0048  operations research
Mb0048 operations research
smumbahelp
 
Mb0048 operations research
Mb0048  operations researchMb0048  operations research
Mb0048 operations research
smumbahelp
 
Mb0048 operations research
Mb0048  operations researchMb0048  operations research
Mb0048 operations research
smumbahelp
 
Mb0048 operations research
Mb0048  operations researchMb0048  operations research
Mb0048 operations research
smumbahelp
 
04-Unit Four - OR.pptx
04-Unit Four - OR.pptx04-Unit Four - OR.pptx
04-Unit Four - OR.pptx
AbdiMuceeTube
 
linear programming
linear programming linear programming
linear programming
DagnaygebawGoshme
 

Similar to Linear programming (20)

Mb0048 operations research
Mb0048  operations researchMb0048  operations research
Mb0048 operations research
 
Mb0048 operations research
Mb0048  operations researchMb0048  operations research
Mb0048 operations research
 
Vcs slides on or 2014
Vcs slides on or 2014Vcs slides on or 2014
Vcs slides on or 2014
 
chapter 2 revised.pptx
chapter 2 revised.pptxchapter 2 revised.pptx
chapter 2 revised.pptx
 
chapter 2 revised.pptx
chapter 2 revised.pptxchapter 2 revised.pptx
chapter 2 revised.pptx
 
linearprogramingproblemlpp-180729145239.pptx
linearprogramingproblemlpp-180729145239.pptxlinearprogramingproblemlpp-180729145239.pptx
linearprogramingproblemlpp-180729145239.pptx
 
chapter 2 revised.pptx
chapter 2 revised.pptxchapter 2 revised.pptx
chapter 2 revised.pptx
 
Mb0048 operations research
Mb0048  operations researchMb0048  operations research
Mb0048 operations research
 
LPP FORMULATION 21 -22.pptx
LPP FORMULATION  21 -22.pptxLPP FORMULATION  21 -22.pptx
LPP FORMULATION 21 -22.pptx
 
UNIT-2 Quantitaitive Anlaysis for Mgt Decisions.pptx
UNIT-2 Quantitaitive Anlaysis for Mgt Decisions.pptxUNIT-2 Quantitaitive Anlaysis for Mgt Decisions.pptx
UNIT-2 Quantitaitive Anlaysis for Mgt Decisions.pptx
 
Mb0048 operations research
Mb0048  operations researchMb0048  operations research
Mb0048 operations research
 
Mb0048 operations research
Mb0048  operations researchMb0048  operations research
Mb0048 operations research
 
Mb0048 operations research
Mb0048 operations researchMb0048 operations research
Mb0048 operations research
 
QA CHAPTER II.pptx
QA CHAPTER II.pptxQA CHAPTER II.pptx
QA CHAPTER II.pptx
 
Mb0048 operations research
Mb0048  operations researchMb0048  operations research
Mb0048 operations research
 
Mb0048 operations research
Mb0048  operations researchMb0048  operations research
Mb0048 operations research
 
Mb0048 operations research
Mb0048  operations researchMb0048  operations research
Mb0048 operations research
 
Mb0048 operations research
Mb0048  operations researchMb0048  operations research
Mb0048 operations research
 
04-Unit Four - OR.pptx
04-Unit Four - OR.pptx04-Unit Four - OR.pptx
04-Unit Four - OR.pptx
 
linear programming
linear programming linear programming
linear programming
 

Recently uploaded

Full-RAG: A modern architecture for hyper-personalization
Full-RAG: A modern architecture for hyper-personalizationFull-RAG: A modern architecture for hyper-personalization
Full-RAG: A modern architecture for hyper-personalization
Zilliz
 
UiPath Test Automation using UiPath Test Suite series, part 6
UiPath Test Automation using UiPath Test Suite series, part 6UiPath Test Automation using UiPath Test Suite series, part 6
UiPath Test Automation using UiPath Test Suite series, part 6
DianaGray10
 
CAKE: Sharing Slices of Confidential Data on Blockchain
CAKE: Sharing Slices of Confidential Data on BlockchainCAKE: Sharing Slices of Confidential Data on Blockchain
CAKE: Sharing Slices of Confidential Data on Blockchain
Claudio Di Ciccio
 
Serial Arm Control in Real Time Presentation
Serial Arm Control in Real Time PresentationSerial Arm Control in Real Time Presentation
Serial Arm Control in Real Time Presentation
tolgahangng
 
Fueling AI with Great Data with Airbyte Webinar
Fueling AI with Great Data with Airbyte WebinarFueling AI with Great Data with Airbyte Webinar
Fueling AI with Great Data with Airbyte Webinar
Zilliz
 
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdfUnlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
Malak Abu Hammad
 
Essentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FMEEssentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FME
Safe Software
 
Uni Systems Copilot event_05062024_C.Vlachos.pdf
Uni Systems Copilot event_05062024_C.Vlachos.pdfUni Systems Copilot event_05062024_C.Vlachos.pdf
Uni Systems Copilot event_05062024_C.Vlachos.pdf
Uni Systems S.M.S.A.
 
Programming Foundation Models with DSPy - Meetup Slides
Programming Foundation Models with DSPy - Meetup SlidesProgramming Foundation Models with DSPy - Meetup Slides
Programming Foundation Models with DSPy - Meetup Slides
Zilliz
 
Climate Impact of Software Testing at Nordic Testing Days
Climate Impact of Software Testing at Nordic Testing DaysClimate Impact of Software Testing at Nordic Testing Days
Climate Impact of Software Testing at Nordic Testing Days
Kari Kakkonen
 
20240607 QFM018 Elixir Reading List May 2024
20240607 QFM018 Elixir Reading List May 202420240607 QFM018 Elixir Reading List May 2024
20240607 QFM018 Elixir Reading List May 2024
Matthew Sinclair
 
UI5 Controls simplified - UI5con2024 presentation
UI5 Controls simplified - UI5con2024 presentationUI5 Controls simplified - UI5con2024 presentation
UI5 Controls simplified - UI5con2024 presentation
Wouter Lemaire
 
Removing Uninteresting Bytes in Software Fuzzing
Removing Uninteresting Bytes in Software FuzzingRemoving Uninteresting Bytes in Software Fuzzing
Removing Uninteresting Bytes in Software Fuzzing
Aftab Hussain
 
How to Get CNIC Information System with Paksim Ga.pptx
How to Get CNIC Information System with Paksim Ga.pptxHow to Get CNIC Information System with Paksim Ga.pptx
How to Get CNIC Information System with Paksim Ga.pptx
danishmna97
 
Monitoring and Managing Anomaly Detection on OpenShift.pdf
Monitoring and Managing Anomaly Detection on OpenShift.pdfMonitoring and Managing Anomaly Detection on OpenShift.pdf
Monitoring and Managing Anomaly Detection on OpenShift.pdf
Tosin Akinosho
 
20240605 QFM017 Machine Intelligence Reading List May 2024
20240605 QFM017 Machine Intelligence Reading List May 202420240605 QFM017 Machine Intelligence Reading List May 2024
20240605 QFM017 Machine Intelligence Reading List May 2024
Matthew Sinclair
 
Building Production Ready Search Pipelines with Spark and Milvus
Building Production Ready Search Pipelines with Spark and MilvusBuilding Production Ready Search Pipelines with Spark and Milvus
Building Production Ready Search Pipelines with Spark and Milvus
Zilliz
 
Ocean lotus Threat actors project by John Sitima 2024 (1).pptx
Ocean lotus Threat actors project by John Sitima 2024 (1).pptxOcean lotus Threat actors project by John Sitima 2024 (1).pptx
Ocean lotus Threat actors project by John Sitima 2024 (1).pptx
SitimaJohn
 
GenAI Pilot Implementation in the organizations
GenAI Pilot Implementation in the organizationsGenAI Pilot Implementation in the organizations
GenAI Pilot Implementation in the organizations
kumardaparthi1024
 
20240609 QFM020 Irresponsible AI Reading List May 2024
20240609 QFM020 Irresponsible AI Reading List May 202420240609 QFM020 Irresponsible AI Reading List May 2024
20240609 QFM020 Irresponsible AI Reading List May 2024
Matthew Sinclair
 

Recently uploaded (20)

Full-RAG: A modern architecture for hyper-personalization
Full-RAG: A modern architecture for hyper-personalizationFull-RAG: A modern architecture for hyper-personalization
Full-RAG: A modern architecture for hyper-personalization
 
UiPath Test Automation using UiPath Test Suite series, part 6
UiPath Test Automation using UiPath Test Suite series, part 6UiPath Test Automation using UiPath Test Suite series, part 6
UiPath Test Automation using UiPath Test Suite series, part 6
 
CAKE: Sharing Slices of Confidential Data on Blockchain
CAKE: Sharing Slices of Confidential Data on BlockchainCAKE: Sharing Slices of Confidential Data on Blockchain
CAKE: Sharing Slices of Confidential Data on Blockchain
 
Serial Arm Control in Real Time Presentation
Serial Arm Control in Real Time PresentationSerial Arm Control in Real Time Presentation
Serial Arm Control in Real Time Presentation
 
Fueling AI with Great Data with Airbyte Webinar
Fueling AI with Great Data with Airbyte WebinarFueling AI with Great Data with Airbyte Webinar
Fueling AI with Great Data with Airbyte Webinar
 
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdfUnlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
 
Essentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FMEEssentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FME
 
Uni Systems Copilot event_05062024_C.Vlachos.pdf
Uni Systems Copilot event_05062024_C.Vlachos.pdfUni Systems Copilot event_05062024_C.Vlachos.pdf
Uni Systems Copilot event_05062024_C.Vlachos.pdf
 
Programming Foundation Models with DSPy - Meetup Slides
Programming Foundation Models with DSPy - Meetup SlidesProgramming Foundation Models with DSPy - Meetup Slides
Programming Foundation Models with DSPy - Meetup Slides
 
Climate Impact of Software Testing at Nordic Testing Days
Climate Impact of Software Testing at Nordic Testing DaysClimate Impact of Software Testing at Nordic Testing Days
Climate Impact of Software Testing at Nordic Testing Days
 
20240607 QFM018 Elixir Reading List May 2024
20240607 QFM018 Elixir Reading List May 202420240607 QFM018 Elixir Reading List May 2024
20240607 QFM018 Elixir Reading List May 2024
 
UI5 Controls simplified - UI5con2024 presentation
UI5 Controls simplified - UI5con2024 presentationUI5 Controls simplified - UI5con2024 presentation
UI5 Controls simplified - UI5con2024 presentation
 
Removing Uninteresting Bytes in Software Fuzzing
Removing Uninteresting Bytes in Software FuzzingRemoving Uninteresting Bytes in Software Fuzzing
Removing Uninteresting Bytes in Software Fuzzing
 
How to Get CNIC Information System with Paksim Ga.pptx
How to Get CNIC Information System with Paksim Ga.pptxHow to Get CNIC Information System with Paksim Ga.pptx
How to Get CNIC Information System with Paksim Ga.pptx
 
Monitoring and Managing Anomaly Detection on OpenShift.pdf
Monitoring and Managing Anomaly Detection on OpenShift.pdfMonitoring and Managing Anomaly Detection on OpenShift.pdf
Monitoring and Managing Anomaly Detection on OpenShift.pdf
 
20240605 QFM017 Machine Intelligence Reading List May 2024
20240605 QFM017 Machine Intelligence Reading List May 202420240605 QFM017 Machine Intelligence Reading List May 2024
20240605 QFM017 Machine Intelligence Reading List May 2024
 
Building Production Ready Search Pipelines with Spark and Milvus
Building Production Ready Search Pipelines with Spark and MilvusBuilding Production Ready Search Pipelines with Spark and Milvus
Building Production Ready Search Pipelines with Spark and Milvus
 
Ocean lotus Threat actors project by John Sitima 2024 (1).pptx
Ocean lotus Threat actors project by John Sitima 2024 (1).pptxOcean lotus Threat actors project by John Sitima 2024 (1).pptx
Ocean lotus Threat actors project by John Sitima 2024 (1).pptx
 
GenAI Pilot Implementation in the organizations
GenAI Pilot Implementation in the organizationsGenAI Pilot Implementation in the organizations
GenAI Pilot Implementation in the organizations
 
20240609 QFM020 Irresponsible AI Reading List May 2024
20240609 QFM020 Irresponsible AI Reading List May 202420240609 QFM020 Irresponsible AI Reading List May 2024
20240609 QFM020 Irresponsible AI Reading List May 2024
 

Linear programming

  • 1. Presented To: Dr. Col (Retd) Manjushree Kumar Presented by: Dr. Aadil Krantee Mrudul Ratish
  • 2. Contents • • • • • • • • • Introduction History Linear programming model formulation Applications Illustration (Diet problem) Assignment problem Assumptions of LP Limitations of LP Duality 2
  • 3. Introduction • Linear Programming is a mathematical modeling technique used to determine a level of operational activity in order to achieve an objective. • Mathematical programming is used to find the best or optimal solution to a problem that requires a decision or set of decisions about how best to use a set of limited resources to achieve a state goal of objectives. 3
  • 4. History of linear programming • It started in 1947 when G. B. Dantzig designed the “simplex method” for solving linear programming formulations of U.S. Air Force planning problems. • It soon became clear that a surprisingly wide range of apparently unrelated problems in production management could be stated in linear programming terms and solved by the simplex method. 4
  • 5. LP Model Formulation • Decision variables – mathematical symbols representing levels of activity of an operation • Objective function – a linear relationship reflecting the objective of an operation – most frequent objective of business firms is to maximize profit – most frequent objective of individual operational units (such as a production or packaging department) is to minimize cost • Constraint – a linear relationship representing a restriction on decision making 5
  • 6. • Steps involved in mathematical programming – Conversion of stated problem into a mathematical model that abstracts all the essential elements of the problem. – Exploration of different solutions of the problem. – Find out the most suitable or optimum solution. • Linear programming requires that all the mathematical functions in the model be linear functions. 6
  • 7. Applications The Importance of Linear Programming • • • • • • • Hospital management Diet management Manufacturing Finance (investment) Advertising Agriculture Military 7
  • 8. Some applications in Hospital management : 1) Incinerators and Pollution Control. (What is the most economical way to make the necessary cutbacks? i.e. sulfur dioxide emissions must be limited to 400,000 units per day and particulate emissions to 50,000 units per day .) 2) Assignments to Hospitals .(draw up a disaster plan for assigning casualties to hospitals in the event of a disaster. How should the victims be assigned to minimize the total time lost in transporting them?) 3) The Diet Problem. (e.g.. The problem is to supply the required nutrients at minimum cost.) 4) The Transportation Problem (e.g..The problem is to meet the hospital or patient requirements at minimum transportation cost.) 8
  • 9. 5) The Activity Analysis Problem. ( e.g.. The problem is to choose the intensities which the various activities are to be operated to maximize the value of the output to the company subject to the given resources.) 6) The Optimal Assignment Problem. ( e.g.. The problem is to choose an assignment of persons to jobs to maximize the total value.) 7) The Product Mix Problem (The company would like to determine how many units of each product it should produce so as to maximize overall profit given its limited resources.) 8) Design of radiation therapy. (e.g.. Radiation therapy beams affects tissues. The goal of the design is to select the combination of beams to be used and the intensity of each one.) 9
  • 10. Illustration 1. Diet problem Question:      A dietician has to develop a special diet using two foods P and Q. Each packet (containing 30 g) of food P contains 12 units of calcium, 4 units of iron, 6 units of cholesterol and 6 units of vitamin A. Each packet of the same quantity of food Q contains 3 units of calcium, 20 units of iron, 4 units of cholesterol and 3 units of vitamin A. The diet requires at least 240 units of calcium, at least 460 units of iron and at most 300 units of cholesterol. How many packets of each food should be used to minimize the amount of vitamin A in the diet? What is the minimum amount of vitamin A? 10
  • 11. Solution: Let x and y be the number of packets of food P and Q respectively. Obviously x ≥ 0, y ≥ 0. Mathematical formulation of the given problem is as follows: Minimize Z = 6x + 3y (vitamin A) subject to the constraints 12x + 3y ≥ 240 (constraint on calcium), i.e. 4x + y ≥ 80 ... (1) 4x + 20y ≥ 460 (constraint on iron.), i.e. x + 5y ≥ 115 ... (2) 6x + 4y ≤ 300 (constraint on cholestérol), i.e. 3x + 2y ≤ 150 ... (3) x ≥ 0, y ≥ 0 ... (4) 11
  • 12. • Let us graph the inequalities (1) to (4).The feasible region (shaded) determined by the constraints (1) to (4) is shown in the figure. • The coordinates of the corner points L, M and N are (2, 72), (15, 20) and (40, 15) respectively. Let us evaluate Z at these points: • From the table, we find that Z is minimum at the point (15, 20). Hence, the amount of vitamin A under the constraints given in the problem will be minimum, if 15 packets of food P and 20 packets of food Q are used in the special diet. The minimum amount of vitamin A will be 150 units. 12
  • 13. Assignment problem • The assignment problem refers to the class of linear programming problems that involve determining the most efficient assignment of assignees to perform tasks.  people to projects  salespeople to territories  contracts to bidders  jobs to machines, etc. • The objective is most often to minimize total costs or total time of performing the tasks at hand. 13
  • 14. • To fit the definition of an assignment problem, these kinds of applications need to be formulated in a way that satisfies the following assumptions. 1.The number of assignees and the number of tasks are the same. (This number is denoted by n.) 2.Each assignee is to be assigned to exactly one task. 3.Each task is to be performed by exactly one assignee. 4.There is a cost cij associated with assignee i (i1, 2,...,n) performing task j (j1, 2, . . . ,n). 5.The objective is to determine how all assignments should be made to minimize the total cost. 14
  • 15. Assignment problem solving methods 1. 2. 3. 4. Hungarian Method Enumeration method Simplex method Transportation 15
  • 16. AP (Hungarian method) Question: We must determine how jobs should be assigned to machines to minimize setup times, which are given below: Job 1 Job 2 Job 3 Job 4 Machine 1 14 5 8 7 Machine 2 2 12 6 5 Machine 3 7 8 3 9 Machine 4 2 4 6 10 16
  • 17. • Step 1: (a) Find the minimum element in each row of the cost matrix. Form a new matrix by subtracting this cost from each row. (b) Find the minimum cost in each column of the new matrix, and subtract this from each column. This is the reduced cost matrix. 17
  • 18. Step 1(a) Job 1 Job 2 Job 3 Job 4 Machine 1 14 5 8 7 Machine 2 2 12 6 5 Machine 3 7 8 3 9 Machine 4 2 4 6 10 Job 1 Job 3 Job 4 Machine 1 Row Reduction Job 2 9 0 3 2 Machine 2 0 10 4 3 Machine 3 4 5 0 6 Machine 4 0 2 4 8 18
  • 19. Step 1(b) Job 1 Job 2 Job 3 Job 4 Machine 1 9 0 3 2 Machine 2 0 10 4 3 Machine 3 4 5 0 6 Machine 4 0 2 4 8 Job 1 Job 2 Job 3 Job 4 Machine 1 9 0 3 0 Machine 2 0 10 4 1 Machine 3 4 5 0 4 Machine 4 0 2 4 6 Column Reduction 19
  • 20. Step 2 Draw the minimum number of lines that are needed to cover all the zeros in the reduced cost matrix. If m lines are required, then an optimal solution is available among the covered zeros in the matrix. Otherwise, continue to Step 3. Job 1 Job 2 Job 3 Job 4 Machine 1 9 0 3 0 Machine 2 0 10 4 1 Machine 3 4 5 0 4 Machine 4 0 2 4 6 20
  • 21. Step 3 Find the smallest nonzero element (say, k) in the reduced cost matrix that is uncovered by the lines. Subtract k from each uncovered element, and add k to each element that is covered by two lines. Return to Step 2. 21
  • 22. Step 4 Job 1 Job 2 Job 3 Job 4 Machine 1 9 0 3 0 Machine 2 0 10 4 1 Machine 3 4 5 0 4 Machine 4 0 2 4 6 Job 1 Job 2 Job 3 Job 4 Machine 1 10 0 3 0 Machine 2 0 9 3 0 Machine 3 5 5 0 4 Machine 4 0 1 3 5 22
  • 23. Job 1 Job 2 Job 3 Job 4 Machine 1 10 0 3 0 Machine 2 0 9 3 0 Machine 3 5 5 0 4 Machine 4 0 1 3 5 23
  • 24. Assumptions of LP 1. Certainty:  numbers in the objective and constraints are known with certainty and do not change during the period being studied 2. Proportionality:   exists in the objective and constraints constancy between production increases and resource utilization 3. Additivity:  the total of all activities equals the sum of the individual activities 24
  • 25. Assumptions of LP cont… 4. Divisibility:   solutions need not be in whole numbers (integers) solutions are divisible, and may take any fractional value 5. Non-negativity:   all answers or variables are greater than or equal to (≥) zero negative values of physical quantities are impossible 25
  • 26. Limitations of LP •It treats all relationships among decision variables as linear. •There is no guarantee that we will get integer value solutions. e.g. 2.5 machines •LP does not take into consideration the effect of time & uncertainty. •In LP parameters are assumed to be constant ; but in real life situations majority of the times they are neither known nor constant. •LP deals with only single objective whereas in real life conflicting situations may have to be solved. 26
  • 27. Duality in LP •In context of LP, duality means each LP problem can be analyzed in two different ways. •LP problem can be stated in another equivalent problem based on the same data and new problem will be called as DUAL. •The main focus of a dual problem is to find best marginal value for each resource; also known as Shadow Prize. •The shadow prize is also defined as change in optimal objective function value with respect to unit change in availability of resource. 27
  • 28. 28
  • 31. 31