Stochastic Optimization Of Unmetered And Metered Traffic Flow Processes