SlideShare a Scribd company logo
1 of 20
THE DIET PROBLEM
WWW based interactive case study in
LINEAR PROGRAMMING
INTRODUCTION
› The Diet Problem is an interactive WWW (World Wide Web)-
based case study that introduces users to the mathematics of
optimization.
› Users select foods for their menus, edit a set of nutritional
constraints, and solve the linear program simply by clicking
some buttons and making simple entries.
› The Diet Problem utilizes a simple, linear program to introduce
the concepts of model planning, data gathering, optimal
solutions, and dual variables.
› The power of the World Wide Web makes the case study
accessible to a wide variety of users in many different countries.
OBJECTIVE
› The diet problem as a linear program will deal some issues
of formulating the mathematical model.
› Describes how this case study takes advantage of the Web
interface and how users can access the model for
themselves.
Formulating the
mathematical model.
DEFINATION: The Diet Problem
› Minimizing the cost of food eaten during one day subject to
the requirements that the diet satisfy a person's nutritional
requirements and that not too much of any one food be
eaten.
to assign variables for the amounts of food that we
are solving for and parameters for the data that we
know
We can de ne our variables as follows:
› x [food]= amount of food to eat
› c food]= cost of 1 serving of food
› A [food]= amount of Vitamin A in 1 serving of food
› Cal[ food]= amount of calories in 1 serving of food
› MinF[ food]= minimum number of servings for food
› MaxF[food]= maximum number of servings for food
› MinN[nutrient] = minimum amount of nutrient required
› MaxN [nutrient] = maximum amount of nutrient required
› In this problem, we will be solving for the values of x food]. The other values (C,
› A, Cal, etc.) are provided as input.
The problem can then be written as follows:
› The objective function is the value that we are trying to
minimize.
› In this problem, the objective function is the cost of the
entire menu.
› Since the objective function and the constraints are both
linear functions of the variables, x [food], this problem is a
linear program.
EXAMPLE
› The dual variables represent the cost of including a
constraint in the model.
› Without any constraints (other than those that do not allow
negative amounts of food), one can see how the optimal
menu has zero cost and includes no foods.
FROM THE ABOVE TABLES WE CAN MAKE THE
FOLLOWING SIMPLE INTERPRETATIONS:
› Since the amounts of milk and wheat bread in the diet are at
their upper bounds, a cost is associated with these bounds. The
dual variable associated with the upper bound on milk is -0.073.
If we increased the upper bound on milk servings from 10 to 11,
the cost of the diet would decrease by $0.073 and similarly for
wheat bread.
› Since the amount of corn in the diet is not at the upper bound,
the constraint x [Corn] 10 is not active and has a dual cost of
0.0. Changing the upper bound on corn will have no effect on
the objective value.
› A similar argument can be made about the Calories constraint.
If we are willing to accept one less calorie in the diet, the cost
can be decreased by $0.0025.
› Since neither the upper or lower bounds on the Vitamin A
constraint are not active, the corresponding dual cost is 0.0.
ADVANTAGES OF WEB
› Simple two-variable problems can be solved by using
graphical techniques, and even larger problems can be
solved by hand. Realistic problems with more than a few
variables and constraints, however, quickly become too
difficult to solve by hand.
› Although good LP software exists, it is unlikely that
students will correctly formulate their problems for the
software package in order to play with larger or more
complicated models.
› Here in WEB people can simply select the foods of their
choice, modify the constraints, solve the problem, and
obtain tables and graphs of the solution|all by simply
clicking some buttons.
• The Diet Problem has a
database of 64 foods that
users can select to be in
their menus.
• A small portion of the
input form in figure1
shows some of the foods
in the model.
• They also have the option
of editing the constraints
or using the defaults.
• The information from
these forms is collected
and sent to the program
that runs The Diet
Problem. The program
extracts the data,
formulates the linear
program, and solves it.
• If the linear program is
infeasible, i.e. the
nutritional requirements
cannot be met with the
foods selected, the user
is notified and given
another chance.
• If the problem is
feasible, that is, a
solution exists, a results
page is created that
shows the optimal menu
and cost (see Figure 2).
• The results page also
has pointers to other
pages that show the
cost breakdown by food
(see Figure 3) and how
much of each nutrient
was contributed by each
food.
• This information is
shown in pie charts. The
information about the
dual variables is also
shown along with an
explanation.
› The World Wide Web supports a close interaction between
the users of the diet problem and the others.
› In addition, there is no need to support software for many
different machines because all the different Web browsers
understand the same Web protocol.
› The Diet Problem has proven to be extremely popular. In
the five months that the case study has been on the Web,
the site has solved more than 2,600 instances of the diet
problem.
› The users come from all over the world, and many are
students in colleges and universities.
Conclusions……
› The growth of the World Wide Web is enabling many
innovations in education technology.
› As more and more people become connected to the Internet
and have access to the World Wide Web, the audience for Web
applications is becoming extremely large.
› The Diet Problem provides a simple introduction to linear
programming and model construction. they enable users to
interact with a mathematical model without having to use
mathematical notation.
› They also enable them to view the solution by using easy-to-
understand tables and charts.
Reference……………
Paper – “The Diet Problem: A WWW-based Interactive Case
Study in Linear Programming” by Joseph Czyzyk and
Timothy J. Wisniewski , Mathematics and Computer Science
Division Argonne National Laboratory Argonne, IL 60439-
4844
Thank You

More Related Content

What's hot

Unit.3. duality and sensetivity analisis
Unit.3. duality and sensetivity analisisUnit.3. duality and sensetivity analisis
Unit.3. duality and sensetivity analisisDagnaygebawGoshme
 
NON LINEAR PROGRAMMING
NON LINEAR PROGRAMMING NON LINEAR PROGRAMMING
NON LINEAR PROGRAMMING karishma gupta
 
LP linear programming (summary) (5s)
LP linear programming (summary) (5s)LP linear programming (summary) (5s)
LP linear programming (summary) (5s)Dionísio Carmo-Neto
 
Nonlinear programming 2013
Nonlinear programming 2013Nonlinear programming 2013
Nonlinear programming 2013sharifz
 
Linear Programming Problems {Operation Research}
Linear Programming Problems {Operation Research}Linear Programming Problems {Operation Research}
Linear Programming Problems {Operation Research}FellowBuddy.com
 
Branch and Bound technique to solve Integer Linear Programming
Branch and Bound technique to solve Integer Linear ProgrammingBranch and Bound technique to solve Integer Linear Programming
Branch and Bound technique to solve Integer Linear ProgrammingKaivalya Shah
 
Lagrange equation and its application
Lagrange equation and its applicationLagrange equation and its application
Lagrange equation and its applicationMahmudul Alam
 
NONLINEAR PROGRAMMING - Lecture 1 Introduction
NONLINEAR PROGRAMMING - Lecture 1 IntroductionNONLINEAR PROGRAMMING - Lecture 1 Introduction
NONLINEAR PROGRAMMING - Lecture 1 IntroductionOlympiad
 
Lagrange's method
Lagrange's methodLagrange's method
Lagrange's methodKarnav Rana
 
Lesson 25: Unconstrained Optimization I
Lesson 25: Unconstrained Optimization ILesson 25: Unconstrained Optimization I
Lesson 25: Unconstrained Optimization IMatthew Leingang
 
Duality in lpp
Duality in lppDuality in lpp
Duality in lppAbu Bashar
 
Limitations of linear programming
Limitations of linear programmingLimitations of linear programming
Limitations of linear programmingTarun Gehlot
 
Artificial Variable Technique –
Artificial Variable Technique –Artificial Variable Technique –
Artificial Variable Technique –itsvineeth209
 
An introduction to dea
An introduction to deaAn introduction to dea
An introduction to deaArturo Zavala
 
introduction to differential equations
introduction to differential equationsintroduction to differential equations
introduction to differential equationsEmdadul Haque Milon
 
Convex Optimization
Convex OptimizationConvex Optimization
Convex Optimizationadil raja
 
Module 1 Theory of Matrices.pdf
Module 1 Theory of Matrices.pdfModule 1 Theory of Matrices.pdf
Module 1 Theory of Matrices.pdfPrathamPatel560716
 

What's hot (20)

Linear programming
Linear programmingLinear programming
Linear programming
 
Unit.3. duality and sensetivity analisis
Unit.3. duality and sensetivity analisisUnit.3. duality and sensetivity analisis
Unit.3. duality and sensetivity analisis
 
NON LINEAR PROGRAMMING
NON LINEAR PROGRAMMING NON LINEAR PROGRAMMING
NON LINEAR PROGRAMMING
 
LP linear programming (summary) (5s)
LP linear programming (summary) (5s)LP linear programming (summary) (5s)
LP linear programming (summary) (5s)
 
Nonlinear programming 2013
Nonlinear programming 2013Nonlinear programming 2013
Nonlinear programming 2013
 
Linear Programming Problems {Operation Research}
Linear Programming Problems {Operation Research}Linear Programming Problems {Operation Research}
Linear Programming Problems {Operation Research}
 
Branch and Bound technique to solve Integer Linear Programming
Branch and Bound technique to solve Integer Linear ProgrammingBranch and Bound technique to solve Integer Linear Programming
Branch and Bound technique to solve Integer Linear Programming
 
Duality
DualityDuality
Duality
 
Lagrange equation and its application
Lagrange equation and its applicationLagrange equation and its application
Lagrange equation and its application
 
NONLINEAR PROGRAMMING - Lecture 1 Introduction
NONLINEAR PROGRAMMING - Lecture 1 IntroductionNONLINEAR PROGRAMMING - Lecture 1 Introduction
NONLINEAR PROGRAMMING - Lecture 1 Introduction
 
Linear Programming Problem
Linear Programming ProblemLinear Programming Problem
Linear Programming Problem
 
Lagrange's method
Lagrange's methodLagrange's method
Lagrange's method
 
Lesson 25: Unconstrained Optimization I
Lesson 25: Unconstrained Optimization ILesson 25: Unconstrained Optimization I
Lesson 25: Unconstrained Optimization I
 
Duality in lpp
Duality in lppDuality in lpp
Duality in lpp
 
Limitations of linear programming
Limitations of linear programmingLimitations of linear programming
Limitations of linear programming
 
Artificial Variable Technique –
Artificial Variable Technique –Artificial Variable Technique –
Artificial Variable Technique –
 
An introduction to dea
An introduction to deaAn introduction to dea
An introduction to dea
 
introduction to differential equations
introduction to differential equationsintroduction to differential equations
introduction to differential equations
 
Convex Optimization
Convex OptimizationConvex Optimization
Convex Optimization
 
Module 1 Theory of Matrices.pdf
Module 1 Theory of Matrices.pdfModule 1 Theory of Matrices.pdf
Module 1 Theory of Matrices.pdf
 

Viewers also liked

Applications of linear programming
Applications of linear programmingApplications of linear programming
Applications of linear programmingZenblade 93
 
Qm linear programming problems a.s. narag
Qm linear programming problems a.s. naragQm linear programming problems a.s. narag
Qm linear programming problems a.s. naragKinshook Chaturvedi
 
Productionplanning aggregate capacity
Productionplanning aggregate capacityProductionplanning aggregate capacity
Productionplanning aggregate capacityzmagtoto
 
Linear Programming - Workforce Scheduling Model
Linear Programming - Workforce Scheduling ModelLinear Programming - Workforce Scheduling Model
Linear Programming - Workforce Scheduling ModelPranath Pussella
 
Linear Programming 1
Linear Programming 1Linear Programming 1
Linear Programming 1irsa javed
 
Cost & Management Accounting Techniques
Cost & Management Accounting TechniquesCost & Management Accounting Techniques
Cost & Management Accounting TechniquesStroke Keys
 
Linear programming - Model formulation, Graphical Method
Linear programming  - Model formulation, Graphical MethodLinear programming  - Model formulation, Graphical Method
Linear programming - Model formulation, Graphical MethodJoseph Konnully
 
Focus group discussion
Focus group discussionFocus group discussion
Focus group discussionAbino David
 
Linear programming production strategy body plus 100, 200
Linear programming   production strategy body plus 100, 200Linear programming   production strategy body plus 100, 200
Linear programming production strategy body plus 100, 200Prabhat Taneja
 

Viewers also liked (13)

Applications of linear programming
Applications of linear programmingApplications of linear programming
Applications of linear programming
 
Qm linear programming problems a.s. narag
Qm linear programming problems a.s. naragQm linear programming problems a.s. narag
Qm linear programming problems a.s. narag
 
Productionplanning aggregate capacity
Productionplanning aggregate capacityProductionplanning aggregate capacity
Productionplanning aggregate capacity
 
Linear Programming - Workforce Scheduling Model
Linear Programming - Workforce Scheduling ModelLinear Programming - Workforce Scheduling Model
Linear Programming - Workforce Scheduling Model
 
5case
5case5case
5case
 
shadow pricing
shadow pricingshadow pricing
shadow pricing
 
Linear Programming 1
Linear Programming 1Linear Programming 1
Linear Programming 1
 
Cost & Management Accounting Techniques
Cost & Management Accounting TechniquesCost & Management Accounting Techniques
Cost & Management Accounting Techniques
 
Linear programming ppt
Linear programming pptLinear programming ppt
Linear programming ppt
 
Linear programming - Model formulation, Graphical Method
Linear programming  - Model formulation, Graphical MethodLinear programming  - Model formulation, Graphical Method
Linear programming - Model formulation, Graphical Method
 
MYP 5 Real Life linear programming
MYP 5  Real Life linear programmingMYP 5  Real Life linear programming
MYP 5 Real Life linear programming
 
Focus group discussion
Focus group discussionFocus group discussion
Focus group discussion
 
Linear programming production strategy body plus 100, 200
Linear programming   production strategy body plus 100, 200Linear programming   production strategy body plus 100, 200
Linear programming production strategy body plus 100, 200
 

Similar to The diet problem

Draft scientific paper
Draft scientific paperDraft scientific paper
Draft scientific paperAnne Everars
 
LINEAR PROGRAMMING PROBLEMS.pptx
LINEAR PROGRAMMING PROBLEMS.pptxLINEAR PROGRAMMING PROBLEMS.pptx
LINEAR PROGRAMMING PROBLEMS.pptxcidiorapalpha
 
CFBSA PowerPoint Presentation FINAL VERSION
CFBSA PowerPoint Presentation FINAL VERSIONCFBSA PowerPoint Presentation FINAL VERSION
CFBSA PowerPoint Presentation FINAL VERSIONFred Kass
 
reading and writing pattern of development problem solution.pptx
reading and writing pattern of development problem solution.pptxreading and writing pattern of development problem solution.pptx
reading and writing pattern of development problem solution.pptxCristyLaguna1
 
Angela kennedy technology infusion
Angela kennedy technology infusionAngela kennedy technology infusion
Angela kennedy technology infusionangeladmkennedy
 
Food calorie Final ppt.pptx
Food calorie Final ppt.pptxFood calorie Final ppt.pptx
Food calorie Final ppt.pptxjairosh318
 
8. Jacob Udo-Udo Jacob (Covernance Energy) - Building Scenarios for Transform...
8. Jacob Udo-Udo Jacob (Covernance Energy) - Building Scenarios for Transform...8. Jacob Udo-Udo Jacob (Covernance Energy) - Building Scenarios for Transform...
8. Jacob Udo-Udo Jacob (Covernance Energy) - Building Scenarios for Transform...Cassandra Project
 
WEB BASED NUTRITION AND DIET ASSISTANCE USING MACHINE LEARNING
WEB BASED NUTRITION AND DIET ASSISTANCE USING MACHINE LEARNINGWEB BASED NUTRITION AND DIET ASSISTANCE USING MACHINE LEARNING
WEB BASED NUTRITION AND DIET ASSISTANCE USING MACHINE LEARNINGIRJET Journal
 
NameI.D. NumberProject 2SCIH 012 057Science of N.docx
NameI.D. NumberProject 2SCIH 012 057Science of N.docxNameI.D. NumberProject 2SCIH 012 057Science of N.docx
NameI.D. NumberProject 2SCIH 012 057Science of N.docxdohertyjoetta
 
NameI.D. NumberProject 2SCIH 012 057Science of N.docx
NameI.D. NumberProject 2SCIH 012 057Science of N.docxNameI.D. NumberProject 2SCIH 012 057Science of N.docx
NameI.D. NumberProject 2SCIH 012 057Science of N.docxgemaherd
 
RECIPE GENERATION FROM FOOD IMAGES USING DEEP LEARNING
RECIPE GENERATION FROM FOOD IMAGES USING DEEP LEARNINGRECIPE GENERATION FROM FOOD IMAGES USING DEEP LEARNING
RECIPE GENERATION FROM FOOD IMAGES USING DEEP LEARNINGIRJET Journal
 
IRJET- A Food Recognition System for Diabetic Patients based on an Optimized ...
IRJET- A Food Recognition System for Diabetic Patients based on an Optimized ...IRJET- A Food Recognition System for Diabetic Patients based on an Optimized ...
IRJET- A Food Recognition System for Diabetic Patients based on an Optimized ...IRJET Journal
 
Isa 632 project presentation
Isa 632 project presentationIsa 632 project presentation
Isa 632 project presentationYaoLuo6
 
Diet planning with machine learning (changhun lee) 현장발표용
Diet planning with machine learning (changhun lee)   현장발표용Diet planning with machine learning (changhun lee)   현장발표용
Diet planning with machine learning (changhun lee) 현장발표용ChangHun Lee
 

Similar to The diet problem (20)

Draft scientific paper
Draft scientific paperDraft scientific paper
Draft scientific paper
 
LINEAR PROGRAMMING PROBLEMS.pptx
LINEAR PROGRAMMING PROBLEMS.pptxLINEAR PROGRAMMING PROBLEMS.pptx
LINEAR PROGRAMMING PROBLEMS.pptx
 
linear optimization.pptx
linear optimization.pptxlinear optimization.pptx
linear optimization.pptx
 
CFBSA PowerPoint Presentation FINAL VERSION
CFBSA PowerPoint Presentation FINAL VERSIONCFBSA PowerPoint Presentation FINAL VERSION
CFBSA PowerPoint Presentation FINAL VERSION
 
reading and writing pattern of development problem solution.pptx
reading and writing pattern of development problem solution.pptxreading and writing pattern of development problem solution.pptx
reading and writing pattern of development problem solution.pptx
 
Challenges Redesign
Challenges RedesignChallenges Redesign
Challenges Redesign
 
FWMS
FWMSFWMS
FWMS
 
Angela kennedy technology infusion
Angela kennedy technology infusionAngela kennedy technology infusion
Angela kennedy technology infusion
 
Food calorie Final ppt.pptx
Food calorie Final ppt.pptxFood calorie Final ppt.pptx
Food calorie Final ppt.pptx
 
8. Jacob Udo-Udo Jacob (Covernance Energy) - Building Scenarios for Transform...
8. Jacob Udo-Udo Jacob (Covernance Energy) - Building Scenarios for Transform...8. Jacob Udo-Udo Jacob (Covernance Energy) - Building Scenarios for Transform...
8. Jacob Udo-Udo Jacob (Covernance Energy) - Building Scenarios for Transform...
 
By two project ict
By two project ictBy two project ict
By two project ict
 
ICT PROJECT (BY PAIR)
ICT PROJECT (BY PAIR)ICT PROJECT (BY PAIR)
ICT PROJECT (BY PAIR)
 
WEB BASED NUTRITION AND DIET ASSISTANCE USING MACHINE LEARNING
WEB BASED NUTRITION AND DIET ASSISTANCE USING MACHINE LEARNINGWEB BASED NUTRITION AND DIET ASSISTANCE USING MACHINE LEARNING
WEB BASED NUTRITION AND DIET ASSISTANCE USING MACHINE LEARNING
 
Appendix-1.docx
Appendix-1.docxAppendix-1.docx
Appendix-1.docx
 
NameI.D. NumberProject 2SCIH 012 057Science of N.docx
NameI.D. NumberProject 2SCIH 012 057Science of N.docxNameI.D. NumberProject 2SCIH 012 057Science of N.docx
NameI.D. NumberProject 2SCIH 012 057Science of N.docx
 
NameI.D. NumberProject 2SCIH 012 057Science of N.docx
NameI.D. NumberProject 2SCIH 012 057Science of N.docxNameI.D. NumberProject 2SCIH 012 057Science of N.docx
NameI.D. NumberProject 2SCIH 012 057Science of N.docx
 
RECIPE GENERATION FROM FOOD IMAGES USING DEEP LEARNING
RECIPE GENERATION FROM FOOD IMAGES USING DEEP LEARNINGRECIPE GENERATION FROM FOOD IMAGES USING DEEP LEARNING
RECIPE GENERATION FROM FOOD IMAGES USING DEEP LEARNING
 
IRJET- A Food Recognition System for Diabetic Patients based on an Optimized ...
IRJET- A Food Recognition System for Diabetic Patients based on an Optimized ...IRJET- A Food Recognition System for Diabetic Patients based on an Optimized ...
IRJET- A Food Recognition System for Diabetic Patients based on an Optimized ...
 
Isa 632 project presentation
Isa 632 project presentationIsa 632 project presentation
Isa 632 project presentation
 
Diet planning with machine learning (changhun lee) 현장발표용
Diet planning with machine learning (changhun lee)   현장발표용Diet planning with machine learning (changhun lee)   현장발표용
Diet planning with machine learning (changhun lee) 현장발표용
 

Recently uploaded

Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application ) Sakshi Ghasle
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxmanuelaromero2013
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Educationpboyjonauth
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsKarinaGenton
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991RKavithamani
 
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting DataJhengPantaleon
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3JemimahLaneBuaron
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeThiyagu K
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
Micromeritics - Fundamental and Derived Properties of Powders
Micromeritics - Fundamental and Derived Properties of PowdersMicromeritics - Fundamental and Derived Properties of Powders
Micromeritics - Fundamental and Derived Properties of PowdersChitralekhaTherkar
 

Recently uploaded (20)

Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application )
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptx
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its Characteristics
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
 
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
Micromeritics - Fundamental and Derived Properties of Powders
Micromeritics - Fundamental and Derived Properties of PowdersMicromeritics - Fundamental and Derived Properties of Powders
Micromeritics - Fundamental and Derived Properties of Powders
 

The diet problem

  • 1. THE DIET PROBLEM WWW based interactive case study in LINEAR PROGRAMMING
  • 2. INTRODUCTION › The Diet Problem is an interactive WWW (World Wide Web)- based case study that introduces users to the mathematics of optimization. › Users select foods for their menus, edit a set of nutritional constraints, and solve the linear program simply by clicking some buttons and making simple entries. › The Diet Problem utilizes a simple, linear program to introduce the concepts of model planning, data gathering, optimal solutions, and dual variables. › The power of the World Wide Web makes the case study accessible to a wide variety of users in many different countries.
  • 3. OBJECTIVE › The diet problem as a linear program will deal some issues of formulating the mathematical model. › Describes how this case study takes advantage of the Web interface and how users can access the model for themselves.
  • 5. DEFINATION: The Diet Problem › Minimizing the cost of food eaten during one day subject to the requirements that the diet satisfy a person's nutritional requirements and that not too much of any one food be eaten.
  • 6. to assign variables for the amounts of food that we are solving for and parameters for the data that we know We can de ne our variables as follows: › x [food]= amount of food to eat › c food]= cost of 1 serving of food › A [food]= amount of Vitamin A in 1 serving of food › Cal[ food]= amount of calories in 1 serving of food › MinF[ food]= minimum number of servings for food › MaxF[food]= maximum number of servings for food › MinN[nutrient] = minimum amount of nutrient required › MaxN [nutrient] = maximum amount of nutrient required › In this problem, we will be solving for the values of x food]. The other values (C, › A, Cal, etc.) are provided as input.
  • 7. The problem can then be written as follows: › The objective function is the value that we are trying to minimize. › In this problem, the objective function is the cost of the entire menu. › Since the objective function and the constraints are both linear functions of the variables, x [food], this problem is a linear program.
  • 9.
  • 10. › The dual variables represent the cost of including a constraint in the model. › Without any constraints (other than those that do not allow negative amounts of food), one can see how the optimal menu has zero cost and includes no foods.
  • 11. FROM THE ABOVE TABLES WE CAN MAKE THE FOLLOWING SIMPLE INTERPRETATIONS: › Since the amounts of milk and wheat bread in the diet are at their upper bounds, a cost is associated with these bounds. The dual variable associated with the upper bound on milk is -0.073. If we increased the upper bound on milk servings from 10 to 11, the cost of the diet would decrease by $0.073 and similarly for wheat bread. › Since the amount of corn in the diet is not at the upper bound, the constraint x [Corn] 10 is not active and has a dual cost of 0.0. Changing the upper bound on corn will have no effect on the objective value. › A similar argument can be made about the Calories constraint. If we are willing to accept one less calorie in the diet, the cost can be decreased by $0.0025. › Since neither the upper or lower bounds on the Vitamin A constraint are not active, the corresponding dual cost is 0.0.
  • 13. › Simple two-variable problems can be solved by using graphical techniques, and even larger problems can be solved by hand. Realistic problems with more than a few variables and constraints, however, quickly become too difficult to solve by hand. › Although good LP software exists, it is unlikely that students will correctly formulate their problems for the software package in order to play with larger or more complicated models. › Here in WEB people can simply select the foods of their choice, modify the constraints, solve the problem, and obtain tables and graphs of the solution|all by simply clicking some buttons.
  • 14. • The Diet Problem has a database of 64 foods that users can select to be in their menus. • A small portion of the input form in figure1 shows some of the foods in the model. • They also have the option of editing the constraints or using the defaults. • The information from these forms is collected and sent to the program that runs The Diet Problem. The program extracts the data, formulates the linear program, and solves it.
  • 15. • If the linear program is infeasible, i.e. the nutritional requirements cannot be met with the foods selected, the user is notified and given another chance. • If the problem is feasible, that is, a solution exists, a results page is created that shows the optimal menu and cost (see Figure 2).
  • 16. • The results page also has pointers to other pages that show the cost breakdown by food (see Figure 3) and how much of each nutrient was contributed by each food. • This information is shown in pie charts. The information about the dual variables is also shown along with an explanation.
  • 17. › The World Wide Web supports a close interaction between the users of the diet problem and the others. › In addition, there is no need to support software for many different machines because all the different Web browsers understand the same Web protocol. › The Diet Problem has proven to be extremely popular. In the five months that the case study has been on the Web, the site has solved more than 2,600 instances of the diet problem. › The users come from all over the world, and many are students in colleges and universities.
  • 18. Conclusions…… › The growth of the World Wide Web is enabling many innovations in education technology. › As more and more people become connected to the Internet and have access to the World Wide Web, the audience for Web applications is becoming extremely large. › The Diet Problem provides a simple introduction to linear programming and model construction. they enable users to interact with a mathematical model without having to use mathematical notation. › They also enable them to view the solution by using easy-to- understand tables and charts.
  • 19. Reference…………… Paper – “The Diet Problem: A WWW-based Interactive Case Study in Linear Programming” by Joseph Czyzyk and Timothy J. Wisniewski , Mathematics and Computer Science Division Argonne National Laboratory Argonne, IL 60439- 4844