Non-homogeneous stochastic linear-quadratic optimal control problems with multi-dimensional state and regime switching | Synapse