开发者

How can modle search in a matrix with bee algorithm?

开发者 https://www.devze.com 2023-03-16 07:07 出处:网络
I am trying to use Bee algorithm for searching in a matrix. for example we have an matrix with 100*100 size.

I am trying to use Bee algorithm for searching in a matrix. for example we have an matrix with 100*100 size. 3 of it's fields are 1 valued and other ones are 0. now how can we search this with Bee algorithm. Thanks if help me.

The pseudo code f开发者_JS百科or the bees algorithm :

  1. Initialise population with random solutions.
  2. Evaluate fitness of the population.
  3. While (stopping criterion not met) //Forming new population.
  4. Select sites for neighbourhood search.
  5. Recruit bees for selected sites (more bees for best e sites) and evaluate fitnesses.
  6. Select the fittest bee from each patch.
  7. Assign remaining bees to search randomly and evaluate their fitnesses.
  8. End While.


As far as I can tell, the Bee algorithm is designed for continuous, rather than discrete data. So, it does not apply to your problem.

0

精彩评论

暂无评论...
验证码 换一张
取 消