This document discusses real world analytics and explores linear programming models and constraints. It covers topics such as minimizing cost, maximizing profit, and optimizing production. The content provides insights into the application of analytics in solving real-world problems.
Contribute Materials
Your contribution can guide someone’s learning journey. Share your
documents today.
Analytics1 REAL WORLD ANALYTICS by [Name] course Professor’s Name Institution Location of Institution Date
Secure Best Marks with AI Grader
Need help grading? Try our AI Grader for instant feedback on your assignments.
Analytics2 Real world Analytics Question 1 (a)The problem satisfies the assumptions of applying linear programming model. The assumptions include: (i)Proportionality assumption - the contribution of each product to the value of the objective function (cost) isproportionalto thelevel of the activity. (ii) Additive assumption:all the functions can be formulated in a way the each of them is thesumof theindividual contributionsof the respective activities (Ostrowski, Anjos and Vannelli 2011). (iii) Divisibility assumption:the decision variables can be allowedtohaveany(real)values,includingnon-integervaluesthatsatisfythe functional and non-negativity constraints. Since each decision variable represents the level of some activity, it is being assumed that the activities can be run atfractional levels (Baky 2010). (iv) Certainty assumption:the value assigned to each parameter of a linear programming model are possible to be assumed to be aknown constant. (b)LetXrepresent the number of litres of product A, andYrepresent the number of litres of product B. Then the given values are presented in table 1. Table 1: The given information QuantityProduct AProduct B Lime per 100 litres38 Mango per 100 litres64 Orange per 100 litres46 Cost per litre87 Number of litres availableXY Source: Author (2019) The objective function is to minimize cost(C)given by the equation (1) C=8X+7Y(1) The customer requires that there must be a minimum of 4.5 litres of orange and a minimum of 5 litres of mango concentration per 100 litres of beverage. However, a maximum of 6 litres of lime concertation per 100 litres of beverage. Further, the
Analytics3 customer needs a minimum of 70 litres of the beverage every week. These constraints are represented in the following inequalities. 6X+4Y 100≥4.5≡Y≥450−6X 4(2) 4X+6Y 100≥5≡Y≥500−4X 6(3) 3X+8Y 100≤6≡Y≤600−3X 8(4) X+Y≥70≡Y≥70−X(5) Further, values ofXandYare not allowed to take negative numbers since less than zero volume is non-existent. The condition give inequality 6 and 7. X≥0(6) Y≥0(7) Therefore, the linear programming model is to minimise equation (1) constraint to equation (2) to (7). (c)Th screenshot below show the graphical solutions of the linear program model defined in (b). The solution was done in desmons.com online calculator. The graph shows fours feasible corners points of the solution of the linear program. The corner points are:
Analytics4 First, (33.333, 62.5) implyingX= 33.333, andY= 62.5 substitute the values in equation (1) as follows: C=8(33.333)+7(62.5)=266.664+437.5=704.164 Second, (35, 60) implyingX= 35, andY= 60 substitute the values in equation (1) as follows: C=8(35)+7(60)=280+420=700 Third, (125, 0) implyingX= 125, andY= 0 substitute the values in equation (1) as follows: C=8(125)+7(0)=1,000 Finally, (200, 0) implyingX= 200, andY= 0 substitute the values in equation (1) as follows: C=8(200)+7(0)=1,600 The objective was to minimize cost thus the lowest cost is at point value ofX= 35, andY= 60. Further, check if the constraints are satisfied. All the constraints are satisfied in the graph. The factory should use 35 litres of product A and 60 litres of product B. (d)In order to find the range of cost of product A that would make the least cost require examining the two solutions that are closely related to each other (Coffrin and Van Hentenryck 2014). The second step involves finding the cost of A that would make the second minimum cost the least cost solution. The second lowest cost was obtained when the value ofX= 33.333 =100 3, andY= 62.5. Therefore, the second least cost is 100 3(8)+62.5(7)=4225 6. LetZbe the cost of product A. Thus, to get the range of values of Z solve the inequality 35Z+60(7)>100 3Z+62.5(7)(8)
Paraphrase This Document
Need a fresh take? Get an instant paraphrase of this document with our AI Paraphraser
Analytics5 Simplify equation (8) to get 35Z+420>100 3Z+437.5multiply this inequality by 3 to remove the fractional part. 105Z+1260>100Z+1312.5subtract 100Zfrom both side of the inequality and subtract 1260 from both sides of the inequality to get: 105Z−100Z>1312.5−1260which simplifies toZ>10.5. Therefore, when the cost of product A is greater than 10.5 then the optimal solutions obtained in (c) cannot change but a minimum cost will be obtained. To show this the screenshot below shows the excel computation with various level of price for product A while product B remains constant at 7. From the excel screenshot it can be seen that the minimum cost is at point (35, 60) when the cost per liter for product A is less than 10.5. However, when the cost per liter for product A is equal 10.5, then the minimum cost is shared between (35,60) and (33 and 1/3, 62.5). Moreover, when the cost per liter for product A is greater than 10.5, then the minimum cost is at (33 and 1/3, 62.5).
Analytics6 Question 2 (a)Profit is calculated as the sum of profit from product Spring, Autumn and Winter. Profit (π¿, is the total revenue (TR) minus total cost (TC) (Mulaet al.2010). π=TR−TCwhere; TR = QP, Q is demand, P is sales price. Also, TC = FC + VC where; FC is the production cost and VC is the purchase price of the materials. Letπjbe the profit from the products,Qjbe the demand of the products,Pjbe the sales price of the products,Qjbe the demand of the products,TRjbe the total revenue of the products,FCjbe the production cost of the products. Further, letVCibe the purchase price of the materials,TCjbe the total cost of the products, andxij≥0be the number of tons of products, where;j∈{1=Spring,2=Autumn,3=Winter}and i∈{C=Cotton,W=Wool,S=Silk}. Now, the constraints are: Demand of the products xC1+xW1+xS1≤4500(1) xC2+xW2≤4000(2) xC3+xW3+xS3≤4000(3) Proportion of cotton, wool, and silk Spring: Proportion of cotton; xC1 xC1+xW1+xS1 ≥0.5which simplifies to xC1−xW1−xS1≥0(4) Proportion of wool xW1 xC1+xW1+xS1 ≥0.3which simplifies to 3xC1−7xW1+3xS1≤0(5)
Analytics7 Proportion of silk xS1 xC1+xW1+xS1 ≥0.2which simplifies to xC1+xW1−4xS1≤0(6) Winter: Proportion of cotton; xC2 xC2+xW2+xS2 ≥0.6which simplifies to 2xC2−3xW2−3xS2≥0(7) Proportion of wool xw2 xC2+xW2+xS2 ≥0.4which simplifies to 2xC2−3xW2+2xS2≤0(8) Autumn: Proportion of cotton; xC3 xC3+xW3+xS3 ≥0.4which simplifies to 3xC3−2xW3−2xS3≥0(9) Proportion of wool xW3 xC3+xW3+xS3 ≥0.5which simplifies to xC3−xW3+xS3≤0(10) Proportion of silk xS3 xC3+xW3+xS3 ≥0.1which simplifies to xC3+xW3−9xS3≤0(11)
Secure Best Marks with AI Grader
Need help grading? Try our AI Grader for instant feedback on your assignments.
Analytics8 The total revenues and costs for Spring and profit from product Spring: TR1=60(xC1+xW1+xS1)simplifying to TR1=60xC1+60xW1+60xS1. Further,FC1=$5and TC1=5(xC1+xW1+xS1)+30xC1+45xW1+50xS1 equivalent to TC1=35xC1+50xW1+55xS1. Profit from Spring is given as π1=(60xC1+60xW1+60xS1)−(35xC1+50xW1+55xS1)simplifies to π1=25xC1+10xW1+5xS1(12) Similarly, the total revenues and costs for Spring and profit from product Autumn: TR2=55(xC2+xW2)simplifying to TR2=55xC2+55xW2. Further,FC2=$4and Then, TC2=4(xC2+xW2)+30xC2+45xW2simplifying to TC2=34xC2+49xW2 Profit from Autumn is given as π2=(55xC2+55xW2)−(34xC2+49xW2)simplifies to π2=21xC2+4xW2(13) Finally, the total revenues and costs for Spring and profit from product Winter: TR3=60(xC3+xW3+xS3)simplifying to TR3=60xC3+60xW3+60xS3. Further,FC3=$5. Then, TC3=5(xC3+xW3+xS3)+35xC3+45xW3+50xS3simplifying to TC3=40xC3+50xW3+55xS3 Profit from Autumn is given as
Analytics9 π3=(60xC3+60xW3+60xS3)−(40xC3+50xW3+55xS3)which simplify to π3=20xC3+10xW3+5xS3(14) The total profit is then given as π=π1+π2+π3substitute the values from equation (4), (5) and (6) π=25xC1+10xW1+5xS1+21xC2+4xW25+20xC3+10xW3+5xS3(15) The linear program model is to maximize equation (15) subject to the constraints in equation (1) to (11) andxij≥0. That is Maximize: π=25xC1+10xW1+5xS1+21xC2+4xW2+20xC3+10xW3+5xS3 Subject to: (1)xC1+xW1+xS1≤4500 (2)xC2+xW2≤4000 (3)xC3+xW3+xS3≤4000 (4)xC1−xW1−xS1≥0 (5)3xC1−7xW1+3xS1≤0 (6)xC1+xW1−4xS1≤0 (7)2xC2−3xW2−3xS2≥0 (8)2xC2−3xW2+2xS2≤0 (9)3xC3−2xW3−2xS3≥0 (10)xC3−xW3+xS3≤0 (11)xC3+xW3−9xS3≤0 (12)xij≥0 (b)From R - studio the optimal solutions are presented in table 2. The optimal values are in tons. The codes are attached. Table 2: The optimal solutions from R-studio
Analytics10 ProductCottonWoolSilk Spring2,2501,350900 Winter2,4001,6000 Autumn2,0002,0000 Maximum Profit$191,050 Source: author (2019) Question 3 (a)The game has the zero-sum property (if Helen gains, David loses and the reverse) implying that any result of a zero-sum situation isPareto optimal (Zhanget al.2011; Vamvoudakis and Lewis 2012). The outcome of the game is found by adding the points collected in each instance. Also, a payoff matrix can be formulated from this game (Pham and Zhang 2014; Sallan Lordan and Fernandez 2015). The game involves only two people hence qualifies to be a two-players-zero-sum game. (b)The payoff matrix is as follows: DAVID (0, 5)(1, 4)(2, 3)(3, 2)(4, 1)(5, 0) HELEN (0, 6)1, -10, 00, 00, 00, 01, -1 (1, 5)1, -11, -10, 00, 01, -11, -1 (2, 4)0, 01, -11, -11, -11, -10, 0 (3, 3)0, 00, 00, 02, -20, 00, 0 (4, 2)0, 0-1, 11, -1-1, 11, -10, 0 (5, 1)1, -11, -10, 00, 01, -11, -1 (6,0)1, -10, 00, 00, 00, 00, 0 The bold values in parenthesis represent number of chips in P1 and P2 respectively (P1, P2).The green values represent total scores by the players such that1, -1, implies Helen scored a total of 1 and David scored -1 hence Helen won while David lost. (c)A saddle point is a payoff that is simultaneously a row minimum and a column maximum. In the matrix above there are no saddle points. (d)Let V be the value of the game where V =v1−v2+v3−v4.
Paraphrase This Document
Need a fresh take? Get an instant paraphrase of this document with our AI Paraphraser
Analytics11 Maximizev1−v2+v3−v4. Subject to Helens strategies: x0+x1+x5+x6≥0(1) x1+x2−x4+x5≥0(2) x2+x4≥0(3) x2+2x3−x4≥0(4) x1+x2+x4+x5≥0(5) x0+x1+x5≥0(6) x0+x1+x2+x3+x4+x5=1(7) Non-negativity Subject to David strategies: −y0−y1−y5−y6≥0(8) −y1−y2+y4−y5≥0(9) −y2−y4≥0(10) −y2−2y3+y4≥0(11) -y1−y2−y4−y5≥0(12) −y0−y1−y5≥0(13) y0+y1+y2+y3+y4+y5=1(14) Non- negativity (e)The R-codes for the problems is require(lpSolve)# Load lpSolve C <- c(1, -1) ## Set the coefficients of the decision variables -> C # Create constraint matrix B A <- matrix(c(1, 1, 0,0,1,1,0, 0, 1, 1,0,-1,1,0,
Analytics12 0, 0, 1,0, 1,0,1, 0, 0, 1,2,-1,0,0, 0, 1, 1, 0,1,1,0, 1, 1, 0, 0,0,1,0, 1,1,1,1,1,1,1), ncol = 7, byrow=TRUE) # Right hand side for the constraints B <- c(rep(0,7)) # Direction of the constraints constranints_direction <- c(rep(“>=”,6), “=”) # Find the optimal solution optimum <- lp(direction=”max”, objective.in = C, const.mat = A, const.dir = constranints_direction, const.rhs = B, all.int = T) # Print status: 0 = success, 2 = no feasible solution print(optimum$status) # Display the optimum values for best_sol <- optimum$solution names(best_sol) <- c(“x_0”, “x_1”, “x_2”,”x_3”) print(best_sol) # Check the value of objective function at optimal point print(paste(“Winning: “, optimum$objval, sep=””))
Analytics13 (f)The solution for David is as follows David should play 1 chip in P1 and 4 in P2 or 3 in P1 and 2 in P2. References Baky, I.A., 2010. Solving multi-level multi-objective linear programming problems through fuzzy goal programming approach.Applied Mathematical Modelling,34(9), pp.2377- 2387. Coffrin, C. and Van Hentenryck, P., 2014. A linear-programming approximation of AC power flows.INFORMS Journal on Computing,26(4), pp.718-734. Mula, J., Peidro, D., Díaz-Madroñero, M. and Vicens, E., 2010. Mathematical programming models for supply chain production and transport planning.European Journal of Operational Research,204(3), pp.377-390. Ostrowski, J., Anjos, M.F. and Vannelli, A., 2011. Tight mixed integer linear programming formulations for the unit commitment problem.IEEE Transactions on Power Systems,27(1), pp.39-46. Pham, T. and Zhang, J., 2014. Two person zero-sum game in weak formulation and path dependent Bellman--Isaacs equation.SIAM Journal on Control and Optimization,52(4), pp.2090-2121. Sallan, J.M., Lordan, O. and Fernandez, V., 2015.Modeling and solving linear programming with R. OmniaScience.
Secure Best Marks with AI Grader
Need help grading? Try our AI Grader for instant feedback on your assignments.
Analytics14 Vamvoudakis, K.G. and Lewis, F.L., 2012. Online solution of nonlinear two‐player zero‐sum games using synchronous policy iteration.International Journal of Robust and Nonlinear Control,22(13), pp.1460-1483. Zhang, H., Vittal, V., Heydt, G.T. and Quintero, J., 2011. A mixed-integer linear programming approach for multi-stage security-constrained transmission expansion planning.IEEE Transactions on Power Systems,27(2), pp.1125-1133.