久久久久久精品无码人妻_青春草无码精品视频在线观_无码精品国产VA在线观看_国产色无码专区在线观看

FIT5216代做、代寫Java/c++程序設(shè)計(jì)

時(shí)間:2024-03-23  來源:  作者: 我要糾錯(cuò)



FIT5216: Modelling Discrete Optimization Problems
Assignment 1: Animal Capture
1 Overview
For this assignment, your task is to write a MiniZinc model for a given problem specification.
• Submit your work to the MiniZinc auto grading system (using the submit button in the
MiniZinc IDE).
You have to submit by the due date (Friday 22nd March 2024, 11:55pm), using MiniZinc to
receive full marks. You can submit as often as you want before the due date. Late submissions
without special consideration receive a penalty of 10% of the available marks per day. Submissions
are not accepted more than 7 days after the original deadline.
This is an individual assignment. Your submission has to be entirely your own work. We
will use similarity detection software to detect any attempt at collusion, and the penalties are
quite harsh. Note that we will compare all your saved models against others. You may not use
large language models such as ChatGPT for any part of this assignment. If in doubt, contact
your teaching team with any questions!
Learning outcomes from this assessment include:
• model a discrete optimisation problem using a mix of basic and more advanced modelling
techniques in a high level modelling language;
• identify and fix errors in models;
2 Problem Statement
You are charged with setting up an animal monitoring program in a forested region. You need to
set up a wireless network of camera traps to detect as much of the wildlife as possible given your
budget restrictions.
Input data is given in MiniZinc data format:
LOC = ⟨ the set of locations where you can place traps and the base ⟩;
base = ⟨ the base location where you collect information ⟩;
n = ⟨ The number of camera traps available to use ⟩;
wild = ⟨ Wildlife density at each location ⟩;
cost = ⟨ cost to setup a trap at each location ⟩;
d = ⟨ distance matrix from each location to another ⟩;
move = ⟨ animal movement distance ⟩;
link = ⟨ wireless link distance ⟩;
mind = ⟨ minimum distance between two traps ⟩;
opcost = ⟨ operating cost for each trap ⟩;
budget = ⟨ budget for setting up system ⟩;
1
Note that the base location is always the first in LOC. If the cost to setup a trap at a location is
negative then we are not able to set up a trap there.
Here is a sample data set:
LOC = { BASE, A, B, C, D, E, F, G, H };
base = BASE;
n = 3;
wild = [ 0, 10, 7, 3, 2, 8, 6, 4, 9 ];
cost = [ 0, 6, 4, 5, -1, 3, 2, 2, 4 ];
d = [| 0, 4, 8, 12, 16, 18, 19, 14, 5
| 4, 0, 5, 9, 12, 17, 20, 7, 9
| 8, 5, 0, 5, 8, 12, 14, 15, 12
|12, 9, 5, 0, 3, 6, 8, 10, 11
|16, 12, 8, 3, 0, 9, 2, 6, 8
|18, 17, 12, 6, 9, 0, 5, 8, 15
|19, 20, 14, 8, 2, 5, 0, 8, 12
|14, 7, 15, 10, 6, 8, 8, 0, 9
| 5, 9, 12, 11, 8, 15, 12, 9, 0 |];
move = 7;
link = 6;
mind = 3;
opcost = 8;
budget = 26;
There are 9 locations, the first location is the BASE of operations, where no camera traps can be
placed. There are three camera traps available for use. Each location has a wildlife density and
cost to set up a trap there. Note that since the cost for D is −1 we are not able to set up a trap
there. The distance matrix is symmetric, and has 0s on the diagonal (the distance to a location
from itself is always 0). Animals can move up to distance 7, while the wireless link has range 6.
Each pair of traps must be placed at least 3 distance apart. Operating each trap costs 8, and a
total budget for operating and setting up the system is 26.
There are two decisions to be made
array[0..n] of var LOC: x; % where traps are placed, but x[0] = base
array[1..n] of var 0..n: s; % send location (only used in part C)
The aim is to cover the most possible wildlife. A location is “covered” if there is a trap at a
location at most move from this location.
Part A - Using all the traps
Create a model animal.mzn that takes data in the format specified above and decides on exactly
n different camera trap locations. For the moment we ignore the budget constraint.
So the aim is to select n different locations in x[1..n]. The 0th location must be set to base
and no other location set to base. For part A and part B, just set s[i] = 0 for all i.
Remember you can use the expression d[u,v] to find the distance between two locations, even
if the locations u and v are decisions. You will need to decide which locations are covered, and
2
you may want to build an auxilliary decision variable to store this information, or to count for each
locations how many traps cover it.
Here is a sample solution.
x = [0: BASE, 1: H, 2: C, 3: A];
s = [0, 0, 0];
total_wild = 43;
We elected to place traps at locations {A, C, H}. The total wildlife that is covered by this setup
is 43, being the wildlife at locations {A, B, C, D, E, G, H} (which are within 7 of one of the traps).
Note that no two traps are less than distance 3 apart, and no traps are set up at locations with
negative cost.
Note that you will not be able to obtain many marks by just answering part A. Some problems
will have no solution, whereas using part B they have a solution.
Part B - Possibly using less traps
Modify your model animal.mzn to treat n as a bound on the maximal possible number of equipment.
We will use the base location as a dummy value. So if x[i] = base then this indicates no trap
placed. We must force all the dummy locations to be at the end of the x array (except that x[0]
= base always).
Now you must take into account the budget constraint: that is the total operating cost of traps
installed plus the install cost must be no more than the budget.
Note that you should endeavour to only have one way of representing each possible set of
installed traps. This will usually make the model more efficient.
Here is a sample solution for part B.
x = [0: BASE, 1: B, 2: F, 3: BASE];
s = [0, 0, 0];
total_wild = 36;
Now we only place traps at locations {B, F}. The final entry in the x array indicates we do not
place a third trap. The total wildlife covered is 36 being the wildlife at locations {A, B, C, D, E, F}
(which are within 7 of one of the traps). The two traps are 14 apart, well outside the minimum
distance. The total budget used is 16 in operating cost (running two cameras) plus 4 + 2 = 6 setup
costs, fitting within the budget of 26. Note that the total cost for the previous solution {A, C, H}
is 3 × 8 + 6 + 5 + 4 = 39 over the given budget.
Note that you will not be able to obtain full marks by just answering parts A and B, but you
can get a good mark. For full marks you need to correctly complete part C but it is designed to
be challenging.
Part C - Connecting the network
The camera traps have to send the photos to the base for the system to work. To do this each
trap must send its information to the base directly, or to another trap which then sends on the
information further. To represent this network, we use s[i] to refer to the place (from 0 to n)
where the camera at the i
th place sends its information. Note that sending to place 0 represents
3
sending to the base (x[0] = base). To ensure that the network is a tree we require that the place
where location i sends its info is a place less than i. Note that we require the distance between the
location sending and receiving information is no more than link.
For dummy locations i where x[i] = base we should set the send place to 0, but there is no
distance constraint, since we are not actually setting up a camera.
A solution for part C is given by
x = [0: BASE, 1: A, 2: B, 3: BASE];
s = [0, 1, 0];
total_wild = 24;
Again we only use two camera traps at {A, B}. The trap at A sends its info to location 0, the base,
at distance 4; while the trap at B sends its info to location 1, A, at distance 5 (which will then be
sent on to the base by A); hence the link constraints are satisfied. Note that the previous solution
{B, F} is no longer valid since F is at distance 19 from BASE and 14 from B, so no send link
is available. The total wildlife covered is 24 consisting of {A, B, C, G}. The budget constraints is
satisfied with cost 2 × 8 + 6 + 4 = 26.
3 Instructions
Edit the provided mzn model files to solve the problems described above. You are provided with
some sample data files to try your model on. Your implementations can be tested locally by using
the Run+check icon in the MiniZinc IDE. Note that the checker for this assignment will only
test whether your model produces output in the required format, it does not check whether your
solutions are correct. The grader on the server will give you feedback on the correctness of your
submitted solutions and models.
4 Marking
The marks are automatically calculated. With only Part A you can get full marks for a few
instances, most will get 0. With Part A and part B you can get full marks for many instances,
and otherwise a max of 0.75. The autograder will grade instances as: 0.25 for any solution, 0.5 for
a reasonable solution, 0.75 for a good solution, and full marks for the optimal solution. Because
part C adds constraints which can removes solutions, part B solutions that ignore part C may give
superoptimal answers (violating the C constraints), these will get a maximum of 0.75 marks. To
get maximum marks your model must be efficient as well as correct. Ways to improve efficiency
are:
• Make sure there is only one (or at least as few as possible) ways of representing the same
solution (set of traps placed).
• Express the constraints you need in the simplest possible form
The submission has 10 marks for locally tested data and 10 for model testing, for a total of 20
marks. For model testing you will only get feedback of marks for each test, you will not be able to
see the test data. Concentrate on getting the locally tested data working first, since this is easier
請(qǐng)加QQ:99515681  郵箱:99515681@qq.com   WX:codehelp 

標(biāo)簽:

掃一掃在手機(jī)打開當(dāng)前頁
  • 上一篇:代寫DSCI 525、Python/c++程序設(shè)計(jì)代做
  • 下一篇:代寫EECS 183 Project 4 代做python
  • 無相關(guān)信息
    昆明生活資訊

    昆明圖文信息
    蝴蝶泉(4A)-大理旅游
    蝴蝶泉(4A)-大理旅游
    油炸竹蟲
    油炸竹蟲
    酸筍煮魚(雞)
    酸筍煮魚(雞)
    竹筒飯
    竹筒飯
    香茅草烤魚
    香茅草烤魚
    檸檬烤魚
    檸檬烤魚
    昆明西山國家級(jí)風(fēng)景名勝區(qū)
    昆明西山國家級(jí)風(fēng)景名勝區(qū)
    昆明旅游索道攻略
    昆明旅游索道攻略
  • 短信驗(yàn)證碼平臺(tái) 理財(cái) WPS下載

    關(guān)于我們 | 打賞支持 | 廣告服務(wù) | 聯(lián)系我們 | 網(wǎng)站地圖 | 免責(zé)聲明 | 幫助中心 | 友情鏈接 |

    Copyright © 2025 kmw.cc Inc. All Rights Reserved. 昆明網(wǎng) 版權(quán)所有
    ICP備06013414號(hào)-3 公安備 42010502001045

    久久久久久精品无码人妻_青春草无码精品视频在线观_无码精品国产VA在线观看_国产色无码专区在线观看

    免费av手机在线观看| 女人被男人躁得好爽免费视频| 一本色道久久88亚洲精品综合| 人人妻人人做人人爽| 波多野结衣天堂| 日本黄大片在线观看| 久久国产这里只有精品| 青娱乐自拍偷拍| 无码人妻aⅴ一区二区三区日本| 欧美成人三级在线视频| 午夜视频在线网站| 久久精品无码中文字幕| 在线免费黄色网| 国产裸体免费无遮挡| 国产专区在线视频| 哪个网站能看毛片| 97超碰人人爽| ijzzijzzij亚洲大全| 欧美亚洲一二三区| 992tv快乐视频| 在线视频观看91| 少妇高清精品毛片在线视频| 中文字幕在线视频一区二区三区| 欧美极品欧美精品欧美图片| 亚洲色成人www永久在线观看 | www亚洲国产| 国产精品沙发午睡系列| 黄大色黄女片18第一次| 免费观看黄色的网站| 国产xxxxx在线观看| 亚洲国产精品成人天堂| 手机在线免费毛片| 亚洲天堂国产视频| 亚洲中文字幕无码不卡电影| 国产人妻互换一区二区| 免费看黄色a级片| 超碰成人在线免费观看| 手机在线免费观看毛片| 国产精品无码电影在线观看| 亚洲综合激情五月| 久久av喷吹av高潮av| 无码aⅴ精品一区二区三区浪潮 | 女性隐私黄www网站视频| 欧美s码亚洲码精品m码| 和岳每晚弄的高潮嗷嗷叫视频| 欧洲精品在线播放| 精品久久久噜噜噜噜久久图片| 男人日女人逼逼| 亚洲熟妇无码另类久久久| 精品国产一区二区三区无码| 日韩精品一区二区三区四| av电影一区二区三区| 天天干天天操天天干天天操| 国产农村妇女精品久久| 91福利免费观看| 小明看看成人免费视频| 欧美特级aaa| 日韩欧美精品在线观看视频| 午夜福利123| 日韩欧美国产片| 自拍一级黄色片| 久久久久久av无码免费网站下载| 99色这里只有精品| 黄色免费视频大全| www日韩视频| 岛国av在线免费| 丰满女人性猛交| 国产一区二区三区在线免费| 久久黄色片视频| 麻豆av免费在线| 99日在线视频| 精品一区二区三区毛片| 亚洲国产成人精品无码区99| 国产精品视频一区二区三区四区五区| 久久九九国产视频| 一本色道久久亚洲综合精品蜜桃| 91视频福利网| 国产女主播自拍| 国产成人av影视| 99精品视频国产| 国产午夜大地久久| 男女视频在线看| 中文字幕一区二区三区四区五区人| 免费看污黄网站| 男插女免费视频| 丰满人妻中伦妇伦精品app| 亚洲人视频在线| 日韩成人三级视频| 99视频在线免费| 异国色恋浪漫潭| 日韩av在线综合| 不卡中文字幕在线| 日日鲁鲁鲁夜夜爽爽狠狠视频97| 99视频精品免费| 日韩一二区视频| 激情五月婷婷久久| 最新免费av网址| 一道本视频在线观看| 香蕉视频免费版| 丁香婷婷激情网| 日本道在线视频| 免费在线看黄色片| 制服丝袜中文字幕第一页| 干日本少妇首页| av日韩一区二区三区| 欧美 日韩 激情| 色婷婷综合在线观看| 国产中文字幕乱人伦在线观看| 亚洲欧美天堂在线| 污视频免费在线观看网站| 免费在线看黄色片| 日韩在线综合网| 欧美 国产 日本| 51xx午夜影福利| 久久无码高潮喷水| 激情五月六月婷婷| 国产精品69页| 黄色一级片在线看| 在线观看免费不卡av| 国产一级黄色录像片| 99视频在线视频| 777精品久无码人妻蜜桃| 老太脱裤让老头玩ⅹxxxx| 国产高清av片| 免费看国产曰批40分钟| 穿情趣内衣被c到高潮视频| www.av中文字幕| 亚洲免费av网| 色乱码一区二区三区在线| 国产网站免费在线观看| 国产又粗又猛又爽又黄的网站 | 国产在线观看中文字幕| 91热这里只有精品| 美女av免费在线观看| 久草视频国产在线| 国产91av视频在线观看| 日韩av片网站| caopor在线视频| 116极品美女午夜一级| 国产伦精品一区二区三区四区视频_| 国产成人美女视频| 久久99爱视频| 91最新在线观看| 国产麻花豆剧传媒精品mv在线 | 最新中文字幕免费视频| 日韩在线xxx| 免费在线激情视频| 97在线播放视频| 男人天堂网视频| 国产片侵犯亲女视频播放| a级片一区二区| 国产精品三级一区二区| 欧美少妇在线观看| 好色先生视频污| 97人人爽人人| 国产日韩第一页| 永久av免费在线观看| 国产精品av免费观看| 在线视频观看91| 国产一区一区三区| 国产肥臀一区二区福利视频| 人人爽人人av| 熟女熟妇伦久久影院毛片一区二区| 日本免费观看网站| 免费人成在线观看视频播放| 精品人妻大屁股白浆无码| 久久艹国产精品| 欧美人与动牲交xxxxbbbb| 九一免费在线观看| 欧美图片激情小说| av高清在线免费观看| 欧美亚洲一二三区| 国产综合免费视频| 污网站免费在线| 国产黑丝在线视频| 国产成人一区二区三区别| 国产二级片在线观看| 92看片淫黄大片一级| 91热这里只有精品| 亚洲欧美手机在线| 日韩欧美一级在线| 国产欧美在线一区| 日韩精品视频一二三| 日本一级淫片演员| av免费看网址| 91视频免费版污| 交换做爰国语对白| 91.com在线| 国产精品免费观看久久| 亚洲精品午夜在线观看| 久久久天堂国产精品| 丁香花在线影院观看在线播放| 免费看欧美黑人毛片| 日韩网址在线观看| 午夜影院免费版| 国产激情在线看| 干日本少妇首页| 免费看又黄又无码的网站| 中文字幕国产免费| 在线观看免费成人av|