Computers and Technology

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]

answer
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 01:00, labrandonanderson00
Ap practice - performance task response the ap create performance task asks you to write about an abstraction that you developed and wrote into your code. most of the time that means identifying a function or procedure you wrote to "manage complexity" in your program. here is the actual prompt from the create performance task: 2d. capture and paste a program code segment that contains an abstraction you developed individually on your own (marked with a rectangle). this abstraction must integrate mathematical and logical concepts. explain how your abstraction manage the complexity of your program. (must not exceed 200 words) below is a segment of code from an "under the sea" program with a rectangle drawn around a portion of the code identifying an abstraction. imagine that you wrote this and are composing an ap response about how this abstraction manages complexity. (note: ignore the requirement that the abstraction integrate "mathematical and logical concepts" for this practice response. just write about managing complexity). explain how the abstraction marked with the rectangle in the code above manage complexity of this program. write your response here submit
Answers: 2
image
Computers and Technology, 22.06.2019 14:30, binodkharal2048
Hi plz 11 ! when planning a table, what step comes first: "define the column headers" or "calculate the number of columns/rows"? a. calculate the number of columns/rows b. define the column headers
Answers: 1
image
Computers and Technology, 24.06.2019 04:30, juliemiddleton05
1. web and mobile applications allow users to be actively engaged in an online activity. a true b false 2. some examples of business applications purposes are to collaborate, share files, meet virtually in real-time, and accept payments. a true b false 3. an education application would most likely do which of the following? a allow users to watch popular movies and tv shows b connect users with social and business contacts c confirm users' travel plans d teach users a new language 4. a uniform resource locator (url) is how the internet knows where to take users when an address is typed into a browser. a true b false 5. deon is required to provide the citation information for his sources. what type of information should he collect from his sources? a author name, title, date of publication, date of access, url b connections to background information c interesting facts and statistics d notes on important information
Answers: 1
image
Computers and Technology, 24.06.2019 22:00, rayne40
Is the process of organizing data to reduce redundancy. a. normalization b. primary keying c. specifying relationships d. duplication
Answers: 1
Do you know the correct answer?
Suppose over the 5 months, you are not sure about the demand but you assume each month it will be be...

Questions in other subjects:

Konu
Medicine, 18.07.2019 19:10