Dynamic and Stochastic Network Optimization and Simulation