<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>GWO | Rodrigo Lira</title>
    <link>https://rodrigoclira.github.io/tags/gwo/</link>
      <atom:link href="https://rodrigoclira.github.io/tags/gwo/index.xml" rel="self" type="application/rss+xml" />
    <description>GWO</description>
    <generator>HugoBlox Kit (https://hugoblox.com)</generator><language>pt-br</language><lastBuildDate>Sat, 04 Jun 2022 10:18:25 -0300</lastBuildDate>
    <image>
      <url>https://rodrigoclira.github.io/media/icon_hu_b22adc9a7ee7cc2a.png</url>
      <title>GWO</title>
      <link>https://rodrigoclira.github.io/tags/gwo/</link>
    </image>
    
    <item>
      <title>Grey Wolf Optimizer in a nutshell</title>
      <link>https://rodrigoclira.github.io/blog/2022/gwo-in-a-nutsshell/</link>
      <pubDate>Sat, 04 Jun 2022 10:18:25 -0300</pubDate>
      <guid>https://rodrigoclira.github.io/blog/2022/gwo-in-a-nutsshell/</guid>
      <description>&lt;p&gt;In nature, grey wolves live in a pack, and they organise themselves in a social hierarchy of four layers: alpha (α), beta (β), delta (δ) and omega (ω) as shown in Figure 1. The most dominant individual (leader) is the alpha, and it leads the pack. The second layer is the beta, it reinforces the commands of the alpha to the others, and it is an advisor of the alpha. Delta wolves are the scouts, sentinels, elders, hunters and caretakers. Delta wolves submit to alphas and betas, but they dominate the lowest level in the pack, the omegas. The grey wolves also hunt in a group. Hunting can be divided into three steps: (i) tracking, chasing and approaching the prey; (ii) pursuing encircling, and harassing the prey it stops moving; and (iii) attacking the prey.&lt;/p&gt;
&lt;p&gt;















&lt;figure  &gt;
  &lt;div class=&#34;flex justify-center	&#34;&gt;
    &lt;div class=&#34;w-full&#34; &gt;
          &lt;img alt=&#34;GWO social hierarchy&#34; 
               srcset=&#34;https://rodrigoclira.github.io/blog/2022/gwo-in-a-nutsshell/gwo-social2_hu_447bde16171c2597.webp 320w, https://rodrigoclira.github.io/blog/2022/gwo-in-a-nutsshell/gwo-social2_hu_41feab7a83a17278.webp 480w, https://rodrigoclira.github.io/blog/2022/gwo-in-a-nutsshell/gwo-social2_hu_e690a172bdb3a832.webp 760w&#34;
               sizes=&#34;(max-width: 480px) 100vw, (max-width: 768px) 90vw, (max-width: 1024px) 80vw, 760px&#34;
               src=&#34;https://rodrigoclira.github.io/blog/2022/gwo-in-a-nutsshell/gwo-social2_hu_447bde16171c2597.webp&#34;
               width=&#34;760&#34;
               height=&#34;582&#34;
               loading=&#34;lazy&#34; data-zoomable /&gt;&lt;/div&gt;
  &lt;/div&gt;&lt;/figure&gt;
&lt;/p&gt;
&lt;p&gt;
 proposed the Grey Wolf Optimizer (Algorithm 1) inspired by the social hierarchy and group hunting of wolves. Each wolf (i.e. the agent) represents a candidate solution in the proposal, and the social hierarchy is based on the current fitness value. The fittest wolf in the swarm is labelled as alpha. The second and third best solutions are labelled as beta and delta, respectively. They influence the movement of the rest of the swarm that is assumed to be the omega. The movement of the wolves is modelled to reproduce the group hunting. The encircled behaviour is proposed using Equation 1 and Equation 2.&lt;/p&gt;

(1)
$$
    \textbf{D} = | \textbf{C} \cdot \textbf{x}_{p}(i) - \textbf{x}(i)|               
$$



(2)
$$
    \textbf{x}(i+1) = \textbf{x}_{p}(i) - \textbf{A} \cdot \textbf{D},
$$


&lt;p&gt;where x(i) and x&lt;sub&gt;p&lt;/sub&gt;(i) are the wolf position, and the position of the prey in the iteration i, respectively. A and C are the coefficients that are calculated as follows&lt;/p&gt;

(3)
$$
    \textbf{A} = 2\textbf{a} \cdot \textbf{r}_1 - \textbf{a},

$$



(4)
$$
  \textbf{C} = 2 \cdot \textbf{r}_2,
$$


&lt;p&gt;where r&lt;sub&gt;1&lt;/sub&gt;, and r&lt;sub&gt;2&lt;/sub&gt;, are random vectors generated in [0, 1]; a is a vector that the components are decreased linearly over iteration. As α, β and δ are the wolves nearest to the prey (i.e., best position), they are assumed as the prey position ( x_&lt;sub&gt;p&lt;/sub&gt;). Thus, the movement is performed using Equations 5 and 6 considering α as the example, but it is also computed for β and δ.&lt;/p&gt;

(5)
$$
  \textbf{D}_{\alpha}  = | \textbf{C}_\alpha \cdot \textbf{x}_\alpha - \textbf{x} |
$$



(6)
$$
        \textbf{x&#39;}_{\alpha}  = \textbf{x}_\alpha - \textbf{A}_1 \cdot \textbf{D}_{\alpha},
$$


&lt;p&gt;Finally, the wolf new position is the mean of x’&lt;sub&gt;α&lt;/sub&gt;, x’&lt;sub&gt;β&lt;/sub&gt;, and x’&lt;sub&gt;δ&lt;/sub&gt;, as described in Equation 7.&lt;/p&gt;

(7)
$$
    \textbf{x}(i+1)  = \frac{\textbf{x&#39;}_{\alpha} + \textbf{x&#39;}_{\beta} + \textbf{x&#39;}_{\delta}}{3}.
$$


&lt;h2 id=&#34;pseudocode&#34;&gt;Pseudocode&lt;/h2&gt;
&lt;p&gt;















&lt;figure  &gt;
  &lt;div class=&#34;flex justify-center	&#34;&gt;
    &lt;div class=&#34;w-full&#34; &gt;
          &lt;img alt=&#34;GWO Pseudo Code&#34; 
               srcset=&#34;https://rodrigoclira.github.io/blog/2022/gwo-in-a-nutsshell/gwo-pseudo_hu_1cd422bb5699fe4c.webp 320w, https://rodrigoclira.github.io/blog/2022/gwo-in-a-nutsshell/gwo-pseudo_hu_92cc1ede0eb47f0b.webp 480w, https://rodrigoclira.github.io/blog/2022/gwo-in-a-nutsshell/gwo-pseudo_hu_1f55d97fd5b3a468.webp 760w&#34;
               sizes=&#34;(max-width: 480px) 100vw, (max-width: 768px) 90vw, (max-width: 1024px) 80vw, 760px&#34;
               src=&#34;https://rodrigoclira.github.io/blog/2022/gwo-in-a-nutsshell/gwo-pseudo_hu_1cd422bb5699fe4c.webp&#34;
               width=&#34;760&#34;
               height=&#34;500&#34;
               loading=&#34;lazy&#34; data-zoomable /&gt;&lt;/div&gt;
  &lt;/div&gt;&lt;/figure&gt;
&lt;/p&gt;
&lt;h2 id=&#34;python-code&#34;&gt;Python Code&lt;/h2&gt;
&lt;h3 id=&#34;agent&#34;&gt;Agent&lt;/h3&gt;
&lt;script src=&#34;https://gist.github.com/rodrigoclira/7011024663d79a93f6ab766ed225b280.js&#34;&gt;&lt;/script&gt;

&lt;h3 id=&#34;benchmark-function&#34;&gt;Benchmark Function&lt;/h3&gt;
&lt;script src=&#34;https://gist.github.com/rodrigoclira/f283abd096696788ebc8938ca5f82193.js&#34;&gt;&lt;/script&gt;

&lt;h3 id=&#34;grey-wolf-optimizer-code&#34;&gt;Grey Wolf Optimizer Code&lt;/h3&gt;
&lt;script src=&#34;https://gist.github.com/rodrigoclira/e70da5406147f9b2baedb1bfb15ccae8.js&#34;&gt;&lt;/script&gt;

&lt;h3 id=&#34;main-code&#34;&gt;Main code&lt;/h3&gt;
&lt;script src=&#34;https://gist.github.com/rodrigoclira/370a35d29485401533cafdfc277ad716.js&#34;&gt;&lt;/script&gt;

&lt;p&gt;Single file available here 
&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Text from our paper &amp;lsquo;&lt;strong&gt;Modelling the Social Interactions in Grey Wolf Optimizer&lt;/strong&gt;&amp;rsquo; available in 
&lt;/em&gt;&lt;/p&gt;
</description>
    </item>
    
    <item>
      <title>Publicação no Latin America Conference on Computational Intelligence (LA-CCI 2021)</title>
      <link>https://rodrigoclira.github.io/blog/2021/lacci2021/</link>
      <pubDate>Sun, 26 Sep 2021 23:57:14 -0300</pubDate>
      <guid>https://rodrigoclira.github.io/blog/2021/lacci2021/</guid>
      <description>&lt;p&gt;O artigo &amp;ldquo;Modelling the Social Interactions in Grey Wolf Optimizer&amp;rdquo; foi aceito no 
.&lt;/p&gt;
&lt;p&gt;Autores: &lt;strong&gt;Rodrigo C. Lira&lt;/strong&gt;, Mariana Macedo, Hugo Valadares Siqueira. Ronaldo Menezes, Carmelo Bastos-Filho&lt;/p&gt;
&lt;p&gt;Abstract:
&amp;ldquo;Swarm  Intelligence  has  been  successfully  used  forsolving high-dimensional and multimodal optimization problems.However, the wide range of swarm-based techniques, operators,and  parameters  requires  prior  knowledge  before  applying  themto  real-world  problems.  Because  of  this,  we  have  been  study-ing  the  meso-level  characteristics  that  emerge  from  the  socialinteractions  within  the  swarm  to  understand  each  swarm-basedtechnique’s  unique  characteristics.  In  this  paper,  we  model  andstudy the interaction network of the Grey Wolf Optimizer (GWO)to  capture  its  social  behaviour.  We  used  Portrait  divergence  tocompare  the  similarity  between  network  structures  over  exper-iments,  simulations  and  iterations  of  the  GWO.  We  also  usedKullback divergence to compare the probability distributions ofthe  network  flows  varying  over  experiments,  simulations  anditerations  of  the  GWO.  Furthermore,  we  discovered  we  couldidentify  the  GWO  convergence  using  the  interaction  networkapproach.  Comparing  different  simulations,  we  found  that  thewolves  communicate  using  a  stable  network  structure  but  notnecessarily  a  stable  network  flow  indicating  variance  in  thenumber  of  highly  influential  wolves.  We  also  point  out  patternsfound in GWO that appears to be similar to other swarm-basedalgorithms  (GPSO  and  FSS).&amp;rdquo;&lt;/p&gt;
</description>
    </item>
    
    <item>
      <title>Applying Reinforcement Learning to Combine Multiple Swarm-based Algorithms</title>
      <link>https://rodrigoclira.github.io/events/2023/lacci2023/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>https://rodrigoclira.github.io/events/2023/lacci2023/</guid>
      <description></description>
    </item>
    
    <item>
      <title>Boolean Binary Grey Wolf Optimizer</title>
      <link>https://rodrigoclira.github.io/events/2022/lacci2022/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>https://rodrigoclira.github.io/events/2022/lacci2022/</guid>
      <description></description>
    </item>
    
    <item>
      <title>Exploring Social Dynamics in a Reinforcement Learning-based Metaheuristic - A study using Improvement Frequency and Population Turnover</title>
      <link>https://rodrigoclira.github.io/events/2024/lacci2024/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>https://rodrigoclira.github.io/events/2024/lacci2024/</guid>
      <description></description>
    </item>
    
    <item>
      <title>Modelling the Social Interactions in Grey Wolf Optimizer</title>
      <link>https://rodrigoclira.github.io/events/2021/lacci2021/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>https://rodrigoclira.github.io/events/2021/lacci2021/</guid>
      <description></description>
    </item>
    
  </channel>
</rss>
