代写MGT001371 - Scheduling Manufacturing Systems Homework Assignment II代做留学生Python程序

MGT001371 - Scheduling Manufacturing Systems

Homework Assignment II

To be submitted on 13.06.2024 (Thursday 13:00) via TUM Moodle.

Late submission will not be accepted. No collaboration!

• You must submit your handwritten or typewritten solutions in a single .pdf file and your codes in separate  .py files.

• You should zip (compress) all of your files and name the  .zip file as ”NameLast- name studentID”, i.e., ”BaharOkumusoglu 01234567.zip” .

•  Coding questions will be graded based on the result they generate and not the entire syntax.  If a particular code section does not work, zero points are given to that section. We try to give points for the outcome of individual code sections wherever possible but reserve the right to grade multiple sections together if necessary.

•  Be precise.  Do not make vague statements and leave any room for interpretation. You must also present your step-by-step solutions wherever applicable.

1.  (10 points)  Consider a car manufacturing company that operates a paced assembly line. Let us denote the sets of models, options and parts as M, O and P, respectively. The company can produce model m ∈ M with option o ∈ O and part p ∈ P.  We also define the set of production cycles and the set of stations at the production line as T and K, respectively. Suppose the company wants to determine the sequencing for its production line to avoid work overloads by solving different optimization problems. The problem parameters and decision variables are provided in Table 1.

Implement the following optimization models using the Python-Gurobi interface with the provided data using the code template Sequencing Template .py.  For each model, you need to write a function and call this function to get the optimal sequencing decisions. To avoid code repetitions, you should call the function BaseModel whenever required. Also, recall that variable indexing in Python starts from 0.

(a)  (3 points)  (Base Model) The function in your code should take a Gurobi model object as an argument and add the following constraints:

Parameters

dm Demand for copies of model m.

c Cycle time.

lk Length of station k.

pmk Processing time of model m at station k.

amo 1, if model m requires option o, and 0 otherwise.

pmo Demand of model m for part p.

rcp Target consumption rate of part p.

rcm Target production rate of model m.

Decision Variables

xmt 1 if model m is produced in cycle t, and 0 otherwise.

wkt Work overload occurring at station k in cycle t.

skt Start position of the worker at station k when cycle t begins.

ymt Total cumulative production quantity (in integer) of model m up to cycle t.

Table 1: Problem parameters and decision variables.

(b)  (3 points)  (Mixed-model Sequencing Model)

(c)  (4 points)  (Level-scheduling Model) Your function should take a flag as an argu- ment and use it in a conditional statement in order to solve the problem for part-oriented and model-oriented versions. Your function should create an optimization model with the following objective functions

for the part-oriented and the model-oriented models, respectively. Note that the feasible regions for both models are defined by (1) and the following set of constraints:

Hint: When defining a quadratic objective in the solver, you cannot use the expression x2 , instead, you should use x ∗ x.  As a rule of thumb, always use parentheses when there are summations for the quadratic expressions, i.e., Σi(xi) ∗ (xi).

2.  (4 points)  Consider the economic lot sizing problem with several items on a single machine under the sequence-independence assumption. Using the provided data with the code tem- plate ELS Template .py:

(a)  (2 points)  write a function basicESL that returns the cycle time, idle time, production run and maximum inventory for each item.

(b)  (2 points)  provide a detailed inventory level chart by indicating the necessary points at the chart.

3.  (12 points)  The capacitated lot-sizing problem with zero setup times can be formulated as a mixed-integer programming problem. Let N and T be the sets of items and periods, respectively. The problem parameters and decisions variables are given as follows:

Parameters

dit Deterministic demand for item i in period t.

P(¯) Production capacity for machine.

vit Production rate product i in period t.

hit Holding cost for item i in period t.

cit Setup cost for item i in period t.

Ii0 Initial inventory for item i.

Decision Variables

Iit Inventory for item i at the end of period t.

xit Production amount for item i in period t.

yit 1, if machine is setup for item i in period t, 0 otherwise.

zit 1, if item i is produced in period t, 0 otherwise.

Table 2: Problem parameters and decision variables.

Implement the following optimization models using Python-Gurobi interface with the pro- vided data with the code template ESL Template .py. For each model, you are supposed to use only one function ESLModel and call this function to get the optimal solutions. You should include conditional statements in this function such that some part of the function will run depending on the optimization model given by the following parts.   For  exam-ple, when you want to solve the optimization model (4), you should include a conditional statement if modelType == ‘bigBucket’ such that your function will ONLY create the optimization model for this model.

(a)  (5 points)  (Base Model, Big Bucket)

(b) (3 points) (Small Bucket, Continuous)

(c)  (4 points)  (Small Bucket, Discrete) In your function, you should not rewrite con- straint  (6b) as it is.   Instead,  you  should only add a single constraint that implies constraint (6b).

4.  (4 points)  Consider the robust sequencing problem discussed in class.  In the optimization model, there are some nonlinearities due to the constraints corresponding to the number of violations per option in failure scenarios and the length of evaluation windows.  Also, see ”Robust car sequencing for automotive assembly, A. Hottenrott, L. Waidner, M. Grunow, EJOR (2020)” .

(a)  (1 point)  Indicate and discuss the nonlinearities induced by these constraints.

(b)  (3 points)  For ease of notation, consider the following two constraints corresponding to the number of violations per option in failure scenarios and the length of evaluation windows:

Here, the decision variables are X {0, 1}, Y N, Z Z+   and N N.  Moreover, assume that the decision variable Z has a finite upper bound Z(¯) .  Linearize these con-straints by introducing auxiliary variables. Show your step-by-step solutions and write your final system of equations in the box below.  (Hint: First linearize the second con-straint by introducing Z(¯) many binary decision variables and replace the domain of the summation by (1, Z(¯)). Then, rewrite constraint by coupling these new variables and X variables. You should introduce more auxiliary variables in the rest of the exercise.)





热门主题

课程名

eeen40700 cs253 ece3114 ecmm447 chns3000 math377 itd102 comp9444 comp(2041|9044) ma214 econ0060 econ7230 com333 mgdi60012 mdia2012 comm221001 comp6521 mgt001371 ecs-323 cs6250 comm5000 ma1008 engl642 econ241 mis201 nbs-7041x meek16104 math367 econ2003 comm1190 mbas902 comp-1027 dpst1091 comp7315 eppd1033 m06 ee3025 msci231 bb113/bbs1063 fc709 comp9417 comp3425 econ42915 cb9101 math1102e chme0017 fc307 mkt60104 5522usst litr1-uc6201.200 ee1102 cosc2803 math39512 omp9727 ddes9903 babs2202 mis2002s phya21 18-213 cege0012 mgt253 fc021 int2067/int5051 bsb151 math38032 mech5125 mdia1002 cisc102 07 mgx3110 cs240 11175 fin3020s eco3420 ictten622 comp9727 cpt111 de114102d mgm320h5s bafi1019 math21112 efim20036 mn-3503 comp9414 fins5568 comp4337 bma0092 bcpm000028 info6030 inft6800 110.807 bcpm0054 cs365 math20212 ce335 math2010 ec3450 comm1170 ftec5580 cenv6141 ecmt1010 csci-ua.0480-003 econ12-200 ectb60h3f cs247—assignment ib3960 tk3163 ics3u ib3j80 comp20008 comp9334 eppd1063 acct2343 cct109 isys1055/3412 msinm014/msing014/msing014b math2014 math350-real eec180 stat141b econ2101 fit2004 comp643 bu1002 cm2030 mn7182sr ectb60h3s ib2d30 ohss7000 fit3175 econ20120/econ30320 acct7104 compsci 369 math226 127.241 info1110 37007 math137a mgt4701 comm1180 fc300 ectb60h3 llp120 bio99 econ7030 csse2310/csse7231 125.330 110.309 csc3100 bu1007 comp 636 qbus3600 compx222 stat437 kit317 hw1 ag942 fit3139 115.213 ipa61006 econ214 envm7512 6010acc fit4005 fins5542 slsp5360m 119729 cs148 hld-4267-r comp4002/gam cava1001 or4023 cosc2758/cosc2938 cse140 fu010055 csci410 finc3017 fsc60504 24309 bsys702 mgec61 cive9831m pubh5010 5bus1037 info90004 p6769 bsan3209 caes1000 plana4310 ap/adms4540 ast101h5f plan6392 625.609.81 csmai21 fnce6012 misy262 ifb106tc csci910 502it comp603/ense600
联系我们
EMail: 99515681@qq.com
QQ: 99515681
留学生作业帮-留学生的知心伴侣!
工作时间:08:00-21:00
python代写
微信客服:codinghelp
站长地图