首页 > 其他分享 >QBUS6820 规定性分析

QBUS6820 规定性分析

时间:2023-05-02 11:12:18浏览次数:28  
标签:分析 use 规定性 dirt QBUS6820 points each nodes model


 QBUS6820 Prescriptive Analytics: Fr,om Data To Decisio,n Assignment 2

S -m st r 1, 2023 Out: 14tl1 April 2023

Due: 5t:h May 2023 at 11:59pm

This assignment consists of two problems, some involving multiple parts. Son1e parts require a ,vritten

response and others involve coding. The parts that require a written response are described in this

document, while the coding questions (indicated by S) are described in the associated Jupyter otebook

(. ipynb file).

?

You should submit a PDF to GradeScope for the written parts and match the page number with the questions that you answer,ed. You can find detailed instructions on ho?r to use GradeScope on Canvas. If you fail to match the page to the corresponding question, the marker will not be able to view your response and thus you will be awarded O mark for the question.

You should ans,ver the coding questions by n1odifying the Jupyter otebook appropriately, and ubn1it it through Canvas.

Wh,en a problem asks you to formulate a 1nodel, you need to provide your math,ematical formulation ,vith clear justification of decision variables constraints and objective. If you decide to label any of the data v,ith algebraic sy1nbols, you mut clearly define these (e.g.., let aij be the amount of material i required by product j).

All the problems can be done using only the material from this cla , and we will deduct points from solutions that refer to outside 1naterial.

Written parts must be typed. This means no handwriting and no screen shots are permitted, except for illu trative graphics to supplement ansV\rers. If you are using !licrosoft Word, use the equation editor for mathematical equations/formulas. We recommend using Tu\-TEX or a similar systern for typesetting your ans,ver.

You mu t fill and sign the academic honesty declaration on the next page and . ubmit it through GradeScope.

Question:

 Academic integrity declaration

Collaboration policy. You are only allowed to verbally discuss high-level ideas ,vith classn1ates. All detailed model vvorkings and coding should be done individually. You may consult any resources you like on how to use Python and Gurobi (e.g., syntax). However, for the conceptual model building parts you are not permitted to consult resources (e.g., internet forums, websites) except for provided lecture and tutorial content.

Academic honesty declaration. I declare that the submitted vvork is my solely my own, except for high-level ideas that I have discussed vvith the following people:

I declare that I have not consulted any 1naterial besides lecture and tutorial content provided through Canvas.

I understand t hat my work may be submitted to similarity detection soft,vare and a copy of the ,vork may be retained for future similarity checking.

QBUS6820 Assignment 2 Due 5th 1!lay 2023

 1. ?Then constructing new roads, a common operational problem that needs to be solved is ho,¥ to terraform the ground profile so that it matches the desired road profile. More concretely (no pun intended), if the ground is bumpy, vve wish to smooth it out by digging dirt in certain places and moving it to fill other places.

This phase is critical for building high quality roads. It often contributes about 25% of construction costs, but can be much higher for difficult roads.

For the segn1ent of road that we consider, ,¥e vvill discretize it into n chunks which we will dig or fill. The data ,¥e are given is the following:

 A beginning ground profile p Pn > 0, where each Pi denotes a1nount of dirt present in chunk i.

 A target ground profile q > 0 where each denotes the desired amount of dirt in chunk

 The cost of transporting a unit of dirt from chunk i to chunk j is Cij > 0.

(a) (5 points) Assume that Pi = Formulate the terraforming problem as a net,¥ork flo,¥ model.

Hint: You can describe your network in t,¥0 ,¥ays, vvith n, nodes or 2n, nodes. Both can be correct. If you use n nodes, your model should have n(n, - 1) arcs. If you use 2n nodes, your model should have n2 arcs.

(b) (5 points) Describe how to modify the model above if the assumption that does not hold.

Pi =

(c) (3 points) Suppose you have a feasible transportation plan that sends a units of dirt from i to j, and sends b units of dirt fro1n j to i. Explain vvhy this is never optimal, and propose a plan

that has a better objective, but the same inflovv/outflo,¥ for each node.

Hint: You should suggest an alternative plan for each of the tvvo possible cases: (i) ,¥hen a > b; and (ii) when a < b.

For parts (d) to (j), we will assun1e that the costs are Cij = cli -jl, and Pi =

(d) (5 points) Assume that the chunks of the road are indexed in order, i.e., chunks 1 and n are left and right endpoints of the road segn1ent, and chunks i and i + 1 are actually physically next to each other (vvith i on the left, i + 1 on the right).

Assume further that the cost of transporting a chunk of dirt from i to j is directly proportional to the physical distance between i and j. This means that

move units

move units

Propose an alternative transportation plan with better objective, but the same inflow/outflow for each node.

Hint: You should suggest an alternative solution for each of the two possible cases: (i) when a > b; and (ii) vvhen a < b.

(e) (3 points) Suppose a transportation plan has the follovving structure:

Cij =cli-JI

Suppose that a, > 0 are two given numbers. Describe why a transportation plan with the

for some c > 0.

following structure cannot be optimal:

     Due: 5th lVIay 2023 Page 1 of 3.

 

QBUS6820 Assignment 2 Due 5th day .2023 move b units

Assuming again that Cij :;;;:: cli -ii for some c > 0, describe ho-,v to adju t thi plan so that it ha.s the same cost, the same inflo,?.r/outflow at each node, but no 'hops" over nodes.

(f) (5 points) Using the insight from parts (d) and (e), propose an alternative model with 2(n -1) variables.

(g) (4 points) When ,ve use optimization models in practice, we have to think how they can be implemented. In the context of terraforrning, thi mean that given an output tran portation plan, 1Are need to figure out ho,v ,ve would actually proceed to dig/fill the various chu11ks. Describe some implementation considerations that the models in parts (a) and (fj do not account

for. (This answer should be short, about 1 to 5 sentences long.)

(h) (5 points) Ir1 addition to transportation costs Cij = cli - jl, there are costs in loading and unloading dirt to be transported. For each unit of dirt to be loaded, ,ve pay ft cost. For each unit of dirt unloaded, "'re pay fu cost. Forn1ulate a model that can account for these costs.

Hint: Here is one ,vay to do it. Have three sets of n nodes: (i, 0), (i L) and ('i, R) for each i E [n]. The nodes (i, L) vvill transport dirt to the left, ,;vhile (i, R) nodes tran port dirt to the right. Specify arcs as appropriate, but pay attention to the, ir directions! You should have fin -2 arcs in total.

(i) (5 points) In practice, there are different types of loading/unloading as well as transportation costs. For large quantities of dirt to be transferred longer distances, companies may ,vish to use larger truck . These typically have cheaper transportation costs, but higher loading/unloading co ts. For ,maller qua.ntitie - of dirt over shorter di ta.nc€s, a bulldozer may suffice. The e hav low loading/unloading costs, but transportation is not as efficient.

For1nulate a model that ca.n capture two types of trai1sportation 1node decisions:

 type A with tranL portation costs cj == cA Ii - j I and loading/unloading ff, f; . ? type B with transportation co t c? :::::: cB Ii - j I and loading/unloading ff, J!!.

Hint: You will no"\\r need five sets of n nodes, and 12n - 4 arcs.

(j) (15 points) Sr Please refer to the Jupyter Notebook for this question. ?

QBUS6820 Assignment 2 Due 5th day .2023

 2. Public tran 'port -ystems routinely employ optimization techniques. In this question, you Vlill use data gathered from the Sydney train net,vork to formulate models for critical decision-making prob- lems, and implen1ent them in Python. \Ve fir t begin with t"\\ro questio11s on general networks.

(a) (5 points) Let G :::: (N, A) be a network, and let s, t E N be two nodes. A directed walk from s to t is a sequence of arcs (s, n1),, (n1 ,, n2),.... , (nk-1, nk), (nk, t) E A. (Sequentially walking along these arc - ,vill lead you from s to t.) Forrnulate a model to te t ?rhether there exi ts a directed ,valk from s to t or not.

(b) ( 5 points) Let G == ( N,, A) be a netvvork, and let s E J\T be the source node. Suppose that t tm E J\T ate a set of sink nodes. Formulate a single 111odel to sirnultaneously test "'rhether there exists a directed walk from s to each of t1, ..., tm.

Hint? This can be done a.. a maxin1um flow problem. You ,vill need to augment your netv?rork with extra nodes and edge .

Suppose you have the follo,ving data on train segments in Sydney: (ri, di_, Si, ai) for i E [N], where

 ri is the station that a train departs from.

 di is the departure time of tl1at train fro1n ri.

 Si is the station that a train arrive· at (the train does not stop between ri and Si) ? a.i is the arrival time of the train at Si ..

(c) (5 points) Given the train data above, the question you want to anL\Ver is:

Suppose a passenger starts at station .Sstart t time tstart. How quickly can the pas- senger get to a destination station Sena, and vvhat is the optimal route?

Describe how you would use the data to formulate a n'lodel that answers this question.

Hint: You should formulate this as a particular netvvork flow problen1 by describing hovv to construct the nodes, arcs, capacitie · and costs. Your nodes "rill need to be indexed by t,vo things: the station s and the time t.

(d) (5 point ) Given the train data above the question you "\\!?ant to ans"rer is:

Suppose a passenger starts at station 8start at time tstart. ,i\Thich stations can the pas enger reach by time tend > tstart, using only the train net,vork?

Describe ho"\\r you would use the data to formulate a model that ans"\\rers this question.

(e) ( 15 points) ;S, Please refer to the Jupyter Notebook for this q'l.testion. ?

 Due: 5th JVIay 2023

WX:codehelp

标签:分析,use,规定性,dirt,QBUS6820,points,each,nodes,model
From: https://www.cnblogs.com/mondayw/p/17367442.html

相关文章

  • 资料分析——变化幅度
    增长率的变化式考法:百度解释:变化幅度指的是本期的值与去年同一周期(或者是上个统计周期的值,要看具体的要求)相比,增长(或者上升)或者减少(或者下降)的比率。变化幅度=(本期值-上一统计周期值)×100%/上一统计周期值。注意,如果计算出来的数值是负号,那么应该去掉负号。......
  • 电商产品评论数据情感分析
    #代码12-1评论去重的代码importpandasaspdimportreimportjieba.possegaspsgimportnumpyasnp#去重,去除完全重复的数据reviews=pd.read_csv(r"G:\data\data\reviews.csv")reviews=reviews[['content','content_type']].drop_dupli......
  • 分析Windows二进制文件和嵌入式资源
    环境介绍可以去看一下我上一篇文章开始将题目解压到目录里一共有48个可执行程序我们随意选择一个文件拖入ida分析一下用peid分析一下文件,发现这个程序是32位的,而且没有加密和混淆将文件拖入ida如果以后遇到不知道程序从哪开始的话,可以查看左边那一栏的函数,或者windows特别查找......
  • Pod常见状态分析
    常见状态和原因kube-schedulerPending:调度不成功kubeletImagePullBackOff:镜像拉取失败Running:容器已创建并且启动Ready:容器可以提供服务CrashLoopBackOff:容器退出后kubelet拉起新容器如果没有配置livenessProbe或者readinessProbe,那么对应的检查默认成功。通过livenessProbe和r......
  • apache日志分析软件
    软件说明:可以用于分析和统计由APACHE产生的日志文件 .log,用于统计IP,访问次数,总流量以及百分比等,适合站长分析情况。软件截图: 日志格式:以下日志是由apache自动生成211.136.20.37–-[28/Jun/2005:23:59:59+0800]“GET/swty/recommend_list.jspw?sex=1HTTP/1.0″20......
  • PTA实验4~6分析及总结
    1.前言   这是我们第二次的pta作业总结,这次主要是在上次作业的基础上加大了难度,考验了我们的编写代码能力和自主学习能力,考察了我们正则表达式训练,有参无参构造方法,(面对对象编程)(封装性)私有属性的表示和get,set方法的运用,了解Scanner类中nextLine()等方法、String类中split()......
  • PTA实验4~6总结及分析
    1.前言  不知不觉一个月又过去了,也再次完成了三次pta上面的作业,总的来说,这几次pta实验在题量上比之前少了很多,但相对的,难度有了很多提升,其中第六次实验我更是连及格分都没有拿到。接下来我会对这几次实验进行分析,这几次实验涵盖了正则表达式、封装性。还有菜单和日期类程序,总......
  • 《编译原理》第一次实验:词法分析
    该分类为本人在本学期《编译原理》课程上的实验报告,实验对象语言为教学用PL/0语言,实验所用语言为C++。全部报告仅供参考,如有缺漏或错误,烦请指出,Thanks♪(・ω・)ノ一.设计思想根据PL/0语言的文法规范,编写PL/0语言的词法分析程序。1.单词种类及其正规式(1)基本字单词的值单......
  • 索引-性能分析-show profiles
    Sql性能分析:profiles详情:showprofiles能够在做SQL优化时帮助我们了解时间都耗费到哪里去了。通过hava——profiles参数,能够看到当前Mysql是否支持profiles操作执行一系列的业务SQL业务,然后通过如下指令查看指令的执行耗时:#查看每一条SQL的基本耗时情况:showprofiles;#......
  • 系统分析的一些经验
    做需求分析,我觉得最重要的任务是简化业务流程、规则、逻辑;丰富用户体验;  0.尽量将复杂的用户需求抽像成最简单的业务规则、数据库结构来实现。因为需求是不可能一下子就确定的,假设我们刚开始对核心需求的实现方式增加了一点点的复杂性,比如说多加了一个表,一个藕合字段,那么对于......