Constrained optimal stopping under a regime-switching model | Synapse