Learning Library

← Back to Library

Optimizing Lemonade Stand Pricing

Key Points

  • Decision optimization can be used to determine the optimal lemonade price and sales volume to maximize profit.
  • The decision variables are the price per cup (P) and the number of cups sold (n).
  • Total cost is modeled as a fixed component (CF) plus a variable component (CV × n), giving the cost function C(n) = CF + CV·n.
  • The objective function to maximize is profit, calculated as revenue minus cost: Profit = P·n − C(n).
  • A budget constraint requires that the total cost C(n) does not exceed the available budget B.

Full Transcript

# Optimizing Lemonade Stand Pricing **Source:** [https://www.youtube.com/watch?v=jhSejeNslP8](https://www.youtube.com/watch?v=jhSejeNslP8) **Duration:** 00:04:36 ## Summary - Decision optimization can be used to determine the optimal lemonade price and sales volume to maximize profit. - The decision variables are the price per cup (P) and the number of cups sold (n). - Total cost is modeled as a fixed component (CF) plus a variable component (CV × n), giving the cost function C(n) = CF + CV·n. - The objective function to maximize is profit, calculated as revenue minus cost: Profit = P·n − C(n). - A budget constraint requires that the total cost C(n) does not exceed the available budget B. ## Sections - [00:00:00](https://www.youtube.com/watch?v=jhSejeNslP8&t=0s) **Decision Optimization with a Lemonade Stand** - The passage explains how to model a lemonade‑stand pricing problem as a decision‑optimization task, defining decision variables for price, sales volume, and both fixed and variable costs to maximize profit. ## Full Transcript
0:00let's say you have a lemonade stand and 0:02you want to make as much money as 0:03possible to save up for a vacation 0:05you'll need to decide how much to charge 0:07for each cup of lemonade in order to 0:09maximize your 0:11profits one way to find the most 0:13efficient and profitable solution is by 0:15defining this problem as a mathematical 0:17model and comparing different lemonade 0:20prices to different outcomes this 0:23process is called decision 0:25optimization it allows us to determine 0:27the best possible decision within the 0:29context of the 0:30problem let's write this Lemonade Stand 0:33scenario as a decision optimization 0:35problem the first thing that we'll need 0:37to do is identify the problem and Define 0:40the variables we'll need to decide what 0:43the price per cup of lemonade 0:46is and we can Define that as a variable 0:49P we'll also need to determine the 0:52number of cups of lemonade to sell which 0:56we'll set as a variable n p and n are 1:00going to be our decision 1:04variables these are the variables that 1:06we can change in order to change the 1:09outcome of this problem we'll also need 1:11to consider the cost to produce each cup 1:14of lemonade this can include fixed costs 1:18such as the cost of the lemonade stand 1:21itself these are costs that don't change 1:23no matter how many cups of lemonade we 1:26produce so we can write the fixed cost 1:28as a variable called 1:31CF we also need to consider variable 1:34costs which are costs that vary 1:36depending on how many cups of lemonade 1:38are produce we can write these variable 1:41costs 1:43as CV an example of a variable cost 1:47would be for example the cost of the 1:50lemons overall we can use these two 1:53costs to create a cost 1:57function which we'll call C of n because 2:01it's the cost for the number of cups of 2:03lemonade we produce this is going to be 2:06equal to CF plus CV * 2:11n now let's write our goal as a formula 2:16our goal is to maximize profit that 2:18means increasing our revenue and 2:21decreasing our 2:23costs so we want to maximize 2:30our 2:32profit and that profit is equal to P * n 2:37minus C of n which is our cost 2:41function so this is the objective 2:44function of the problem it's the 2:46objective that we need to solve which is 2:48maximizing The Profit which is equal to 2:52revenue Minus 2:56cost however there's one more thing that 2:59makes our lives a little harder and 3:01those are constraints constraints are 3:04boundaries that we have to stay within 3:06in order for this problem to work so for 3:11example our one constraint in this 3:13problem is that we do not have an 3:15unlimited amount of money to build this 3:18lemonade stand so we have a budget and 3:22we can set that as a variable equal to B 3:26so in order for this problem to be valid 3:30our budget b means to 3:34be under our costs which means that our 3:38cost function has to be less than or 3:40equal to our budget overall the goal of 3:44this problem is to maximize our profit 3:45which is equal to revenue Minus cost 3:48such that we don't exceed our budget to 3:51make the most amount of money we can try 3:53different prices and quantities of 3:54lemonade to see which combinations 3:57result in the most amount of profit we 3:59just need to make sure that we don't 4:01spend more than our budget while we 4:03could solve a problem like this by hand 4:05the advantage of writing a problem in 4:07this way is that it's easier for 4:08computers to understand and there are a 4:10variety of solvers available that can 4:13solve decision optimization problems 4:15including linear nonlinear and mixed 4:18integer 4:19programming overall decision 4:21optimization has important applications 4:23in a variety of fields including Supply 4:26Chain management healthc care and 4:28finance by using using decision 4:30optimization we can quickly and easily 4:32solve business problems