π¬ Third lab#
π Task 3.1: Inventory model with deterministic demand#
β± Expected work time 40 minutes
βοΈ Follow instructions in the notebook
lab3/inventory_deterministic.ipynbβοΈ Copy over all the code about the inventory model from the lecture notes
βοΈ Run the code and βplay with the modelβ
π Task 3.2: Inventory model with stochastic demand#
β± Expected work time 60 minutes
βοΈ Follow instructions in the notebook
lab3/inventory_stochastic.ipynbβοΈ Fill out the missing parts of the code using the specification in the lecture notes
In addition:
βοΈ Using your complete code, develop a simulator for the model similar to the one we had for hte static logit model. Simulate a sequence of demands, and use your policy function to make optimal ordering decisions over time. Track the inventory levels, orders, costs, and stockouts over time.
π Task 3.3 [optional]: Policy iterations algorithm#
β± Expected work time 30 minutes
βοΈ Only attempt if you have completed Task 3.1, and all previous labs
βοΈ Study the notebook
lab3/inventory_policy_iter.ipynbβοΈ Make sure you understand the policy iteration algorithm, and every line of the code
βοΈ Write code to compare the VFI run time against the policy iteration run time for different sizes of the state space and other model specifications. Where are the biggest improvements from using the policy iteration algorithm?