SIT718 Real world Analytics Assignment Total Marks = 100, Weighting - 30% Due date: 3 May 2018 by 11.30 PM Assignment (pdf or MS word doc and appropriate programme files with your codes) must be submitted via CloudDeakin’s Assignment Dropbox. You can sub- mit an electronic version of your assignment (photos of written document are not accepted). No hard copy or email submissions are accepted.You should label all figures and tables. This assignment assesses : ULO1: Apply the concepts of multivariate functions to summarise datasets. ULO2: Analyse datasets by interpreting model and function parameters of impor- tant families of multivariate functions. ULO3: Transform a real-life problem into a mathematical model. ULO4: Apply linear programming concepts to make optimal decisions. ULO6: Obtain optimal solutions for quantities that are either continuous or dis- crete. This assignment consists of two parts: Part A and Part B. Each part is allocated 50 marks and contributes with 15% to the final mark. 1 SIT718 Assignment 2018 – T1 2 of 7 Part A: Analysis of Energy Efficiency Dataset for Buildings Description: In order to design energy efficient buildings, the computation of the Heating Load (HL) and the Cooling Load (CL) is required to determine the specifications of the heating and cooling equipment needed to maintain comfortable indoor air conditions. Energy simulation tools are widely used to analyse or forecast building energy consumption. The Dataset provides energy analysis of Heating Load (denoted as Y1) and the Cooling Load (denoted as Y2) using 768 building shapes that are simulated using a building simulator. Select one of Y1 or Y2 as your variable of interest and focus the analysis on this variable. The dataset comprises 5 features (variables), which are denoted as X1, X2, X3,X4,X5. The description of the variables is given below: X1: Relative compactness in percentage (expressed in decimals) - A measure of building compactness. A high value means highly compact. X2: Surface area in square metres X3: Wall area in square metres X4: Roof area in square metres X5: Overall height in metres Y1: Heating load in kWh.m−2 per annum Y2: Cooling load in kWh.m−2 per annum Tasks: 1. Understand the data [10 marks] (i) Download the txt file (ENB18data.txt) from CloudDeakin and save it to your R work- ing directory. (ii) Assign the data to a matrix, e.g. using the.data <- as.matrix(read.table("enb18data.txt"))="" (iii)="" decide="" whether="" you="" would="" like="" to="" investigate="" heating="" load="" (y1)="" or="" cooling="" load="" (y2).="" this="" is="" your="" variable="" of="" interest.="" generate="" a="" subset="" of="" 300="" data,="" e.g.="" using:="" to="" investigate="" heating="" load="" y1:="" my.data="">-><- the.data[sample(1:768,300),c(1:5,6)]="" to="" investigate="" cooling="" load="" y2:="" sit718="" assignment="" 2018="" –="" t1="" 3="" of="" 7="" my.data="">-><- the.data[sample(1:768,300),c(1:5,7)] (iv) using scatterplots and histograms, report on the general relationship between each of the variables x1,x2, x3, x4 and x5 and your variable of interest y1 (heating load) or y2 (cooling load). include a scatter plot for each of the variables x1, x2, x3, x4, x5 and your variable of interest y1 or y2. include a histogram for x1,x2,...,x5, and y1 or y2. include 1 or 2 sentences about the relationships and distributions. 2. transform the data [15 marks] (i) choose any four from the first five variables x1,x2,x3,x4,x5. make appropriate transformations to the variables (including y1 or y2) so that the val- ues can be aggregated in order to predict the variable of interest (your selected heating load y1, or cooling load y2). the transformations should reflect the general relationship between each of the four variables and the variable of interest. assign your transformed data along with your transformed variable of interest to an array (it should be 300 rows and 5 columns). save it to a txt file titled ”name-transformed.txt” using write.table(your.data,"name-transformed.txt",) (ii) briefly explain each transformation for your selected variables and the variable of interest y1 or y2. (1- 2 sentences each). 3. build models and investigate the importance of each variable. [15 marks] (i) download the aggwafit.r file (from clouddeakin) to your working directory and load into the r workspace using, source("aggwafit718.r") (ii) use the fitting functions to learn the parameters for • weighted arithmetic mean (wam), • weighted power means (pm) with p = 0.5, and p = 2, • ordered weighted averaging function (owa), and • choquet integral. (iii) include two tables in your report - one with the error measures (rmse, av.abs error, pearson correlation, spearman correlation) and one summarising the weights/parameters that were learned for your data. sit718 assignment 2018 – t1 4 of 7 (iv) compare and interpret the data in your tables. be sure to comment on: (a) how good the model is, (b) the importance of each of the variables (the four variables that you have selected), (c) any interaction between any of those variables (are they complementary or redun- dant?) (d) better models favour higher or lower inputs (1-2 paragraphs for part (iv)). 4. use your model for prediction. [10 marks] (i) using your best fitting model, predict the heating load y1 or the cooling load y2 for the following input: x1=0.82, x2=612.5, x3=318.5, x4=147, x5=7. give your result and comment on whether you think it is reasonable. (1-2 sentences) (ii) comment generally on the ideal conditions (in terms of your 4 variables) under which a low heating or cooling load will occur. (1-2 sentences) for this part, your submission should include: 1. a report (created in any word processor), covering all of the items in above. with plots and tables it should only be 2 - 3 pages. 2. a data file named “name-transformed.txt” (where ‘name’ is replaced with your name - you can use your surname or first name - just to help us distinguish them!). 3. r code file, (that you have written to produce your results) named ”name-code.r”, where name is your name; sit718 assignment 2018 – t1 5 of 7 part b: optimisation 1. a food factory is making a special juice for a customer from mixing two different existing products ja and jb. the compositions of ja and jb and prices ($/l) are given as follows, amount (l) in /100 l of ja and jb carrot orange apple cost ($/l) ja 4 6 3 6 jb 8 3 6 5 the customer requires that there must be at least 3.5 litres orange and at least 4 litres of apple concentrate per 100 litres of the juice respectively, but no more than 6 litres of carrot concentrate per 100 litres of juice. the customer needs at least 50 litres of juice per week. a) formulate a linear programming (lp) model for the factory that minimises the total cost of producing the juice while satisfying all constraints. b) use the graphical method to find the optimal solution. show the feasible region and the optimal solution on the graph. annotate all lines on your graph. what is the mini- mal cost for the product? [25 marks] sit718 assignment 2018 – t1 6 of 7 2. a factory makes three products (fabrics): summer, autumn, and winter from three materials containing: cotton, wool and viscose. the following table provides details on the sales price, production cost and purchase cost per ton of products and materials respectively. sales price production cost purchase price summer $50 $4 cotton $30 autumn $55 $4 wool $45 winter $60 $5 viscose $40 the maximal demand (in tons) for each product, the minimum cotton and wool propor- tion in each product is as follows. demand min cotton proportion min wool proportion summer 4500 60% 30% autumn 4000 60 % 30% winter 3800 40% 50% formulate a lp model for the factory that maximises the profit, while satisfying the demand and the cotton and wool proportion constraints. solve the model using ibm ilog cplex. what are the optimal profit and optimal values of the decision variables? hints: 1. let xij ≥ 0 be a decision variable that denotes the number of tons of products j for j ∈ {1 = summer, 2 = autumn, 3 = winter} to be produced from materials i ∈ {c=cotton, w=wool, v=viscose}. 2. the proportion of a particular type of material in a particular type of product can be calculated as: e.g., the proportion of cotton in product summer is given by: xc,1 xc,1 + xw,1 + xv,1 . [25 marks] submission submit to the sit718 clouddeakin dropbox. combine the report from part a and the solutions from part b in one pdf file. copy and paste your clex code to solutions for part b. label the file with name.pdf, where ‘name’ is replaced with your name - you can use your surname or first name - to help distinguish them!). your final submission should consist of no more than 4 files: sit718 assignment 2018 – t1 7 of 7 1. one pdf file (created in any word processor), containing the report of part a, the solutions of the two questions of part b, including cplex code, labelled with your name. this file should be no more than 5-6 pages.; 2. a data file named “name-transformed.txt” (where ‘name’ is replaced with your name; 3. a code with your r file, labelled with your name.r; 4. a code with your cplex file, labelled with your name.mod, also copy the code in your solution document. 0.98 514.5 294 110.25 7 15.55 21.33 0.98 514.5 294 110.25 7 15.55 21.33 0.98 514.5 294 110.25 7 15.55 21.33 0.98 514.5 294 110.25 7 15.55 21.33 0.9 563.5 318.5 122.5 7 20.84 28.28 0.9 563.5 318.5 122.5 7 21.46 25.38 0.9 563.5 318.5 122.5 7 20.71 25.16 0.9 563.5 318.5 122.5 7 19.68 29.6 0.86 588 294 147 7 19.5 27.3 0.86 588 294 147 7 19.95 21.97 0.86 588 294 147 7 19.34 23.49 0.86 588 294 147 7 18.31 27.87 0.82 612.5 318.5 147 7 17.05 23.77 0.82 612.5 318.5 147 7 17.41 21.46 0.82 612.5 318.5 147 7 16.95 21.16 0.82 612.5 318.5 147 7 15.98 24.93 0.79 637 343 147 7 28.52 37.73 0.79 637 343 147 7 29.9 31.27 0.79 637 343 147 7 29.63 30.93 0.79 637 343 147 7 28.75 39.44 0.76 661.5 416.5 122.5 7 24.77 29.79 0.76 661.5 416.5 122.5 7 23.93 29.68 0.76 661.5 416.5 122.5 7 24.77 29.79 the.data[sample(1:768,300),c(1:5,7)]="" (iv)="" using="" scatterplots="" and="" histograms,="" report="" on="" the="" general="" relationship="" between="" each="" of="" the="" variables="" x1,x2,="" x3,="" x4="" and="" x5="" and="" your="" variable="" of="" interest="" y1="" (heating="" load)="" or="" y2="" (cooling="" load).="" include="" a="" scatter="" plot="" for="" each="" of="" the="" variables="" x1,="" x2,="" x3,="" x4,="" x5="" and="" your="" variable="" of="" interest="" y1="" or="" y2.="" include="" a="" histogram="" for="" x1,x2,...,x5,="" and="" y1="" or="" y2.="" include="" 1="" or="" 2="" sentences="" about="" the="" relationships="" and="" distributions.="" 2.="" transform="" the="" data="" [15="" marks]="" (i)="" choose="" any="" four="" from="" the="" first="" five="" variables="" x1,x2,x3,x4,x5.="" make="" appropriate="" transformations="" to="" the="" variables="" (including="" y1="" or="" y2)="" so="" that="" the="" val-="" ues="" can="" be="" aggregated="" in="" order="" to="" predict="" the="" variable="" of="" interest="" (your="" selected="" heating="" load="" y1,="" or="" cooling="" load="" y2).="" the="" transformations="" should="" reflect="" the="" general="" relationship="" between="" each="" of="" the="" four="" variables="" and="" the="" variable="" of="" interest.="" assign="" your="" transformed="" data="" along="" with="" your="" transformed="" variable="" of="" interest="" to="" an="" array="" (it="" should="" be="" 300="" rows="" and="" 5="" columns).="" save="" it="" to="" a="" txt="" file="" titled="" ”name-transformed.txt”="" using="" write.table(your.data,"name-transformed.txt",)="" (ii)="" briefly="" explain="" each="" transformation="" for="" your="" selected="" variables="" and="" the="" variable="" of="" interest="" y1="" or="" y2.="" (1-="" 2="" sentences="" each).="" 3.="" build="" models="" and="" investigate="" the="" importance="" of="" each="" variable.="" [15="" marks]="" (i)="" download="" the="" aggwafit.r="" file="" (from="" clouddeakin)="" to="" your="" working="" directory="" and="" load="" into="" the="" r="" workspace="" using,="" source("aggwafit718.r")="" (ii)="" use="" the="" fitting="" functions="" to="" learn="" the="" parameters="" for="" •="" weighted="" arithmetic="" mean="" (wam),="" •="" weighted="" power="" means="" (pm)="" with="" p="0.5," and="" p="2," •="" ordered="" weighted="" averaging="" function="" (owa),="" and="" •="" choquet="" integral.="" (iii)="" include="" two="" tables="" in="" your="" report="" -="" one="" with="" the="" error="" measures="" (rmse,="" av.abs="" error,="" pearson="" correlation,="" spearman="" correlation)="" and="" one="" summarising="" the="" weights/parameters="" that="" were="" learned="" for="" your="" data.="" sit718="" assignment="" 2018="" –="" t1="" 4="" of="" 7="" (iv)="" compare="" and="" interpret="" the="" data="" in="" your="" tables.="" be="" sure="" to="" comment="" on:="" (a)="" how="" good="" the="" model="" is,="" (b)="" the="" importance="" of="" each="" of="" the="" variables="" (the="" four="" variables="" that="" you="" have="" selected),="" (c)="" any="" interaction="" between="" any="" of="" those="" variables="" (are="" they="" complementary="" or="" redun-="" dant?)="" (d)="" better="" models="" favour="" higher="" or="" lower="" inputs="" (1-2="" paragraphs="" for="" part="" (iv)).="" 4.="" use="" your="" model="" for="" prediction.="" [10="" marks]="" (i)="" using="" your="" best="" fitting="" model,="" predict="" the="" heating="" load="" y1="" or="" the="" cooling="" load="" y2="" for="" the="" following="" input:="" x1="0.82," x2="612.5," x3="318.5," x4="147," x5="7." give="" your="" result="" and="" comment="" on="" whether="" you="" think="" it="" is="" reasonable.="" (1-2="" sentences)="" (ii)="" comment="" generally="" on="" the="" ideal="" conditions="" (in="" terms="" of="" your="" 4="" variables)="" under="" which="" a="" low="" heating="" or="" cooling="" load="" will="" occur.="" (1-2="" sentences)="" for="" this="" part,="" your="" submission="" should="" include:="" 1.="" a="" report="" (created="" in="" any="" word="" processor),="" covering="" all="" of="" the="" items="" in="" above.="" with="" plots="" and="" tables="" it="" should="" only="" be="" 2="" -="" 3="" pages.="" 2.="" a="" data="" file="" named="" “name-transformed.txt”="" (where="" ‘name’="" is="" replaced="" with="" your="" name="" -="" you="" can="" use="" your="" surname="" or="" first="" name="" -="" just="" to="" help="" us="" distinguish="" them!).="" 3.="" r="" code="" file,="" (that="" you="" have="" written="" to="" produce="" your="" results)="" named="" ”name-code.r”,="" where="" name="" is="" your="" name;="" sit718="" assignment="" 2018="" –="" t1="" 5="" of="" 7="" part="" b:="" optimisation="" 1.="" a="" food="" factory="" is="" making="" a="" special="" juice="" for="" a="" customer="" from="" mixing="" two="" different="" existing="" products="" ja="" and="" jb.="" the="" compositions="" of="" ja="" and="" jb="" and="" prices="" ($/l)="" are="" given="" as="" follows,="" amount="" (l)="" in="" 100="" l="" of="" ja="" and="" jb="" carrot="" orange="" apple="" cost="" ($/l)="" ja="" 4="" 6="" 3="" 6="" jb="" 8="" 3="" 6="" 5="" the="" customer="" requires="" that="" there="" must="" be="" at="" least="" 3.5="" litres="" orange="" and="" at="" least="" 4="" litres="" of="" apple="" concentrate="" per="" 100="" litres="" of="" the="" juice="" respectively,="" but="" no="" more="" than="" 6="" litres="" of="" carrot="" concentrate="" per="" 100="" litres="" of="" juice.="" the="" customer="" needs="" at="" least="" 50="" litres="" of="" juice="" per="" week.="" a)="" formulate="" a="" linear="" programming="" (lp)="" model="" for="" the="" factory="" that="" minimises="" the="" total="" cost="" of="" producing="" the="" juice="" while="" satisfying="" all="" constraints.="" b)="" use="" the="" graphical="" method="" to="" find="" the="" optimal="" solution.="" show="" the="" feasible="" region="" and="" the="" optimal="" solution="" on="" the="" graph.="" annotate="" all="" lines="" on="" your="" graph.="" what="" is="" the="" mini-="" mal="" cost="" for="" the="" product?="" [25="" marks]="" sit718="" assignment="" 2018="" –="" t1="" 6="" of="" 7="" 2.="" a="" factory="" makes="" three="" products="" (fabrics):="" summer,="" autumn,="" and="" winter="" from="" three="" materials="" containing:="" cotton,="" wool="" and="" viscose.="" the="" following="" table="" provides="" details="" on="" the="" sales="" price,="" production="" cost="" and="" purchase="" cost="" per="" ton="" of="" products="" and="" materials="" respectively.="" sales="" price="" production="" cost="" purchase="" price="" summer="" $50="" $4="" cotton="" $30="" autumn="" $55="" $4="" wool="" $45="" winter="" $60="" $5="" viscose="" $40="" the="" maximal="" demand="" (in="" tons)="" for="" each="" product,="" the="" minimum="" cotton="" and="" wool="" propor-="" tion="" in="" each="" product="" is="" as="" follows.="" demand="" min="" cotton="" proportion="" min="" wool="" proportion="" summer="" 4500="" 60%="" 30%="" autumn="" 4000="" 60="" %="" 30%="" winter="" 3800="" 40%="" 50%="" formulate="" a="" lp="" model="" for="" the="" factory="" that="" maximises="" the="" profit,="" while="" satisfying="" the="" demand="" and="" the="" cotton="" and="" wool="" proportion="" constraints.="" solve="" the="" model="" using="" ibm="" ilog="" cplex.="" what="" are="" the="" optimal="" profit="" and="" optimal="" values="" of="" the="" decision="" variables?="" hints:="" 1.="" let="" xij="" ≥="" 0="" be="" a="" decision="" variable="" that="" denotes="" the="" number="" of="" tons="" of="" products="" j="" for="" j="" ∈="" {1="Summer," 2="Autumn," 3="Winter}" to="" be="" produced="" from="" materials="" i="" ∈="" {c="Cotton," w="Wool," v="Viscose}." 2.="" the="" proportion="" of="" a="" particular="" type="" of="" material="" in="" a="" particular="" type="" of="" product="" can="" be="" calculated="" as:="" e.g.,="" the="" proportion="" of="" cotton="" in="" product="" summer="" is="" given="" by:="" xc,1="" xc,1="" +="" xw,1="" +="" xv,1="" .="" [25="" marks]="" submission="" submit="" to="" the="" sit718="" clouddeakin="" dropbox.="" combine="" the="" report="" from="" part="" a="" and="" the="" solutions="" from="" part="" b="" in="" one="" pdf="" file.="" copy="" and="" paste="" your="" clex="" code="" to="" solutions="" for="" part="" b.="" label="" the="" file="" with="" name.pdf,="" where="" ‘name’="" is="" replaced="" with="" your="" name="" -="" you="" can="" use="" your="" surname="" or="" first="" name="" -="" to="" help="" distinguish="" them!).="" your="" final="" submission="" should="" consist="" of="" no="" more="" than="" 4="" files:="" sit718="" assignment="" 2018="" –="" t1="" 7="" of="" 7="" 1.="" one="" pdf="" file="" (created="" in="" any="" word="" processor),="" containing="" the="" report="" of="" part="" a,="" the="" solutions="" of="" the="" two="" questions="" of="" part="" b,="" including="" cplex="" code,="" labelled="" with="" your="" name.="" this="" file="" should="" be="" no="" more="" than="" 5-6="" pages.;="" 2.="" a="" data="" file="" named="" “name-transformed.txt”="" (where="" ‘name’="" is="" replaced="" with="" your="" name;="" 3.="" a="" code="" with="" your="" r="" file,="" labelled="" with="" your="" name.r;="" 4.="" a="" code="" with="" your="" cplex="" file,="" labelled="" with="" your="" name.mod,="" also="" copy="" the="" code="" in="" your="" solution="" document.="" 0.98="" 514.5="" 294="" 110.25="" 7="" 15.55="" 21.33="" 0.98="" 514.5="" 294="" 110.25="" 7="" 15.55="" 21.33="" 0.98="" 514.5="" 294="" 110.25="" 7="" 15.55="" 21.33="" 0.98="" 514.5="" 294="" 110.25="" 7="" 15.55="" 21.33="" 0.9="" 563.5="" 318.5="" 122.5="" 7="" 20.84="" 28.28="" 0.9="" 563.5="" 318.5="" 122.5="" 7="" 21.46="" 25.38="" 0.9="" 563.5="" 318.5="" 122.5="" 7="" 20.71="" 25.16="" 0.9="" 563.5="" 318.5="" 122.5="" 7="" 19.68="" 29.6="" 0.86="" 588="" 294="" 147="" 7="" 19.5="" 27.3="" 0.86="" 588="" 294="" 147="" 7="" 19.95="" 21.97="" 0.86="" 588="" 294="" 147="" 7="" 19.34="" 23.49="" 0.86="" 588="" 294="" 147="" 7="" 18.31="" 27.87="" 0.82="" 612.5="" 318.5="" 147="" 7="" 17.05="" 23.77="" 0.82="" 612.5="" 318.5="" 147="" 7="" 17.41="" 21.46="" 0.82="" 612.5="" 318.5="" 147="" 7="" 16.95="" 21.16="" 0.82="" 612.5="" 318.5="" 147="" 7="" 15.98="" 24.93="" 0.79="" 637="" 343="" 147="" 7="" 28.52="" 37.73="" 0.79="" 637="" 343="" 147="" 7="" 29.9="" 31.27="" 0.79="" 637="" 343="" 147="" 7="" 29.63="" 30.93="" 0.79="" 637="" 343="" 147="" 7="" 28.75="" 39.44="" 0.76="" 661.5="" 416.5="" 122.5="" 7="" 24.77="" 29.79="" 0.76="" 661.5="" 416.5="" 122.5="" 7="" 23.93="" 29.68="" 0.76="" 661.5="" 416.5="" 122.5="" 7="" 24.77="">- the.data[sample(1:768,300),c(1:5,7)] (iv) using scatterplots and histograms, report on the general relationship between each of the variables x1,x2, x3, x4 and x5 and your variable of interest y1 (heating load) or y2 (cooling load). include a scatter plot for each of the variables x1, x2, x3, x4, x5 and your variable of interest y1 or y2. include a histogram for x1,x2,...,x5, and y1 or y2. include 1 or 2 sentences about the relationships and distributions. 2. transform the data [15 marks] (i) choose any four from the first five variables x1,x2,x3,x4,x5. make appropriate transformations to the variables (including y1 or y2) so that the val- ues can be aggregated in order to predict the variable of interest (your selected heating load y1, or cooling load y2). the transformations should reflect the general relationship between each of the four variables and the variable of interest. assign your transformed data along with your transformed variable of interest to an array (it should be 300 rows and 5 columns). save it to a txt file titled ”name-transformed.txt” using write.table(your.data,"name-transformed.txt",) (ii) briefly explain each transformation for your selected variables and the variable of interest y1 or y2. (1- 2 sentences each). 3. build models and investigate the importance of each variable. [15 marks] (i) download the aggwafit.r file (from clouddeakin) to your working directory and load into the r workspace using, source("aggwafit718.r") (ii) use the fitting functions to learn the parameters for • weighted arithmetic mean (wam), • weighted power means (pm) with p = 0.5, and p = 2, • ordered weighted averaging function (owa), and • choquet integral. (iii) include two tables in your report - one with the error measures (rmse, av.abs error, pearson correlation, spearman correlation) and one summarising the weights/parameters that were learned for your data. sit718 assignment 2018 – t1 4 of 7 (iv) compare and interpret the data in your tables. be sure to comment on: (a) how good the model is, (b) the importance of each of the variables (the four variables that you have selected), (c) any interaction between any of those variables (are they complementary or redun- dant?) (d) better models favour higher or lower inputs (1-2 paragraphs for part (iv)). 4. use your model for prediction. [10 marks] (i) using your best fitting model, predict the heating load y1 or the cooling load y2 for the following input: x1=0.82, x2=612.5, x3=318.5, x4=147, x5=7. give your result and comment on whether you think it is reasonable. (1-2 sentences) (ii) comment generally on the ideal conditions (in terms of your 4 variables) under which a low heating or cooling load will occur. (1-2 sentences) for this part, your submission should include: 1. a report (created in any word processor), covering all of the items in above. with plots and tables it should only be 2 - 3 pages. 2. a data file named “name-transformed.txt” (where ‘name’ is replaced with your name - you can use your surname or first name - just to help us distinguish them!). 3. r code file, (that you have written to produce your results) named ”name-code.r”, where name is your name; sit718 assignment 2018 – t1 5 of 7 part b: optimisation 1. a food factory is making a special juice for a customer from mixing two different existing products ja and jb. the compositions of ja and jb and prices ($/l) are given as follows, amount (l) in /100 l of ja and jb carrot orange apple cost ($/l) ja 4 6 3 6 jb 8 3 6 5 the customer requires that there must be at least 3.5 litres orange and at least 4 litres of apple concentrate per 100 litres of the juice respectively, but no more than 6 litres of carrot concentrate per 100 litres of juice. the customer needs at least 50 litres of juice per week. a) formulate a linear programming (lp) model for the factory that minimises the total cost of producing the juice while satisfying all constraints. b) use the graphical method to find the optimal solution. show the feasible region and the optimal solution on the graph. annotate all lines on your graph. what is the mini- mal cost for the product? [25 marks] sit718 assignment 2018 – t1 6 of 7 2. a factory makes three products (fabrics): summer, autumn, and winter from three materials containing: cotton, wool and viscose. the following table provides details on the sales price, production cost and purchase cost per ton of products and materials respectively. sales price production cost purchase price summer $50 $4 cotton $30 autumn $55 $4 wool $45 winter $60 $5 viscose $40 the maximal demand (in tons) for each product, the minimum cotton and wool propor- tion in each product is as follows. demand min cotton proportion min wool proportion summer 4500 60% 30% autumn 4000 60 % 30% winter 3800 40% 50% formulate a lp model for the factory that maximises the profit, while satisfying the demand and the cotton and wool proportion constraints. solve the model using ibm ilog cplex. what are the optimal profit and optimal values of the decision variables? hints: 1. let xij ≥ 0 be a decision variable that denotes the number of tons of products j for j ∈ {1 = summer, 2 = autumn, 3 = winter} to be produced from materials i ∈ {c=cotton, w=wool, v=viscose}. 2. the proportion of a particular type of material in a particular type of product can be calculated as: e.g., the proportion of cotton in product summer is given by: xc,1 xc,1 + xw,1 + xv,1 . [25 marks] submission submit to the sit718 clouddeakin dropbox. combine the report from part a and the solutions from part b in one pdf file. copy and paste your clex code to solutions for part b. label the file with name.pdf, where ‘name’ is replaced with your name - you can use your surname or first name - to help distinguish them!). your final submission should consist of no more than 4 files: sit718 assignment 2018 – t1 7 of 7 1. one pdf file (created in any word processor), containing the report of part a, the solutions of the two questions of part b, including cplex code, labelled with your name. this file should be no more than 5-6 pages.; 2. a data file named “name-transformed.txt” (where ‘name’ is replaced with your name; 3. a code with your r file, labelled with your name.r; 4. a code with your cplex file, labelled with your name.mod, also copy the code in your solution document. 0.98 514.5 294 110.25 7 15.55 21.33 0.98 514.5 294 110.25 7 15.55 21.33 0.98 514.5 294 110.25 7 15.55 21.33 0.98 514.5 294 110.25 7 15.55 21.33 0.9 563.5 318.5 122.5 7 20.84 28.28 0.9 563.5 318.5 122.5 7 21.46 25.38 0.9 563.5 318.5 122.5 7 20.71 25.16 0.9 563.5 318.5 122.5 7 19.68 29.6 0.86 588 294 147 7 19.5 27.3 0.86 588 294 147 7 19.95 21.97 0.86 588 294 147 7 19.34 23.49 0.86 588 294 147 7 18.31 27.87 0.82 612.5 318.5 147 7 17.05 23.77 0.82 612.5 318.5 147 7 17.41 21.46 0.82 612.5 318.5 147 7 16.95 21.16 0.82 612.5 318.5 147 7 15.98 24.93 0.79 637 343 147 7 28.52 37.73 0.79 637 343 147 7 29.9 31.27 0.79 637 343 147 7 29.63 30.93 0.79 637 343 147 7 28.75 39.44 0.76 661.5 416.5 122.5 7 24.77 29.79 0.76 661.5 416.5 122.5 7 23.93 29.68 0.76 661.5 416.5 122.5 7 24.77 29.79>