12.07.2015 Views

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 ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

50 Chapter 4 TORSCHE Schedul<strong>in</strong>g Toolbox for Matlab+T 62+T 162+T 102+T 172+T 132*T 143* T +83 T 12*T 93*T 123+T 42+T 152+T 72+T 22+T 112+T 32+T 52process<strong>in</strong>gtime pFig. 4.8: Jaumann wave digital filterprecedence constra<strong>in</strong>ts. The nodes are labeled by the operation type (“+” or“∗”) <strong>and</strong> process<strong>in</strong>g time p i . The example <strong>in</strong> Fig. 4.8 considers two parallelidentical processors, i.e. two general arithmetic units.Fig. 4.9 shows the consecutive steps performed <strong>in</strong> the toolbox. The firststep def<strong>in</strong>es the set <strong>of</strong> the tasks with the precedence constra<strong>in</strong>ts for theschedul<strong>in</strong>g algorithm satsch. The result<strong>in</strong>g schedule is displayed by theplot comm<strong>and</strong>. The optimal schedule is depicted <strong>in</strong> Fig. 4.10.>> procTime = [2,2,2,2,2,2,2,3,3,2,2,3,2,3,2,2,2];>> prec = sparse([6,7,1,11,11,17,3,13,13,15,8,6,2, 9,11,12,17,14,15,2 ,10],...[1,1,2, 2, 3, 3,4, 4, 5, 5,7,8,9,10,10,11,12,13,14,16,16],...[1,1,1, 1, 1, 1,1, 1, 1, 1,1,1,1, 1, 1, 1, 1, 1, 1, 1, 1],17,17);>> TS = taskset(procTime,prec);>> TS = satsch(TS,problem(P|prec|Cmax),2)Set <strong>of</strong> 17 tasksThere are precedence constra<strong>in</strong>tsThere is schedule: SAT solverSUM solv<strong>in</strong>g time: 0.06sMAX solv<strong>in</strong>g time: 0.04sNumber <strong>of</strong> iterations: 2>> plot(TS)Fig. 4.9: Solution <strong>of</strong> the schedul<strong>in</strong>g problem P |prec|C max <strong>in</strong> the toolbox4.3.3 M<strong>in</strong>imum Cost Multi-commodity <strong>Flow</strong> ProblemVarious optimization problems (e.g. rout<strong>in</strong>g) from the graph <strong>and</strong> networkflow theory can be reformulated on the m<strong>in</strong>imum cost multi-commodity flow(MMCF) problem. The objective <strong>of</strong> the MMCF is to f<strong>in</strong>d the cheapest possibleways <strong>of</strong> send<strong>in</strong>g a certa<strong>in</strong> amount <strong>of</strong> flows through the network. Therefore,

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!