SlideShare a Scribd company logo
1 of 21
Today’s Agenda
 Attendance

/ Announcements
 Questions from Yesterday
 Sections 7.2
 Quiz Today
Exam Schedule
 Exam

4 (Ch 6,7)
Fri 11/15
 Exam 5 (Ch 10)
Thur 12/5
 Final Exam (All)
Thur 12/12
Linear Programming
Businesses use linear
programming to find out how to
maximize profit or minimize
costs. Most have constraints on
what they can use or buy.
Linear Programming
The Objective Function is
what we need to maximize or
minimize. For us, this will be a
function of 2 variables, f(x, y)
Linear Programming
The Constraints are the
inequalities that provide us with
the Feasible Region.
Linear Programming (pg 400)
The general idea… (pg 398)
Find max/min values of the objective
function, subject to the constraints.
Objective Function

f ( x, y)

2x 5 y

Constraints

3x 2 y 6
2x 4 y 8
x y 1
x 0, y 0
The general idea… (pg 398)
Graph the Feasible Region
The general idea… (pg 398)
The Feasible Region makes up the possible
inputs to the Objective Function

f ( x, y)

2x 5 y
Corner Point Thm (pg 400)
If a feasible region is
bounded, then the
objective function
has both a
maximum and
minimum value,
with each occurring
at one or more
corner points.
Find the minimum and maximum
value of the function f(x, y) = 3x - 2y.

We are given the constraints:
• y≥2
• 1 ≤ x ≤5
• y≤x+3
1 ≤ x ≤5
8
7
6
5
4
3

y≤x+3

y≥2

2

1

1

2

3

4

5
Need to find corner
points (vertices)

1 ≤ x ≤5
8
7
6
5
4
3

y≤x+3

y≥2

2

1

1

2

3

4

5
• The vertices (corners) of the
feasible region are:
(1, 2) (1, 4) (5, 2) (5, 8)
• Plug these points into the
function f(x, y) = 3x - 2y
Note: plug in BOTH x, and y values.
Evaluate the function at each vertex
to find min/max values
f(x, y) = 3x - 2y
• f(1, 2) = 3(1) - 2(2) = 3 - 4 = -1
• f(1, 4) = 3(1) - 2(4) = 3 - 8 = -5
• f(5, 2) = 3(5) - 2(2) = 15 - 4 = 11
• f(5, 8) = 3(5) - 2(8) = 15 - 16 = -1
So, the optimized solution is:
• f(1, 4) = -5 minimum
• f(5, 2) = 11 maximum
Find the minimum and maximum value
of the function f(x, y) = 4x + 3y
With the constraints:

y
y
y

x 2
1
x 2
4
2x 5
y ≥ 2x -5

Need to find corner
points (vertices)

6
5

y ≤ 1/4x + 2
4

y ≥ -x + 2

3
2
1
1

2

3

4

5
Evaluate the function at each vertex
to find min/max values
f(x, y) = 4x + 3y
• f(0, 2) = 4(0) + 3(2) = 6
• f(4, 3) = 4(4) + 3(3) = 25
7
1
1
7
• f( 3 , - 3 ) = 4( 3 ) + 3(- 3 ) =

28
3

-1 =

25
3
So, the optimized solution is:
• f(0, 2) = 6 minimum
• f(4, 3) = 25 maximum
Classwork / Homework

• Page 403
• 1, 3, 7, 9, 11

More Related Content

What's hot

code optimization 1...code optimization-1221849738688969-9
code optimization 1...code optimization-1221849738688969-9code optimization 1...code optimization-1221849738688969-9
code optimization 1...code optimization-1221849738688969-9Sanjeev Raaz
 
CONSIDER THE INTERVAL [0, ). FOR EACH NUMERICAL VALUE BELOW, IS IT IN THE INT...
CONSIDER THE INTERVAL [0, ). FOR EACH NUMERICAL VALUE BELOW, IS IT IN THE INT...CONSIDER THE INTERVAL [0, ). FOR EACH NUMERICAL VALUE BELOW, IS IT IN THE INT...
CONSIDER THE INTERVAL [0, ). FOR EACH NUMERICAL VALUE BELOW, IS IT IN THE INT...ViscolKanady
 
mathematical functions
mathematical functions mathematical functions
mathematical functions Anshul gour
 
5 1 ext relations and functions
5 1 ext relations and functions5 1 ext relations and functions
5 1 ext relations and functionshisema01
 
8.1 intro to functions
8.1 intro to functions8.1 intro to functions
8.1 intro to functionsBarbara Knab
 
Types of functions 05272011
Types of functions 05272011Types of functions 05272011
Types of functions 05272011Boyet Aluan
 
How Business mathematics assist Business in decision making
How Business mathematics assist Business in decision makingHow Business mathematics assist Business in decision making
How Business mathematics assist Business in decision makingFahad Fu
 
Functions and its Applications in Mathematics
Functions and its Applications in MathematicsFunctions and its Applications in Mathematics
Functions and its Applications in MathematicsAmit Amola
 
5.5 B Standard and Point Slope Form
5.5 B Standard and Point Slope Form5.5 B Standard and Point Slope Form
5.5 B Standard and Point Slope Formvmonacelli
 
Code Optimization
Code OptimizationCode Optimization
Code Optimizationguest9f8315
 
Function presentation
Function presentationFunction presentation
Function presentationjamil sadiq
 
Aplikom03 excel or
Aplikom03 excel orAplikom03 excel or
Aplikom03 excel orArif Rahman
 
Lesson 33: The Assignment Problem
Lesson 33: The Assignment  ProblemLesson 33: The Assignment  Problem
Lesson 33: The Assignment ProblemMatthew Leingang
 
A BIOBJECTIVE MODEL FOR PRODUCTION PLANNING IN A CEMENT FACTORY: Non-preemp...
A BIOBJECTIVE MODEL FOR PRODUCTION PLANNING IN  A CEMENT FACTORY:  Non-preemp...A BIOBJECTIVE MODEL FOR PRODUCTION PLANNING IN  A CEMENT FACTORY:  Non-preemp...
A BIOBJECTIVE MODEL FOR PRODUCTION PLANNING IN A CEMENT FACTORY: Non-preemp...Damilola Akinola
 
Results after modifying errors
Results after modifying errorsResults after modifying errors
Results after modifying errorsMaRwa Hamed
 

What's hot (20)

Computing the Area of a Polygon
Computing the Area of a PolygonComputing the Area of a Polygon
Computing the Area of a Polygon
 
code optimization 1...code optimization-1221849738688969-9
code optimization 1...code optimization-1221849738688969-9code optimization 1...code optimization-1221849738688969-9
code optimization 1...code optimization-1221849738688969-9
 
CONSIDER THE INTERVAL [0, ). FOR EACH NUMERICAL VALUE BELOW, IS IT IN THE INT...
CONSIDER THE INTERVAL [0, ). FOR EACH NUMERICAL VALUE BELOW, IS IT IN THE INT...CONSIDER THE INTERVAL [0, ). FOR EACH NUMERICAL VALUE BELOW, IS IT IN THE INT...
CONSIDER THE INTERVAL [0, ). FOR EACH NUMERICAL VALUE BELOW, IS IT IN THE INT...
 
First Partial Review
First Partial ReviewFirst Partial Review
First Partial Review
 
mathematical functions
mathematical functions mathematical functions
mathematical functions
 
5 1 ext relations and functions
5 1 ext relations and functions5 1 ext relations and functions
5 1 ext relations and functions
 
8.1 intro to functions
8.1 intro to functions8.1 intro to functions
8.1 intro to functions
 
Types of functions 05272011
Types of functions 05272011Types of functions 05272011
Types of functions 05272011
 
Lecture three
Lecture threeLecture three
Lecture three
 
Goal programming
Goal programmingGoal programming
Goal programming
 
How Business mathematics assist Business in decision making
How Business mathematics assist Business in decision makingHow Business mathematics assist Business in decision making
How Business mathematics assist Business in decision making
 
Functions and its Applications in Mathematics
Functions and its Applications in MathematicsFunctions and its Applications in Mathematics
Functions and its Applications in Mathematics
 
Mbd2
Mbd2Mbd2
Mbd2
 
5.5 B Standard and Point Slope Form
5.5 B Standard and Point Slope Form5.5 B Standard and Point Slope Form
5.5 B Standard and Point Slope Form
 
Code Optimization
Code OptimizationCode Optimization
Code Optimization
 
Function presentation
Function presentationFunction presentation
Function presentation
 
Aplikom03 excel or
Aplikom03 excel orAplikom03 excel or
Aplikom03 excel or
 
Lesson 33: The Assignment Problem
Lesson 33: The Assignment  ProblemLesson 33: The Assignment  Problem
Lesson 33: The Assignment Problem
 
A BIOBJECTIVE MODEL FOR PRODUCTION PLANNING IN A CEMENT FACTORY: Non-preemp...
A BIOBJECTIVE MODEL FOR PRODUCTION PLANNING IN  A CEMENT FACTORY:  Non-preemp...A BIOBJECTIVE MODEL FOR PRODUCTION PLANNING IN  A CEMENT FACTORY:  Non-preemp...
A BIOBJECTIVE MODEL FOR PRODUCTION PLANNING IN A CEMENT FACTORY: Non-preemp...
 
Results after modifying errors
Results after modifying errorsResults after modifying errors
Results after modifying errors
 

Viewers also liked

Viewers also liked (16)

Lecture 1.7b bt
Lecture 1.7b btLecture 1.7b bt
Lecture 1.7b bt
 
Geo 7.3
Geo 7.3Geo 7.3
Geo 7.3
 
M153 Lecture 1.2 BT
M153 Lecture 1.2 BTM153 Lecture 1.2 BT
M153 Lecture 1.2 BT
 
Lecture 1.7a bt
Lecture 1.7a btLecture 1.7a bt
Lecture 1.7a bt
 
Lecture 7.3 bt
Lecture 7.3 btLecture 7.3 bt
Lecture 7.3 bt
 
Lecture 1.1 to 1.3 bt
Lecture 1.1 to 1.3 btLecture 1.1 to 1.3 bt
Lecture 1.1 to 1.3 bt
 
Lecture 3.1 to 3.2 bt
Lecture 3.1 to 3.2 btLecture 3.1 to 3.2 bt
Lecture 3.1 to 3.2 bt
 
I book presentation nfd bt
I book presentation nfd btI book presentation nfd bt
I book presentation nfd bt
 
Geo 6.2 6.3 bt
Geo 6.2 6.3 btGeo 6.2 6.3 bt
Geo 6.2 6.3 bt
 
Lecture 3.6 bt
Lecture 3.6 btLecture 3.6 bt
Lecture 3.6 bt
 
Lecture 3.6 bt
Lecture 3.6 btLecture 3.6 bt
Lecture 3.6 bt
 
Chapter 2.4, 2.5 bt
Chapter 2.4, 2.5 btChapter 2.4, 2.5 bt
Chapter 2.4, 2.5 bt
 
Lecture 6.1 6.2 bt
Lecture 6.1 6.2 btLecture 6.1 6.2 bt
Lecture 6.1 6.2 bt
 
Lecture 4.2 bt
Lecture 4.2 btLecture 4.2 bt
Lecture 4.2 bt
 
Lecture 7.1 to 7.2 bt
Lecture 7.1 to 7.2 btLecture 7.1 to 7.2 bt
Lecture 7.1 to 7.2 bt
 
Geo 6.2 6.3 bt
Geo 6.2 6.3 btGeo 6.2 6.3 bt
Geo 6.2 6.3 bt
 

Similar to Lecture 7.2 bt

3.4 linear programming
3.4 linear programming3.4 linear programming
3.4 linear programmingfthrower
 
3.4 a linear programming
3.4 a linear programming3.4 a linear programming
3.4 a linear programmingfthrower
 
Functions and Relations
Functions and RelationsFunctions and Relations
Functions and RelationsJailah13
 
Evaluating functions
Evaluating functionsEvaluating functions
Evaluating functionsEFREN ARCHIDE
 
Piecewise function lesson 3
Piecewise function lesson 3Piecewise function lesson 3
Piecewise function lesson 3aksetter
 
11 smar tee review
11 smar tee review11 smar tee review
11 smar tee reviewsbaker76
 
Lesson 2 - Functions and their Graphs - NOTES.ppt
Lesson 2 - Functions and their Graphs - NOTES.pptLesson 2 - Functions and their Graphs - NOTES.ppt
Lesson 2 - Functions and their Graphs - NOTES.pptJaysonMagalong
 
January 6, 2014 intro to functions
January 6, 2014 intro to functionsJanuary 6, 2014 intro to functions
January 6, 2014 intro to functionskhyps13
 
9-Functions.pptx
9-Functions.pptx9-Functions.pptx
9-Functions.pptxjaffarbikat
 
1 5 graphs of functions
1 5 graphs of functions1 5 graphs of functions
1 5 graphs of functionsAlaina Wright
 
5.1 Quadratic Functions
5.1 Quadratic Functions5.1 Quadratic Functions
5.1 Quadratic Functionssmiller5
 
Lesson 4A - Inverses of Functions.ppt
Lesson 4A - Inverses of Functions.pptLesson 4A - Inverses of Functions.ppt
Lesson 4A - Inverses of Functions.pptssuser78a386
 
Jan. 4 Function L1
Jan. 4 Function L1Jan. 4 Function L1
Jan. 4 Function L1RyanWatt
 
Functions and graphs
Functions and graphsFunctions and graphs
Functions and graphsSujata Tapare
 

Similar to Lecture 7.2 bt (20)

3.4 linear programming
3.4 linear programming3.4 linear programming
3.4 linear programming
 
3.4 a linear programming
3.4 a linear programming3.4 a linear programming
3.4 a linear programming
 
AnsChap1.pdf
AnsChap1.pdfAnsChap1.pdf
AnsChap1.pdf
 
Functions and Relations
Functions and RelationsFunctions and Relations
Functions and Relations
 
Evaluating functions
Evaluating functionsEvaluating functions
Evaluating functions
 
Piecewise function lesson 3
Piecewise function lesson 3Piecewise function lesson 3
Piecewise function lesson 3
 
11 smar tee review
11 smar tee review11 smar tee review
11 smar tee review
 
Lesson 2 - Functions and their Graphs - NOTES.ppt
Lesson 2 - Functions and their Graphs - NOTES.pptLesson 2 - Functions and their Graphs - NOTES.ppt
Lesson 2 - Functions and their Graphs - NOTES.ppt
 
Singlevaropt
SinglevaroptSinglevaropt
Singlevaropt
 
January 6, 2014 intro to functions
January 6, 2014 intro to functionsJanuary 6, 2014 intro to functions
January 6, 2014 intro to functions
 
Piecewise functions
Piecewise functions Piecewise functions
Piecewise functions
 
1 13f-f
1 13f-f1 13f-f
1 13f-f
 
9-Functions.pptx
9-Functions.pptx9-Functions.pptx
9-Functions.pptx
 
1 5 graphs of functions
1 5 graphs of functions1 5 graphs of functions
1 5 graphs of functions
 
Functions
FunctionsFunctions
Functions
 
5.1 Quadratic Functions
5.1 Quadratic Functions5.1 Quadratic Functions
5.1 Quadratic Functions
 
Lesson 4A - Inverses of Functions.ppt
Lesson 4A - Inverses of Functions.pptLesson 4A - Inverses of Functions.ppt
Lesson 4A - Inverses of Functions.ppt
 
Jan. 4 Function L1
Jan. 4 Function L1Jan. 4 Function L1
Jan. 4 Function L1
 
Functions and graphs
Functions and graphsFunctions and graphs
Functions and graphs
 
1 13s-f
1 13s-f1 13s-f
1 13s-f
 

More from btmathematics (20)

Derivative power point
Derivative power pointDerivative power point
Derivative power point
 
3.1 derivative of a function
3.1 derivative of a function3.1 derivative of a function
3.1 derivative of a function
 
Carpentry2
Carpentry2Carpentry2
Carpentry2
 
Carpentry
CarpentryCarpentry
Carpentry
 
Carpentry
CarpentryCarpentry
Carpentry
 
Lecture 10.4 bt
Lecture 10.4 btLecture 10.4 bt
Lecture 10.4 bt
 
Lecture 10.1 10.2 bt
Lecture 10.1 10.2 btLecture 10.1 10.2 bt
Lecture 10.1 10.2 bt
 
Lecture 7.3 bt
Lecture 7.3 btLecture 7.3 bt
Lecture 7.3 bt
 
Geo 7.2 b
Geo 7.2 bGeo 7.2 b
Geo 7.2 b
 
Geo 7.1 7.2
Geo 7.1 7.2Geo 7.1 7.2
Geo 7.1 7.2
 
Lecture 6.1 6.2 bt
Lecture 6.1 6.2 btLecture 6.1 6.2 bt
Lecture 6.1 6.2 bt
 
Lecture 4.4 bt
Lecture 4.4 btLecture 4.4 bt
Lecture 4.4 bt
 
Geo 6.4 6.5
Geo 6.4 6.5Geo 6.4 6.5
Geo 6.4 6.5
 
Geo 6.1 bt
Geo 6.1 btGeo 6.1 bt
Geo 6.1 bt
 
Geo 6.1 bt
Geo 6.1 btGeo 6.1 bt
Geo 6.1 bt
 
Lecture 4.2 bt
Lecture 4.2 btLecture 4.2 bt
Lecture 4.2 bt
 
Lecture 4.1 bt
Lecture 4.1 btLecture 4.1 bt
Lecture 4.1 bt
 
Geo 5.1 bt
Geo 5.1 btGeo 5.1 bt
Geo 5.1 bt
 
Chapter 4.3 bt
Chapter 4.3 btChapter 4.3 bt
Chapter 4.3 bt
 
Chapter 4.2 bt
Chapter 4.2 btChapter 4.2 bt
Chapter 4.2 bt
 

Recently uploaded

TEST BANK For, Information Technology Project Management 9th Edition Kathy Sc...
TEST BANK For, Information Technology Project Management 9th Edition Kathy Sc...TEST BANK For, Information Technology Project Management 9th Edition Kathy Sc...
TEST BANK For, Information Technology Project Management 9th Edition Kathy Sc...marcuskenyatta275
 
Hyatt driving innovation and exceptional customer experiences with FIDO passw...
Hyatt driving innovation and exceptional customer experiences with FIDO passw...Hyatt driving innovation and exceptional customer experiences with FIDO passw...
Hyatt driving innovation and exceptional customer experiences with FIDO passw...FIDO Alliance
 
Long journey of Ruby Standard library at RubyKaigi 2024
Long journey of Ruby Standard library at RubyKaigi 2024Long journey of Ruby Standard library at RubyKaigi 2024
Long journey of Ruby Standard library at RubyKaigi 2024Hiroshi SHIBATA
 
TopCryptoSupers 12thReport OrionX May2024
TopCryptoSupers 12thReport OrionX May2024TopCryptoSupers 12thReport OrionX May2024
TopCryptoSupers 12thReport OrionX May2024Stephen Perrenod
 
WebAssembly is Key to Better LLM Performance
WebAssembly is Key to Better LLM PerformanceWebAssembly is Key to Better LLM Performance
WebAssembly is Key to Better LLM PerformanceSamy Fodil
 
How Red Hat Uses FDO in Device Lifecycle _ Costin and Vitaliy at Red Hat.pdf
How Red Hat Uses FDO in Device Lifecycle _ Costin and Vitaliy at Red Hat.pdfHow Red Hat Uses FDO in Device Lifecycle _ Costin and Vitaliy at Red Hat.pdf
How Red Hat Uses FDO in Device Lifecycle _ Costin and Vitaliy at Red Hat.pdfFIDO Alliance
 
Easier, Faster, and More Powerful – Alles Neu macht der Mai -Wir durchleuchte...
Easier, Faster, and More Powerful – Alles Neu macht der Mai -Wir durchleuchte...Easier, Faster, and More Powerful – Alles Neu macht der Mai -Wir durchleuchte...
Easier, Faster, and More Powerful – Alles Neu macht der Mai -Wir durchleuchte...panagenda
 
Easier, Faster, and More Powerful – Notes Document Properties Reimagined
Easier, Faster, and More Powerful – Notes Document Properties ReimaginedEasier, Faster, and More Powerful – Notes Document Properties Reimagined
Easier, Faster, and More Powerful – Notes Document Properties Reimaginedpanagenda
 
Collecting & Temporal Analysis of Behavioral Web Data - Tales From The Inside
Collecting & Temporal Analysis of Behavioral Web Data - Tales From The InsideCollecting & Temporal Analysis of Behavioral Web Data - Tales From The Inside
Collecting & Temporal Analysis of Behavioral Web Data - Tales From The InsideStefan Dietze
 
Oauth 2.0 Introduction and Flows with MuleSoft
Oauth 2.0 Introduction and Flows with MuleSoftOauth 2.0 Introduction and Flows with MuleSoft
Oauth 2.0 Introduction and Flows with MuleSoftshyamraj55
 
Using IESVE for Room Loads Analysis - UK & Ireland
Using IESVE for Room Loads Analysis - UK & IrelandUsing IESVE for Room Loads Analysis - UK & Ireland
Using IESVE for Room Loads Analysis - UK & IrelandIES VE
 
WebRTC and SIP not just audio and video @ OpenSIPS 2024
WebRTC and SIP not just audio and video @ OpenSIPS 2024WebRTC and SIP not just audio and video @ OpenSIPS 2024
WebRTC and SIP not just audio and video @ OpenSIPS 2024Lorenzo Miniero
 
Event-Driven Architecture Masterclass: Challenges in Stream Processing
Event-Driven Architecture Masterclass: Challenges in Stream ProcessingEvent-Driven Architecture Masterclass: Challenges in Stream Processing
Event-Driven Architecture Masterclass: Challenges in Stream ProcessingScyllaDB
 
Breaking Down the Flutterwave Scandal What You Need to Know.pdf
Breaking Down the Flutterwave Scandal What You Need to Know.pdfBreaking Down the Flutterwave Scandal What You Need to Know.pdf
Breaking Down the Flutterwave Scandal What You Need to Know.pdfUK Journal
 
Google I/O Extended 2024 Warsaw
Google I/O Extended 2024 WarsawGoogle I/O Extended 2024 Warsaw
Google I/O Extended 2024 WarsawGDSC PJATK
 
Choosing the Right FDO Deployment Model for Your Application _ Geoffrey at In...
Choosing the Right FDO Deployment Model for Your Application _ Geoffrey at In...Choosing the Right FDO Deployment Model for Your Application _ Geoffrey at In...
Choosing the Right FDO Deployment Model for Your Application _ Geoffrey at In...FIDO Alliance
 
Linux Foundation Edge _ Overview of FDO Software Components _ Randy at Intel.pdf
Linux Foundation Edge _ Overview of FDO Software Components _ Randy at Intel.pdfLinux Foundation Edge _ Overview of FDO Software Components _ Randy at Intel.pdf
Linux Foundation Edge _ Overview of FDO Software Components _ Randy at Intel.pdfFIDO Alliance
 
(Explainable) Data-Centric AI: what are you explaininhg, and to whom?
(Explainable) Data-Centric AI: what are you explaininhg, and to whom?(Explainable) Data-Centric AI: what are you explaininhg, and to whom?
(Explainable) Data-Centric AI: what are you explaininhg, and to whom?Paolo Missier
 
Event-Driven Architecture Masterclass: Integrating Distributed Data Stores Ac...
Event-Driven Architecture Masterclass: Integrating Distributed Data Stores Ac...Event-Driven Architecture Masterclass: Integrating Distributed Data Stores Ac...
Event-Driven Architecture Masterclass: Integrating Distributed Data Stores Ac...ScyllaDB
 
ADP Passwordless Journey Case Study.pptx
ADP Passwordless Journey Case Study.pptxADP Passwordless Journey Case Study.pptx
ADP Passwordless Journey Case Study.pptxFIDO Alliance
 

Recently uploaded (20)

TEST BANK For, Information Technology Project Management 9th Edition Kathy Sc...
TEST BANK For, Information Technology Project Management 9th Edition Kathy Sc...TEST BANK For, Information Technology Project Management 9th Edition Kathy Sc...
TEST BANK For, Information Technology Project Management 9th Edition Kathy Sc...
 
Hyatt driving innovation and exceptional customer experiences with FIDO passw...
Hyatt driving innovation and exceptional customer experiences with FIDO passw...Hyatt driving innovation and exceptional customer experiences with FIDO passw...
Hyatt driving innovation and exceptional customer experiences with FIDO passw...
 
Long journey of Ruby Standard library at RubyKaigi 2024
Long journey of Ruby Standard library at RubyKaigi 2024Long journey of Ruby Standard library at RubyKaigi 2024
Long journey of Ruby Standard library at RubyKaigi 2024
 
TopCryptoSupers 12thReport OrionX May2024
TopCryptoSupers 12thReport OrionX May2024TopCryptoSupers 12thReport OrionX May2024
TopCryptoSupers 12thReport OrionX May2024
 
WebAssembly is Key to Better LLM Performance
WebAssembly is Key to Better LLM PerformanceWebAssembly is Key to Better LLM Performance
WebAssembly is Key to Better LLM Performance
 
How Red Hat Uses FDO in Device Lifecycle _ Costin and Vitaliy at Red Hat.pdf
How Red Hat Uses FDO in Device Lifecycle _ Costin and Vitaliy at Red Hat.pdfHow Red Hat Uses FDO in Device Lifecycle _ Costin and Vitaliy at Red Hat.pdf
How Red Hat Uses FDO in Device Lifecycle _ Costin and Vitaliy at Red Hat.pdf
 
Easier, Faster, and More Powerful – Alles Neu macht der Mai -Wir durchleuchte...
Easier, Faster, and More Powerful – Alles Neu macht der Mai -Wir durchleuchte...Easier, Faster, and More Powerful – Alles Neu macht der Mai -Wir durchleuchte...
Easier, Faster, and More Powerful – Alles Neu macht der Mai -Wir durchleuchte...
 
Easier, Faster, and More Powerful – Notes Document Properties Reimagined
Easier, Faster, and More Powerful – Notes Document Properties ReimaginedEasier, Faster, and More Powerful – Notes Document Properties Reimagined
Easier, Faster, and More Powerful – Notes Document Properties Reimagined
 
Collecting & Temporal Analysis of Behavioral Web Data - Tales From The Inside
Collecting & Temporal Analysis of Behavioral Web Data - Tales From The InsideCollecting & Temporal Analysis of Behavioral Web Data - Tales From The Inside
Collecting & Temporal Analysis of Behavioral Web Data - Tales From The Inside
 
Oauth 2.0 Introduction and Flows with MuleSoft
Oauth 2.0 Introduction and Flows with MuleSoftOauth 2.0 Introduction and Flows with MuleSoft
Oauth 2.0 Introduction and Flows with MuleSoft
 
Using IESVE for Room Loads Analysis - UK & Ireland
Using IESVE for Room Loads Analysis - UK & IrelandUsing IESVE for Room Loads Analysis - UK & Ireland
Using IESVE for Room Loads Analysis - UK & Ireland
 
WebRTC and SIP not just audio and video @ OpenSIPS 2024
WebRTC and SIP not just audio and video @ OpenSIPS 2024WebRTC and SIP not just audio and video @ OpenSIPS 2024
WebRTC and SIP not just audio and video @ OpenSIPS 2024
 
Event-Driven Architecture Masterclass: Challenges in Stream Processing
Event-Driven Architecture Masterclass: Challenges in Stream ProcessingEvent-Driven Architecture Masterclass: Challenges in Stream Processing
Event-Driven Architecture Masterclass: Challenges in Stream Processing
 
Breaking Down the Flutterwave Scandal What You Need to Know.pdf
Breaking Down the Flutterwave Scandal What You Need to Know.pdfBreaking Down the Flutterwave Scandal What You Need to Know.pdf
Breaking Down the Flutterwave Scandal What You Need to Know.pdf
 
Google I/O Extended 2024 Warsaw
Google I/O Extended 2024 WarsawGoogle I/O Extended 2024 Warsaw
Google I/O Extended 2024 Warsaw
 
Choosing the Right FDO Deployment Model for Your Application _ Geoffrey at In...
Choosing the Right FDO Deployment Model for Your Application _ Geoffrey at In...Choosing the Right FDO Deployment Model for Your Application _ Geoffrey at In...
Choosing the Right FDO Deployment Model for Your Application _ Geoffrey at In...
 
Linux Foundation Edge _ Overview of FDO Software Components _ Randy at Intel.pdf
Linux Foundation Edge _ Overview of FDO Software Components _ Randy at Intel.pdfLinux Foundation Edge _ Overview of FDO Software Components _ Randy at Intel.pdf
Linux Foundation Edge _ Overview of FDO Software Components _ Randy at Intel.pdf
 
(Explainable) Data-Centric AI: what are you explaininhg, and to whom?
(Explainable) Data-Centric AI: what are you explaininhg, and to whom?(Explainable) Data-Centric AI: what are you explaininhg, and to whom?
(Explainable) Data-Centric AI: what are you explaininhg, and to whom?
 
Event-Driven Architecture Masterclass: Integrating Distributed Data Stores Ac...
Event-Driven Architecture Masterclass: Integrating Distributed Data Stores Ac...Event-Driven Architecture Masterclass: Integrating Distributed Data Stores Ac...
Event-Driven Architecture Masterclass: Integrating Distributed Data Stores Ac...
 
ADP Passwordless Journey Case Study.pptx
ADP Passwordless Journey Case Study.pptxADP Passwordless Journey Case Study.pptx
ADP Passwordless Journey Case Study.pptx
 

Lecture 7.2 bt

  • 1. Today’s Agenda  Attendance / Announcements  Questions from Yesterday  Sections 7.2  Quiz Today
  • 2. Exam Schedule  Exam 4 (Ch 6,7) Fri 11/15  Exam 5 (Ch 10) Thur 12/5  Final Exam (All) Thur 12/12
  • 3. Linear Programming Businesses use linear programming to find out how to maximize profit or minimize costs. Most have constraints on what they can use or buy.
  • 4. Linear Programming The Objective Function is what we need to maximize or minimize. For us, this will be a function of 2 variables, f(x, y)
  • 5. Linear Programming The Constraints are the inequalities that provide us with the Feasible Region.
  • 7. The general idea… (pg 398) Find max/min values of the objective function, subject to the constraints. Objective Function f ( x, y) 2x 5 y Constraints 3x 2 y 6 2x 4 y 8 x y 1 x 0, y 0
  • 8. The general idea… (pg 398) Graph the Feasible Region
  • 9. The general idea… (pg 398) The Feasible Region makes up the possible inputs to the Objective Function f ( x, y) 2x 5 y
  • 10. Corner Point Thm (pg 400) If a feasible region is bounded, then the objective function has both a maximum and minimum value, with each occurring at one or more corner points.
  • 11. Find the minimum and maximum value of the function f(x, y) = 3x - 2y. We are given the constraints: • y≥2 • 1 ≤ x ≤5 • y≤x+3
  • 12. 1 ≤ x ≤5 8 7 6 5 4 3 y≤x+3 y≥2 2 1 1 2 3 4 5
  • 13. Need to find corner points (vertices) 1 ≤ x ≤5 8 7 6 5 4 3 y≤x+3 y≥2 2 1 1 2 3 4 5
  • 14. • The vertices (corners) of the feasible region are: (1, 2) (1, 4) (5, 2) (5, 8) • Plug these points into the function f(x, y) = 3x - 2y Note: plug in BOTH x, and y values.
  • 15. Evaluate the function at each vertex to find min/max values f(x, y) = 3x - 2y • f(1, 2) = 3(1) - 2(2) = 3 - 4 = -1 • f(1, 4) = 3(1) - 2(4) = 3 - 8 = -5 • f(5, 2) = 3(5) - 2(2) = 15 - 4 = 11 • f(5, 8) = 3(5) - 2(8) = 15 - 16 = -1
  • 16. So, the optimized solution is: • f(1, 4) = -5 minimum • f(5, 2) = 11 maximum
  • 17. Find the minimum and maximum value of the function f(x, y) = 4x + 3y With the constraints: y y y x 2 1 x 2 4 2x 5
  • 18. y ≥ 2x -5 Need to find corner points (vertices) 6 5 y ≤ 1/4x + 2 4 y ≥ -x + 2 3 2 1 1 2 3 4 5
  • 19. Evaluate the function at each vertex to find min/max values f(x, y) = 4x + 3y • f(0, 2) = 4(0) + 3(2) = 6 • f(4, 3) = 4(4) + 3(3) = 25 7 1 1 7 • f( 3 , - 3 ) = 4( 3 ) + 3(- 3 ) = 28 3 -1 = 25 3
  • 20. So, the optimized solution is: • f(0, 2) = 6 minimum • f(4, 3) = 25 maximum
  • 21. Classwork / Homework • Page 403 • 1, 3, 7, 9, 11