09.05.2013 Views

Condução de Experimentos Computacionais com Métodos ...

Condução de Experimentos Computacionais com Métodos ...

Condução de Experimentos Computacionais com Métodos ...

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.

2.3 <strong>Métodos</strong> Metaheurísticos 37<br />

Algoritmo 2.7: Construção<br />

1<br />

2<br />

3<br />

4<br />

5<br />

6<br />

7<br />

8<br />

9<br />

s ← /0;<br />

Inicialize o conjunto <strong>de</strong> candidatos C;<br />

enquanto C = /0 faça<br />

g(tmin) = min{g(t) | t ∈ C};<br />

g(tmax) = max{g(t) | t ∈ C};<br />

LCR = {t ∈ C | g(t) ≤<br />

g(tmin) + α(g(tmax − g(tmin))};<br />

Selecione, aleatoriamente, um elemento<br />

t ∈ LCR;<br />

s ← s ∪ {t};<br />

Atualize o conjunto C <strong>de</strong> candidatos;<br />

O Algoritmo 2.8 <strong>de</strong> busca local utilizado em GRASP, obterá boas soluções caso a<br />

solução inicial também seja boa. Então, quando o algoritmo <strong>de</strong> busca local inicia <strong>com</strong> uma<br />

solução boa, ele ten<strong>de</strong> acelerar seu processo <strong>de</strong> busca. Portanto, o algoritmo <strong>de</strong> construção<br />

é importante, pois ele irá implica profundamente no resultado final.<br />

Algoritmo 2.8: Busca Local GRASP<br />

1<br />

2<br />

3<br />

4<br />

5<br />

6<br />

V = {s ′ ∈ N(s) | f (s ′ ) < f (s)};<br />

enquanto | V |> 0 faça<br />

Selecione s ′ ∈ V ;<br />

s ← s ′ ;<br />

V = {s ′ ∈ N(s) | f (s ′ ) < f (s)};<br />

Retorne s;<br />

Como o algoritmo GRASP trabalha <strong>com</strong> aspectos aleatórios e gulosos, é impor-<br />

tante saber balanceá-los. O trabalho <strong>de</strong> Prais e Ribeiro [92] trata da variação <strong>de</strong> parâmetros<br />

em procedimentos GRASP.<br />

2.3.5 Algoritmos Genéticos<br />

Os Algoritmos Genéticos foram <strong>de</strong>senvolvidos por Holland e seus colegas nos<br />

anos 70. São algoritmos <strong>de</strong> busca baseados em processos <strong>de</strong> seleção natural <strong>de</strong> evolução,<br />

da Teoria <strong>de</strong> Darwin, em que os indivíduos <strong>com</strong> características melhores têm maiores<br />

chances <strong>de</strong> sobrevivência e <strong>de</strong> produzirem filhos cada vez mais aptos, e os indivíduos mais<br />

fracos (menos aptos) ten<strong>de</strong>m a <strong>de</strong>saparecer. Para esta seção, são referenciados [41, 71].

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

Saved successfully!

Ooh no, something went wrong!