21.01.2014 Views

Xiao Liu PhD Thesis.pdf - Faculty of Information and Communication ...

Xiao Liu PhD Thesis.pdf - Faculty of Information and Communication ...

Xiao Liu PhD Thesis.pdf - Faculty of Information and Communication ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

For example, in Figure 8.2, local workflow segment contains activity a p+ 1 to<br />

a p+7 <strong>and</strong> they are allocated to four different resources R 1 to R 4 . Each resource<br />

maintains a local Task-List by its own scheduler given its input job queue. When<br />

temporal violation h<strong>and</strong>ling is triggered, the workflow management system will<br />

acquire the current Task-List <strong>of</strong> R 1 to R 4 <strong>and</strong> can automatically combine them into<br />

an integrated DAG task graph which consists <strong>of</strong> all the tasks, for instance, a total <strong>of</strong><br />

n tasks, by assigning a pseudo start activity a Start <strong>and</strong> pseudo end activity a End .<br />

Therefore, an integrated Task-Resource list L{ ( a , R ) | i = p + 1,..., p + n,<br />

j = 1,2,3,4 }<br />

is built <strong>and</strong> ready to be optimised.<br />

As shown in Figure 8.1, the strategy has five major input parameters, viz. the<br />

time deficit detected at the checkpoint, the integrated Task-Resource list, the DAG<br />

task graphs which define the precedence relationships between tasks, the normal<br />

distribution models for activity durations, <strong>and</strong> resources with their execution speed<br />

<strong>and</strong> the cost per time unit. Besides, some additional information or parameters may<br />

also be required for each individual metaheuristic rescheduling algorithm. The first<br />

stage is to optimise the overall the makespan <strong>and</strong> cost for the integrated Task-<br />

Resource list through any metaheuristics based scheduling algorithm such as GA<br />

(detailed in Section 8.3.2) <strong>and</strong> ACO (detailed in Section 8.3.3). The first step is<br />

algorithm initialisation (Line 1) where different metaheuristic algorithms have their<br />

own initialisation process such as chromosome coding for GA <strong>and</strong> setting <strong>of</strong> initial<br />

pheromones for ACO. After initialisation, the metaheuristic algorithms are executed<br />

until the predefined stopping condition such as the maximum iteration times is met<br />

(Line 2 to Line 3). During the metaheuristic algorithms based optimisation process,<br />

a best-so-far solution can be produced in each iteration <strong>and</strong> recorded in the solution<br />

set. The second stage is to search for the best solution from the solution set (Line 5<br />

to Line 7). During this searching stage, the occurred time deficit is first compared<br />

with the compensation time <strong>of</strong> each solution in the solution set (Line 6). Those<br />

solutions whose compensation time is smaller than the time deficit are discarded<br />

since they cannot h<strong>and</strong>le the current temporal violation. Here, the compensation time<br />

is defined as the difference between the average makespan before rescheduling <strong>and</strong><br />

the one after rescheduling. For those remained solutions, the one with the minimum<br />

cost is returned as the best solution (Line 7 to Line 8). Finally, according to the best<br />

i<br />

j<br />

131

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

Saved successfully!

Ooh no, something went wrong!