program代做、代写MATLAB编程设计
Assignment 1: Optimisation
Where to submit: Submit the assignment report via the Blackboard Turnitin submission
system.
Instruction:
For this assignment, you must carry out the process of attempting to solve different
optimisation problems. For each question, you are required to report your results in detail. It
should include your best solution and its corresponding solution procedures. If you are asked
to solve those sub-questions using MATLAB, their MATLAB source code with detailed
comments is required.
Marks will be awarded based on how well your submission addresses the above points.
This assignment is worth 20% of the total marks for the course.
Question 1
Suppose a linear equation is to be fit predicting raw material price as a linear function of the
quantity of product A and produce B (made of the same raw material) sold given the
following data:
Quantity of product A sold Quantity of product B sold Price of raw material
9 1 5
13 8 2
17 3 9
8 5 10
10 9 4
15 2 6
Assume the prediction equation is 𝑧(𝑛) = 𝑎𝑥(𝑛) + 𝑏𝑦(𝑛) + 𝑐, where 𝑎, 𝑏 are the prediction
parameters on the quantity of products A and B sold, respectively, and 𝑐 is the intercept. Define
𝑥(𝑛), 𝑦(𝑛) as the observations on the quantity of products A and B sold, respectively, and
𝑧(𝑛) as the observed price. 𝑛 identifies the observation index.
(1) Suppose the desired criterion for equation fit is that the fitted data exhibit a minimum of
the sum of the absolute deviations between the raw material price and its prediction.
Please develop a Linear Programming (LP) model to minimise the sum of the absolute
deviations and write down the tabular form of the formed LP problem.
(25 marks)
2
(2) Suppose the desired criterion for equation fit is that the fitted data exhibit a minimum of
the largest absolute deviation between the raw material price and its prediction.
Please develop an LP model to minimize the largest absolute deviation and solve the
formed LP problem using the MATLAB function-linprog.
(25 marks)
(3) Suppose the desired criteria for equation fit is that the fitted data exhibit a minimum sum
of the squared deviations between the raw material price and its prediction. You are then
asked to solve the formed least square (LS) problem.
- Write down the linear system equation (Ax=B) of the LS problem.
(15 marks)
- Solve the LS problem using the normal equations approach.
(10 marks)
Question 2
You have certain types of chicken wire to build a temporary enclosure for holding chicken in
your backyard. You plan to build a triangular enclosure (the lengths of three sides are x, y and
z, respectively. See Figure 1:
Figure 1 Triangular enclosure (chicken house)
You have 100m of chicken wire, and you want to maximise the area of the enclosure for your
given materials.
If the lengths of two sides have the following relationship: x=y. Please find the lengths of three
sides x, y, and z using the Successive Parabolic Interpolation method and Newton’s method.
Please convert it to a one-dimensional optimisation problem and provide your MATLAB code.
(25 marks)
x
y
z

热门主题

课程名

socs0030 data7201 data2x01 mn-3507 mat246h1 ib2d90 ib3j80 acc207 comp90007 compx518-24a fit1050 info1111 acct2201 buad801 compsci369 cse 332s info1110 math1033 scie1000 eeee2057 math4063 cmt219 econ5074 fit3094 finm081 econ2005 cpt202 ec333 econ0001 eng5009 csse2310/csse7231 cpt204 elec4630 dts104tc ma117 comp2017 640481 csit128 eco000109m finc5090 ggr202h5f nbs8295 4ssmn902 chc6171 dsa1002 ebu6304 csci-ua.202 ma416 mec206 comp1021 iom209 com6511 cpt206 bism7202 cpt106 ecom209 comp1212 idepg001 math1062 mn-3526 fnce3000 fmhu5002 psyc10003 fina2222 be631-6-sp/1 finc2011 37989 5aaob204 citx1401 econ0028 bsan3204 comp9123 cmt218 itp122 qbus6820 ecmt1020 ecmt2150 bus0117 soft3202/comp9202 basc0057 mecm30013 aem4060 acb1120 comp2123 econ2151 ecmt6006 inmr77 com 5140 ocmp5328 comp1039 had7002h cmt309 asb-3715 elec373 cpt204-2324 be631-6-sp mast10007 econ3016 comp30023 buss6002 comp4403 finm1416 csc-30002 6qqmn971 fin668 mnfg309 inft2031 cits1402 comp2011 eecs 3221 ebu4201 ct60a9600 com336 8pro102 comp8410 comp3425 econ7300 comp222 finm8007 comp2006 comp26020 eeen3007j cis432 comp1721 csci251 comp5125m com398sust finm7405 econ7021 fin600 infs4205/7205 mktg2510- 32022 mth6158 comp328 finn41615 2024 mec302 mgmt3004 mgt7158 com160 as.640.440 f27sb rv32i eecs 113 comp1117b cs 412 comp 315 ecs 116 fit5046 comp30024 acs341 econ1020 isys3014 acc408 comp1047 csc 256 cs 6347 comp5349 ecx2953/ecx5953 bios706 msin0041 econ339 finm7008 comp34212 csmde21 estr2520 comp285/comp220 mds5130/iba6205 finc6010 is3s665 busi2194 125.785 comp3310 mth6150 comp30027 busi2211 bff2401 fnce90046 visu2001 mang6554 finc6001 125785 data423-24s1 engi 1331 fint2100 comp20005 eec286 (520|600).666 cs 61b can202 mast20029 info20003 stat512 econ3208 cmpsc311 engg1340 ecmt1010 fit5216 basc0003
联系我们
EMail: 99515681@qq.com
QQ: 99515681
留学生作业帮-留学生的知心伴侣!
工作时间:08:00-21:00
python代写
微信客服:codinghelp
站长地图