subject

Suppose over the 5 months, you are not sure about the demand but you assume each month it will be between 0 and 5. Let be the demand at month t, and suppose the distribution of the demand is given as P{Dt = i} = 0.5 + it/3 + 15t
Your inventory capacity is 6 and you can produce at most 7 units. Your setup cost is $1, variable cost is $2 and for each product leftover at the end of month 5 you can sell them at a $3. Suppose you have to pay $1 dollars for the average inventory you hold at the end each month. For example, if you started a month with 3 units at inventory and at the end of the month there is 1 unit left then your holding cost is 2=0.5*(3+1).
The Python program that computes the lowest-cost production plan meeting the specific demands are given below. Fill in the blank cells with the correct answers.
i) Problem Setup
stages =
startInventory =
inventoryCapacity =
productionCapacity=
setupCost =
variableCost =
holdingCost =
salvageValue =
minDemand =
maxDemand =
ii) Define demandProb (you can use for loop to compute or do it by hand)
demandProb=
f = numpy. zeros([stages + 2, inventoryCapacity + 1])
x = numpy. zeros([stages + 1, inventoryCapacity + 1], dtype=int)
iii) Define SalvageValues
for i in range(inventoryCapacity + 1):
f[stages + 1, i] =
iv) For loop
for t in range(stages, 0, -1):
for i in range(inventoryCapacity + 1):
minProduction =
maxProduction =
value = (hugeNumber / -hugeNumber)
bestMove = None
for p in range(minProduction, maxProduction + 1):
v) Define productionCost:
moveValue = productionCost
for d in range(minDemand, maxDemand + 1):
vi) Define next state and moveValue
j =
moveValue +=
v) MoveValue and Value comparison (put either < or >)
if moveValue value:
value = moveValue
bestMove = p
# End of p loop
f[t, i] = value
x[t, i] = bestMove
vi) The policy matrix "x" is given below. How many should we produce at 1st month and 2nd month given that our inventory is 2 at the beginning and we observed demand for 3 units? Month 1: , Month 2:
X= [[0 0 0 0 0 0 0]
[5 4 3 2 1 0 0]
[5 4 3 2 1 0 0]

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 10:30
Dave has to create animations for a game. which tool can dave use?
Answers: 3
question
Computers and Technology, 23.06.2019 00:50
Representa os dados de um banco de dados como uma coleç? o de tabelas constituídas por um conjunto de atributos, que definem as propriedades ou características relevantes da entidade que representam. marque a alternativa que representa o modelo descrito no enunciado. escolha uma:
Answers: 3
question
Computers and Technology, 23.06.2019 04:31
Q13 what function does a security certificate perform? a. creates user accounts b. scrambles data c. identifies users d. creates password policies e. provides file access
Answers: 1
question
Computers and Technology, 23.06.2019 07:30
What is the penalty for violating section 1201 of title 17 chapter 21 of the us code
Answers: 1
You know the right answer?
Suppose over the 5 months, you are not sure about the demand but you assume each month it will be be...
Questions
question
Mathematics, 02.02.2021 18:30
question
English, 02.02.2021 18:30
question
Mathematics, 02.02.2021 18:30