1 00:00:04,500 --> 00:00:07,070 For a single route example, our problem 2 00:00:07,070 --> 00:00:10,270 is to find the optimal number of discount seats 3 00:00:10,270 --> 00:00:14,200 and regular seats to sell to maximize revenue. 4 00:00:14,200 --> 00:00:19,160 We'll assume that the price of regular seats is $617, 5 00:00:19,160 --> 00:00:23,580 and the price of discount seats is $238. 6 00:00:23,580 --> 00:00:25,850 Also, let's assume that we forecasted 7 00:00:25,850 --> 00:00:29,360 the demand of regular seats to be 100, 8 00:00:29,360 --> 00:00:32,810 and the demand of discount seats to be 150. 9 00:00:32,810 --> 00:00:37,450 The capacity of our airplane is 166 seats. 10 00:00:37,450 --> 00:00:40,270 Let's go ahead and formulate this mathematically 11 00:00:40,270 --> 00:00:44,280 as a linear optimization problem. 12 00:00:44,280 --> 00:00:47,240 The first step is to decide what our decisions are, 13 00:00:47,240 --> 00:00:49,890 or the variables in our model. 14 00:00:49,890 --> 00:00:53,650 We need to decide how many regular seats we went to sell. 15 00:00:53,650 --> 00:00:55,630 We'll call the number of regular seats 16 00:00:55,630 --> 00:00:59,900 we sell R. We also need to decide the number of discount 17 00:00:59,900 --> 00:01:01,320 seats we want to sell. 18 00:01:01,320 --> 00:01:07,800 We'll call the number of discount seats we sell D. 19 00:01:07,800 --> 00:01:09,620 The second step is to decide what 20 00:01:09,620 --> 00:01:12,220 our objective, or our goal, is. 21 00:01:12,220 --> 00:01:15,620 In this case, it's to maximize the total revenue 22 00:01:15,620 --> 00:01:17,500 to the airline. 23 00:01:17,500 --> 00:01:19,450 The revenue from each type of seat 24 00:01:19,450 --> 00:01:21,860 is equal to the number of that type of seat 25 00:01:21,860 --> 00:01:25,020 sold times the seat price. 26 00:01:25,020 --> 00:01:27,390 In the case of regular seats, this 27 00:01:27,390 --> 00:01:34,229 is $617 times R, the number of regular seats we sell. 28 00:01:34,229 --> 00:01:39,740 And for discount seats, this is $230 times D, 29 00:01:39,740 --> 00:01:42,320 the number of discount seats we sell. 30 00:01:42,320 --> 00:01:45,550 We sum these together to get the total revenue, 31 00:01:45,550 --> 00:01:48,680 and our objective is to maximize this sum. 32 00:01:51,479 --> 00:01:54,880 The third step is to define the constraints, or limits, 33 00:01:54,880 --> 00:01:56,640 of our decisions. 34 00:01:56,640 --> 00:02:00,470 One constraint is that American Airlines can't sell more seats 35 00:02:00,470 --> 00:02:04,970 than the aircraft capacity, which is 166 seats. 36 00:02:04,970 --> 00:02:10,169 So the total number of seats sold, R + D has to be less than 37 00:02:10,169 --> 00:02:14,600 or equal to the capacity of 166. 38 00:02:14,600 --> 00:02:17,910 Additionally, American Airlines shouldn't sell more seats 39 00:02:17,910 --> 00:02:20,590 than the demand for each type of seat. 40 00:02:20,590 --> 00:02:25,070 So the regular seats, R, shouldn't exceed 100. 41 00:02:25,070 --> 00:02:28,320 So R should be less than or equal to 100. 42 00:02:28,320 --> 00:02:32,000 And the discount seats, D, can't exceed 150. 43 00:02:32,000 --> 00:02:37,240 So D should be less than or equal to 150. 44 00:02:37,240 --> 00:02:40,090 The final step is to make sure our variables are 45 00:02:40,090 --> 00:02:42,100 taking reasonable values. 46 00:02:42,100 --> 00:02:44,050 In this case, it wouldn't make sense 47 00:02:44,050 --> 00:02:46,300 to sell a negative number of seats, 48 00:02:46,300 --> 00:02:50,060 so we need to make sure that both R and D are 49 00:02:50,060 --> 00:02:51,600 greater than or equal to 0. 50 00:02:55,420 --> 00:02:59,950 So our entire problem is to maximize total airline revenue, 51 00:02:59,950 --> 00:03:02,980 subject to the constraints that seats sold can't exceed 52 00:03:02,980 --> 00:03:06,560 capacity, seats sold can't exceed demand, 53 00:03:06,560 --> 00:03:09,220 and the seats sold can't be negative. 54 00:03:09,220 --> 00:03:15,250 Mathematically, this can be written as maximize 617*R + 55 00:03:15,250 --> 00:03:20,700 238*D, the total revenue, subject to the constraints: 56 00:03:20,700 --> 00:03:25,650 R + D is less than or equal to 166, the capacity constraint; 57 00:03:25,650 --> 00:03:29,720 R less than or equal to 100, and D less than or equal to 150, 58 00:03:29,720 --> 00:03:31,770 which are the demand constraints; 59 00:03:31,770 --> 00:03:35,410 and R and D are both greater than or equal to 0. 60 00:03:35,410 --> 00:03:38,910 This is called a linear optimization problem. 61 00:03:38,910 --> 00:03:42,500 In the next video, we'll see how to solve this problem using 62 00:03:42,500 --> 00:03:44,760 the software, LibreOffice.