美女扒开腿免费视频_蜜桃传媒一区二区亚洲av_先锋影音av在线_少妇一级淫片免费放播放_日本泡妞xxxx免费视频软件_一色道久久88加勒比一_熟女少妇一区二区三区_老司机免费视频_潘金莲一级黄色片_精品国产精品国产精品_黑人巨大猛交丰满少妇

FIT5216代做、代寫Java/c++程序設計

時間:2024-03-23  來源:  作者: 我要糾錯



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
請加QQ:99515681  郵箱:99515681@qq.com   WX:codehelp 

標簽:

掃一掃在手機打開當前頁
  • 上一篇:代寫DSCI 525、Python/c++程序設計代做
  • 下一篇:代寫EECS 183 Project 4 代做python
  • 無相關信息
    昆明生活資訊

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

    關于我們 | 打賞支持 | 廣告服務 | 聯系我們 | 網站地圖 | 免責聲明 | 幫助中心 | 友情鏈接 |

    Copyright © 2025 kmw.cc Inc. All Rights Reserved. 昆明網 版權所有
    ICP備06013414號-3 公安備 42010502001045

    美女扒开腿免费视频_蜜桃传媒一区二区亚洲av_先锋影音av在线_少妇一级淫片免费放播放_日本泡妞xxxx免费视频软件_一色道久久88加勒比一_熟女少妇一区二区三区_老司机免费视频_潘金莲一级黄色片_精品国产精品国产精品_黑人巨大猛交丰满少妇
    成人涩涩小片视频日本| 日本久久久久久久久久| 91精品一区二区三区蜜桃| 日韩女优一区二区| 97在线观看视频免费| 日本黄色小视频在线观看| www日韩在线| 亚洲永久精品ww.7491进入| 喷水视频在线观看| 亚洲欧美日韩色| 2一3sex性hd| 蜜桃传媒一区二区亚洲av| 少妇愉情理伦三级| 性色av无码久久一区二区三区| 波多野结衣一二三四区| 无码精品一区二区三区在线播放 | 国产高清自拍视频| 男人舔女人下部高潮全视频| 玖玖爱在线观看| 最近日本中文字幕| 欧美 日本 国产| www.黄色在线| 国产精品视频一区二区三| 男女做暖暖视频| 中文字幕第10页| 超碰97人人干| 中文精品在线观看| 手机看片日韩av| 国产乱子轮xxx农村| 久久人妻少妇嫩草av无码专区| 天天看片中文字幕| 在线观看一区二区三区四区| 亚洲一区二区三区四区五区六区| 欧洲女同同性吃奶| 日本黄色小说视频| 美女100%无挡| 日韩女优一区二区| 波多野结衣片子| 午夜69成人做爰视频| 国产成人精品一区二区在线小狼| 亚欧洲乱码视频| 91av手机在线| 日本一区二区视频在线播放| 永久免费av无码网站性色av| 26uuu成人网| 无码 人妻 在线 视频| 亚洲区 欧美区| 亚洲第一视频区| 内射中出日韩无国产剧情| 波多野结衣久久久久| 99久久国产精| 欧美激情图片小说| 蜜桃av免费在线观看| 国产精品九九视频| av在线免费观看不卡| 日本黄色录像视频| 91麻豆制片厂| av网在线播放| 国产成人无码精品久久二区三| 亚洲欧洲日韩综合| caoporn91| 国产成人自拍网站| 色婷婷粉嫩av| 91免费公开视频| 亚洲女同二女同志奶水| 九一在线免费观看| 久艹在线观看视频| 无码人妻少妇色欲av一区二区| 一区二区三区影视| 东方av正在进入| 精品欧美一区二区久久久久| 强制高潮抽搐sm调教高h| 国产suv精品一区二区68| 亚洲国产精品一区二区久久hs| 一级二级黄色片| 成人涩涩小片视频日本| 538任你躁在线精品视频网站| 手机在线免费看毛片| 亚洲丝袜在线观看| 国产xxx在线观看| 激情综合丁香五月| 最近中文字幕免费| 亚洲a∨无码无在线观看| 亚洲欧美小视频| 精品人妻人人做人人爽夜夜爽| 色欲欲www成人网站| av无码一区二区三区| 欧美做受高潮6| 亚洲国产欧美日韩在线| 日韩av在线看免费观看| 懂色av蜜臀av粉嫩av永久| 欧美手机在线观看| 日韩 中文字幕| 欧美另类69xxxx| 午夜影院福利社| 美国精品一区二区| 久久精品无码专区| 亚洲一二三精品| 免费在线观看日韩av| free性中国hd国语露脸| 欧美日韩色视频| 魔女鞋交玉足榨精调教| 久久久久99精品成人片试看| 丰满少妇一区二区| 国产黑丝在线观看| 成人自拍小视频| 日本精品在线观看视频| 五月天丁香社区| 极品色av影院| 精品人妻一区二区三区蜜桃视频| 影音先锋资源av| 2025国产精品自拍| 中国特黄一级片| 国产精品亚洲无码| 美女久久久久久久久| 午夜爱爱毛片xxxx视频免费看| 欧美熟妇激情一区二区三区| 精品人妻无码一区二区三区 | 性活交片大全免费看| 美女视频久久久| 山东少妇露脸刺激对白在线| 捆绑凌虐一区二区三区| 一区二区三区人妻| 性生活一级大片| 中日韩一级黄色片| 中文字幕在线播放一区| 在线观看一区二区三区视频| 免费看特级毛片| 日韩精品一区二区亚洲av性色| 萌白酱视频在线| 成人三级视频在线观看| 国产aaaaaaaaa| 国产天堂av在线| 久草免费资源站| 特级西西人体4444xxxx| 男女黄床上色视频| 久久精品国产亚洲av久| 国产sm调教视频| 免费三级在线观看| 青青草精品在线| 亚洲av成人片无码| wwwwww日本| av成人免费网站| 国产激情视频网站| 日韩女同一区二区三区| 大吊一区二区三区| 欧美黄色aaa| 亚洲精品中文字幕在线播放| 色屁屁草草影院ccyy.com| 午夜国产小视频| 国产吃瓜黑料一区二区| 成人性生交大免费看| 亚洲国产精品免费在线观看| 岛国精品资源网站| а天堂中文在线资源| 人妻 丝袜美腿 中文字幕| xxxx日本黄色| 三大队在线观看| 国产黄色大片免费看| 91视频青青草| 亚洲av成人无码久久精品| 丰满人妻一区二区三区53视频| 欧美bbbbb性bbbbb视频| 成人高潮免费视频| 欧美 日韩 国产 成人 在线观看 | 欧美 变态 另类 人妖| 青青青视频在线播放| 黄色av电影网站| wwwav国产| 人妻少妇无码精品视频区| 在线精品视频播放| 亚洲综合第一区| 日本少妇xxxxx| 国产精品一区二区入口九绯色| 久久久久无码精品| 久久中文免费视频| 99国产精品免费| 久久久久无码精品国产sm果冻 | 丰满人妻一区二区三区大胸 | 日本视频在线免费| 免费人成又黄又爽又色| 国产国语性生话播放| 国产xxxxxxxxx| 国产高清成人久久| 人妻av一区二区| 91成人在线观看喷潮蘑菇| 亚洲AV成人精品| 野战少妇38p| 男人网站在线观看| 亚洲久久久久久| 亚洲视频在线播放免费| 国产精品偷伦视频免费观看了| 国产一二三四区| wwwxxx色| 丰满大乳奶做爰ⅹxx视频| 日本高清www| 天堂а√在线中文在线鲁大师| 熟女少妇a性色生活片毛片| 欧美卡一卡二卡三| 超碰男人的天堂|