0% found this document useful (0 votes)
43 views10 pages

Linear Programming

Uploaded by

gwenayats
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
0% found this document useful (0 votes)
43 views10 pages

Linear Programming

Uploaded by

gwenayats
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
You are on page 1/ 10
/e can also make use of other test points other than the origin but it is more convenient | touseit In cases that the origin ls part ofthe line itself, use other points inthe Cartesian | a! Example 4: Find the solution set of the given inequalities in a graphical method x + 2y 2 4 and 2+yS6. Solution: ‘Step 1: Change the “greater-than-or-equal-to” of the first inequality to equality x + 2y = 4 and the “less-than-or-equal-to” of the first inequality to equality 2x +y= 6. ‘Step2: Solve using intercepts let x and y be equal to zero onx + 2y=4 and 2x+y=6, i when x=0 wheny=0 O+ay=4 + 2( aa4 xt Y=2(0,2) (4,0) when x=0 when y=0 2(0)+ 2x+0=6 2x=6 (0.6) x=3 (3,0) ep 3: Plot the points of the coordinates in a Cartesian coordinate system. Figure 6.5 "Thus, the solution is the common area covered by both x + 2y2 4 and 2x+y 12 2. Sketch the graph of the following inequalities by x and y-intercept. a, 3x + Sy 15 and Sx ~3y Wool x20,y20 Non-negativity Constraints ,200x + 1,600 Noe: P will denote that the LP model is a maximization problem and C for the minimization | ‘Step 4: Plot the constraints ofthe LP problem on a graph, with Design A(x) shown on the horizontal axis and Design B ()) shown on the vertical axis, using the intercept rule. 3x4 218 2x+4ys20 xs5 3x+2y=18 2x+ dy =20 x25 Letx= Letx=0 3(0) +2y=18 2(0) + 4y=20 0+2y=18 0+4y=20 ay=18 4y=20 ¥=9(0,9) ¥=5(0,5) lety=0 Lety=0 3x+2(0)= 18 2x+ 4(0) =20 3x+0=18 2x+0=20 3x=18 2x=20 x=6 (6,0) x=10(10,0) Figure 6.7 shows the initial graph of the LP model. After which we need to identify the area that satisfies all the constraints, it is known as the feasible region. Consider our example, there are two unknown coordinates that lie in the extreme point of the feasible region. Step 5: After identifying the feasible | yea region of the linear programming problem, we need to trace the extreme points ofthe graph as shown in Figure 67 and solve for the unknown coordinates. In this example, there are two unknown coordinates of the extreme points. Bee 2y=18 Figure 6.7 Page 164 ‘Chapt 6 Linear ProgramtySolve the intersection of the lines, which satisfies the feasible solution simultaneously, using the elimination method. Figure 6.8 shows the intersection of the first and second equations and the intersection of the first and the third equations. step 6: Specifically, we used the elimination method to determine the intersection of two lines. It is illustrated below the procedure for identifying the intersection of the first and second equations. Figure 68 Betas e+ 4ys20 Feasible Regton First equation: 3x + 2) ‘Second equation: 2x + 4y= 20 To eliminate the variable x we will apply the Least Common Multiple (LCM) on both x’s of the two equations. 2Gx+2y=18) > Gx + 4y=36 3(2x+4y=20) => ()6x+12v=60 Ox- 8y=-24 ~ By=-24 y=3 We will substitute the value of yin the first equation to obtain the coordinate of the intersection. 3x4 2(3)=18 Replace y by 3. 3x+6=18 Simplify. 3r= 18-6 Collect like terms. 3x=12 Combine like terms. xe4 Divide both sides by 3. ‘The intersection of the first equation and the second equation is (4, 3). Now we will determine the intersection of the first equation and third equation. First equation: 3x +2y=18 ‘Third equation: x= 5 Notice that the third equation already has x = 5, we will directly substitute the value of x to the first equation. 3(5) + 2y=18 Replace x by 5, 15 +2y=18 Simplify. 2y=18-15 Collect like terms, 2y=3 Combine like terms. yas Divide both sides by 2, The intersection of the first equation and the third equation is (5, 1.5), ‘Chapter 6: Linear Programming Page 165(a) (6,15) (5,0) Ne | | © ‘Step 7: Substitute the coordinates at the extreme points on the feasible region to the objective Step 8: function. Objective Function: P= 1,200x+ 1,600 Extreme points | Values of the objective function (0,5) 1,200(0) + 1,600(5) = 0+8,000= 6,000 5.0) 1,200(5) + 1,600(0) = 6,000+ G3) 1,200(4) + 1,600(3) = 4,800 + 4,800 = 9,600 (5,15) 1,200(5) + 1,600(1.5) = 6,000 + 2,400 = 8400 Formulate the decision. Since the coordinate (4, 3) will give the highest value of P9,600. The decision is to create 4 Design A gowns and 3 Design B gowns in order to maximize sales, Decision Design A gowns, Design B gowns, P=P9,600 To check we substitute the values of x and y in all the constraints, 3x+2ys18 2x+4ys20 xs5 3(4) +2(3) Antibiotic2 2x+ 6y212 = Antibiotic 3 x20,y20 ep4: Plot the constraints of the LP problem on a graph, with ingredient A (x) shown on the horizontal axis and ingredient B (y) shown in the vertical axis, using the intercept rule. Figure 6.10 shows the initial graph of the LP model. 3x+y26 xtyed 2x4 Gy212 3x+y=6 xty=4 2x + 6y=12 Letx=0 2(0) + 6y=12 0+ 6y=12 6y=12 y=2(0,2) Letx=0 Lety=0 2x + 6(0) = 12 2x+0=12 2x= 12 x= 6 (6,0) ®e 6: Linear Programming Page 167Figure 6.10 Step 5: Determine the feasible region. Figure 6.11 shows the area of the feasible region. Figure 6.11 | ‘Step 6: Solve the Intersection of the lines, which satisfies the feasible solution simultaneously, using the elimination method. We will solve the intersection of the first equation and second equation using the elimination method. First equation: 3x + y= 6 Second equation: x+y =4 Find the Least Common Multiple (LCM) of xn order to eliminate the varlable x. 1Qx+y=6) => Bee y=6 Beye) > (-)BeedveI2 Or-2y=-6 -2y=-6 ys3 ‘Substitute the value of y in the first equation to obtain the intersection of the first equatio and second equation. Page 163, (Chaplet 6: Linear Progra?We will now solve the intersection of the second and third equations. Second equation: x+y =4 Third equation: 2x + 6y = 12 Find the Least Common Multiple (LCM) of x to eliminate the variable x. Ax+ yd) => det By=8 Ax + 6y=12) = (-) 2x+6y=12 xn dyed aly= 4 yel Substitute the value of in the second equation to obtain the coordinate of the intersection, xele4 xe4-1 BD ‘Step 7: Substitute the coordinates at the extreme points of the feasible region in the objective function. Objective Function: C= 80x + 50 Extreme points _| Values of the objective function. (0.6) 80(0) +50(6)= 0+ 300= 300 (6,0) 80(6)+50(0)=480+ 0=480 (1,3) 80(1) +50(3)= 80+ 150=230 (3.1) 80(3) +50(1)= 240+ 50=290 Step 8: Formulate the decision. Since the coordinate (1, 3) will give the lowest. value of P230. The decision is to mix 1 unit of ingredient A and 3 units of Ingredient B to minimize the cost. Decision: x= 1 unit of ingredient A ‘y= 3 units of ingredient B ¢=P230 ‘To check we substitute the values of x andy in all the constraints. 3xt+y26 xty24 2x + 6212 3(1) +326 14324 2(1) + 6(3) 212 34326 424 2418212 626 20212 Thus, (1, 3) is correct, since it satisfies all the constraints and two of the constraints are minimized. ‘Chapter 6: Linear Programing Pogo 169Supplementary Exerelse 6.3 i 1, Establish and solve the linear programming model of the following: | | aA souvenir store wishes to produce two models of souvenirs: model A and model B. fivery modlel-A souvenir will result in P14 proft, and every model-B souvenir will result in P23 profit. To manufacture a model-A souvenir requires 3 minutes on stage 1 and 6 minutes on) stage 2. A model-B souvenir requires 5 minutes on stage 1 and 4 minutes on stage 2. There, are 270 minutes on stage 1 and 360 minutes on stage 2 for processing orders. How many| souvenirs of each model should the store make in order to maximize profit? b. Ina certain hospital, a nutritionist prepares a menu for patients on low-fat diets. The! primary ingredients are chicken and rice. The meal must contain enough protein and iron to, meet at least the DOH-tecommencded dally allowance (RDA) for each nutrient. The RDA for! protein is 60 grams and 30 milligrams for iron. Bach 4-ounce serving of chicken contains 69 grams of protein, 15 milligrams of iron, and 6 grams of fat. Each 1-cup serving of rice contains 12 grams of protein, 9 milligrams of iron, and 3 grams of fat. How much chicken ang rice should be included in the meal in order to minimize the amount of fat? 2, Solve the following Linear Programming Models: | a. Maximize: P= 13x+6y —b. Minimize: C= 24x+29y _c. Maximize: P= 16+ I1y Subject to: x+2ys8 Subject to: Sx + 4y220 Subject; xs10 2x+ y2B 2x+5y230 yzit 2x+2ys 16 3x4 5y215 2e+y= i maximization) and always v Feeregis decreases (for minimization) Compute a new labeay until the best comer Is determined, Page 170 ‘Chapler 6: Linear Programi™®

You might also like