Control problem for the Markov-modulated Poisson process in the diffusion schema | Synapse