How can modle search in a matrix with bee algorithm?
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 :
- Initialise population with random solutions.
- Evaluate fitness of the population.
- While (stopping criterion not met) //Forming new population.
- Select sites for neighbourhood search.
- Recruit bees for selected sites (more bees for best e sites) and evaluate fitnesses.
- Select the fittest bee from each patch.
- Assign remaining bees to search randomly and evaluate their fitnesses.
- 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.
精彩评论