In this paper consider the linear controllable systems which defined differential equations with semi-Markov coefficients and random transformation of solutions which occurred simultaneous with jump semi-Markov process. Using equations for Lyapunov function
we find minimal values for an functional. Finding necessary condition of optimal solutions, which reaches synthesis optimal control this class system.