Performance optimization of transportation systems modelled as Stochastic Timed Event Graphs