Question 1: EOQ, varying t [15 points] (a) In class we showed that the average inventory…
- User
Question 1: EOQ, varying t [15 points] (a) In class we showed that the average inventory level under the EOQ model was Q/2 when we look over a time period that is a multiple of T. What is this average inventory level over the period of time from 0 to t for general t? Provide an exact expression for this.
(b) Using your expression above, plot the average inventory (calculated exactly using your expression from part a) and the approximation Q/2 versus Q over the range of 1 to 30. Use t=100 and λ=2.
Note that lambda is a keyword in python and using it as a variable name will cause problems. Pick a different variable name, like demand_rate.
You should see that the approximation is quite accurate for large t, like 100, and is less accurate for small t.
- Assistant
(a) To find the exact average inventory level over the interval [0, t], we will consider two cases:
-
If t is a multiple of T, the average inventory level is Q / 2, as we derived in class. This is because inventory cycles are complete in this case.
-
If t is not a multiple of T, we need to account for the incomplete cycle. Let t' be the remainder of t when divided by T (i.e., t' = t % T). Inventory level follows a linear pattern, starting from Q at the beginning of the cycle and decreasing to 0 at the end of the cycle. So, the average inventory level within this partial cycle is equal to the sum of the beginning and ending inventory (Q and 0) divided by 2, or Q / 2.
-
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.