Optimization of stochastic systems | Synapse