Since the series structure is the least reliable in comparison with the coherent linear structures formed with the same set of components and as it most frequently appears as a structure of systems or modules this study presents an algorithm for determining the optimal solution to the problem of achieving systems the reliability of which should be at least equal to a pre-established value.