Solving Quadratic Assignment Problems by Genetic Algorithms with ...

9 downloads 0 Views 422KB Size Report
Jul 12, 2009 - many hard tasks to reduce the time required to reach ac- ceptable solutions. According to Cantъ-Paz (2000) [3], par- allel GAs can be classified ...
Solving Quadratic Assignment Problems by Genetic Algorithms with GPU Computation: A Case Study Shigeyoshi Tsutsui

Noriyuki Fujimoto

Department of Management and Information Science, Hannan University 5-4-33 Amamihigashi, Matsubara, Osaka 580-8502, Japan

Graduate School of Science, Osaka Prefecture University 1-1 Gakuen-Cho, Naka-ku, Sakai-Shi, Osaka, 599-8531, Japan

[email protected]

[email protected]

ABSTRACT

                                          !    "    "         #       $       %&'(' !   )*+,                     -   &./                 0   1'2  0  $ .   "       3  4* "    '  5 67,   Categories and Subject Descriptors

' * + 89  '   :;   (    "    General Terms

 

Keywords

   " (     "  

    "  = "  =  1.

INTRODUCTION

                  

$     $  0            

    

   = A *BBB 83:"      9       $; 4      " * Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. To copy otherwise, to republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. GECCO’09, July 8–12, 2009, Montréal Québec, Canada. Copyright 2009 ACM 978-1-60558-505-5/09/07 ...$5.00.

  9    "  3 

    '   "        "     9         !         $         $   ();

allocated

allo

memory copy from CPU to GPU;

allo

...

ex

ec

ut

es

int main() {

block m-1

...

block 1 thread 0 thread 1

...

block 0 thread 0 thread 1

...

__global__ void kernel() { code dependent on block ID and threadID }

...

on CPU

memory copy from GPU to CPU;

...

multiprocessor 1 multiprocessor 2

}

...

multiprocessor p

VRAM GPU

!  *;    =(     IMPLEMENTATION OF PARALLEL GA FOR GPU COMPUTATION

location 1 5

'  84*:"              0                  !           "       !          "     O                      " "   $                         O                

                  $    $                    $

location 2



 



   



4

 0                 ' $"        

      $    $   

     $      !  3    C          G    C   O C        '  " $  $     9    $  $    $     9 "   PQ*" 4" G" 3R     $ 4       *"  $ *       4"  $ 3       G"   $ 





11

21

facility 4

30

facility 2

location

location

1

2

3

4

0

5

10

2

2

5

0

6

3

3

10

6

0

4

1

4

2

3

4

0

facility 3

12 facility

1

2

3

4

1

0

21

11

44

2

21

0

12

30

3

11

12

0

9

4

44

30

9

0

flow matrix f ij

distance matrix dij

I=

9

4

location 3





10 6



  

location 4 3

3.1 Quadratic Assignment Problem (QAP)

44

facility 1 2

facility

3.

1

2

3

4

2

1

4

3

cost (I )

4

4

¦¦ f

ij

d I ( i )I ( j )

i 1 j 1

1524

!  3;   C  

 



G       3"  $ !     "      

   # 4  4,*G          8*5: