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.

48 Chapter 4 TORSCHE Schedul<strong>in</strong>g Toolbox for Matlab>> T = taskset([T1 T2 T3 T4 T5 T6 T7 T8],prec)Set <strong>of</strong> 8 tasksThere are precedence constra<strong>in</strong>ts4. Def<strong>in</strong>e solved problem.>> p = problem(’P|prec|Cmax’)P|prec|Cmax5. Call List Schedul<strong>in</strong>g algorithm with taskset <strong>and</strong> problem created recently<strong>and</strong> def<strong>in</strong>e number <strong>of</strong> processors <strong>and</strong> desired heuristic.>> TS = listsch(T,p,2,’SPT’)Set <strong>of</strong> 8 tasksThere are precedence constra<strong>in</strong>tsThere is schedule: List Schedul<strong>in</strong>gSolv<strong>in</strong>g time: 1.1316s6. Visualize the f<strong>in</strong>al schedule by st<strong>and</strong>ard plot function, see Fig. 4.7.>> plot(TS)P 1leg 1leg 3 seat assembly 1/2assembly 2/2P 2Fig. 4.7: The manufacture schedul<strong>in</strong>g <strong>in</strong> the Gantt chart formleg 2leg 4backrest0 10 20 30 40 50 t4.3.2 SAT Based Schedul<strong>in</strong>g AlgorithmThis subsection presents a satisfiability <strong>of</strong> boolean expression based algorithmfor the schedul<strong>in</strong>g problem P |prec|C max , i.e. the schedul<strong>in</strong>g <strong>of</strong>tasks with precedence constra<strong>in</strong>ts on the set <strong>of</strong> parallel identical processorswhile m<strong>in</strong>imiz<strong>in</strong>g the schedule makespan. The ma<strong>in</strong> idea is to formulatethe schedul<strong>in</strong>g problem <strong>in</strong> the form <strong>of</strong> CNF (conjunctive normal form)clauses [Cram 06, Memi 02].In the case <strong>of</strong> the P |prec|C max problem, each CNF clause is a function<strong>of</strong> the Boolean variables <strong>in</strong> the form x ijk . If the task T i is started at time

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

Saved successfully!

Ooh no, something went wrong!