Several options of the stochastic SIR epidemics model with limited treatment are proposed. For these methods, the efficiency of different vaccination strategies is demonstrated, and a method for obtaining the optimal vaccination strategy minimizing the cost functional is proposed.