The monte carlo method and optimization of spare parts in complex realistic scenarios | Synapse