18.05.2014 Views

PROJETO DE ALGORITMOS PARA RESOLU¸C˜AO DE ...

PROJETO DE ALGORITMOS PARA RESOLU¸C˜AO DE ...

PROJETO DE ALGORITMOS PARA RESOLU¸C˜AO DE ...

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.

Passo 0) Escolher x 0 e estimar γ tal que γ < p ∗ . Atribuir f 0 = ∞<br />

Passo 1) Calcular σ(x k )<br />

Passo 2) Se σ(x k ) = 1 : calcular f 0 (x k )<br />

se f 0 (x k ) ≥ f 0 : ir para passo 6<br />

se não: f 0 := f 0 (x k ), x ∗ := x k<br />

Passo 3) Calcular E(x k ) e ∇E(x k )<br />

Passo 4) Calcular α k<br />

Passo 5) Calcular x k+1 = x k − α k ∇E(x k )<br />

voltar passo 1.<br />

Passo 6) ponto ótimo x ∗<br />

valor ótimo f 0<br />

Na figura 4.6 é apresentado o diagrama de blocos representante do algoritmo gradiente<br />

EV discreto.<br />

Figura 4.6: Diagrama de blocos do sistema discreto<br />

4.8 Execução do algoritmo gradiente EV<br />

O algoritmo foi implementado com o programa MATLAB 6, e testado com 5 problemas<br />

diferentes, descritos a seguir:<br />

187

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

Saved successfully!

Ooh no, something went wrong!