Modeling and Optimization of Traffic Flow in Urban Areas - Czech ...
Modeling and Optimization of Traffic Flow in Urban Areas - Czech ...
Modeling and Optimization of Traffic Flow in Urban Areas - Czech ...
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
58 Chapter 5 <strong>Traffic</strong> <strong>Flow</strong> <strong>Optimization</strong>Algorithm 5.1 Process<strong>in</strong>g time computation1. Create tasks T uv , with temporary process<strong>in</strong>g time p ′ uv = ∑ ψi=1 f i(u, v).>> T56 = task(’T(5,6)’, 0.0069)Task "T(5,6)"Process<strong>in</strong>g time: 0.0069Release time: 0>> T26 = task(’T(2,6)’, 0.0222);>> T96 = task(’T(9,6)’,0.0079);2. Group the tasks <strong>in</strong>to a taskset <strong>and</strong> add precedence constra<strong>in</strong>s.>> prec6 = [0 1 1; 0 0 0; 0 0 0];>> TS6 = taskset([T56 T26 T96],prec6);Set <strong>of</strong> 3 tasksThere are precedence constra<strong>in</strong>ts3. Compute a length <strong>of</strong> critical path CP v by the asap (as soon as possible)function.>> TS6.asap;>> asapStart = asap(TS6,’asap’);>> CP6 = max(asapStart + TS6.ProcTime)CP6 =0.02914. From the length <strong>of</strong> the critical path <strong>and</strong> cycle time C we obta<strong>in</strong> process<strong>in</strong>gtime p uv as a l<strong>in</strong>ear proportion <strong>of</strong> flow: p uv = p ′ uv · C/CP v .>> C = 90;>> TS6.ProcTime = TS6.ProcTime * C / CP6;5. We can display <strong>in</strong>tersection phases by the plot function, see toFig. 5.4(b).>> TS6.asap;>> plot(TS6,’asap’,1,’prec’,0)