Turnpike property of a linear-quadratic optimal control problem in large horizons with regime switching II: non-homogeneous case | Synapse