Stochastic Production Planning with Regime Switching: Numerical and Sensitivity Analysis, Optimal Control, and Python Implementation
Dragos-Patru Covei
TL;DR
This paper develops a stochastic production planning framework with regime switching to capture economic cycles, modeling inventory dynamics under regime-dependent volatility and discounting. The authors formulate a quadratic cost objective and derive a regime-dependent pair of HJB equations, which are transformed into a solvable elliptic PDE system for transformed variables $u_1,u_2$. A constructive monotone-iterative numerical scheme is proposed to compute the value functions $z_1,z_2$ and the associated optimal production policies $p_1^*,p_2^*$, with a detailed procedure to determine auxiliary parameters $K_1,K_2$ and to simulate inventory trajectories. Sensitivity analysis and model comparisons reveal conservative behavior of regime-switching models relative to static ones, and the work offers practical guidance for production planning under fluctuating economic conditions, along with clear pathways for extensions such as correlated noise and alternative loss functions. The study bridges theory and practice by providing an implementable Python pipeline for solving the PDEs and evaluating policy performance across regimes.
Abstract
This study investigates a stochastic production planning problem with regime-switching parameters, inspired by economic cycles impacting production and inventory costs. The model considers types of goods and employs a Markov chain to capture probabilistic regime transitions, coupled with a multidimensional Brownian motion representing stochastic demand dynamics. The production and inventory cost optimization problem is formulated as a quadratic cost functional, with the solution characterized by a regime-dependent system of elliptic partial differential equations (PDEs). Numerical solutions to the PDE system are computed using a monotone iteration algorithm, enabling quantitative analysis. Sensitivity analysis and model risk evaluation illustrate the effects of regime-dependent volatility, holding costs, and discount factors, revealing the conservative bias of regime-switching models when compared to static alternatives. Practical implications include optimizing production strategies under fluctuating economic conditions and exploring future extensions such as correlated Brownian dynamics, non-quadratic cost functions, and geometric inventory frameworks. This research bridges the gap between theoretical modeling and practical applications, offering a robust framework for dynamic production planning.
