当前位置:网站首页>Machine learning notes - gray wolf optimization
Machine learning notes - gray wolf optimization
2022-07-05 14:46:00 【Sit and watch the clouds rise】
1、 summary
Among various optimization techniques , Gray wolf optimization is a meta heuristic optimization technology , Its inspiration comes from the hierarchical relationship between wolf families and the special hunting techniques used by gray wolves . Therefore, gray wolf optimization technology simulates the overall characteristics of gray wolf population , Try to find the optimal solution .
Before understanding the optimization technology of gray wolf , Let's try to understand why this algorithm is inspired by the social hierarchy of the gray wolf family .
The above figure shows the social hierarchy of gray wolves , The characteristics of each wolf category are different in the Group . The whole gray wolf optimization family is officially called a pack. Now let's try to understand the responsibilities of each kind of wolf in the Group .
Alpha wolf : Alpha wolves dominate the gray wolf pack , Have the right to command the whole gray wolf group .
Beta Wolf: Beta Wolves regularly give Alpha Wolf Report , And to help Alpha The wolf makes the best decision .
Delta Wolf: Delta The wolf belongs to beta The Wolf , by alpha and beta Wolf provides continuous updates , yes omega The wolf's superior .
Omega wolf : Omega wolves are responsible for hunting wolves in gray wolves , And take care of young wolves .
Gray wolves follow a special hunting technique , The whole gray wolf pack hunts its prey in groups . The selected prey is separated from the pack by Omega wolves , The selected prey is chased and attacked by coyotes and beta wolves . therefore , The unique hunting technology adopted by gray wolves has led to the development of an optimization technology called gray wolf optimization , Among them, the use of various built-in functions produces the closest optimal solution .
2、 purpose
Gray wolf optimization technology is used for various time-consuming problems , for example NP-hard Problems and travel sales problems . Gray wolf optimization technology usually reduces the operation time of high-dimensional data , Because the algorithm decomposes the whole complex problem into subsets . Provide a subset of operations to each agent , Similar to the overall hierarchy of gray wolves , And produce the best optimal solution .
therefore , In an algorithm similar to gray wolf hierarchy , Decompose the complex problem into agents , Each agent undertakes its own tasks and reduces the overall time consumption . All agents in the algorithm follow certain guidelines and strategies , And find the best solution of the problem .
3、 working principle
Explain the gray wolf pack in the form of optimal solution parameters .
Alpha wolf It can be called the most suitable solution of all possible solutions to this problem . It is the optimal solution produced by the optimization algorithm .
Beta wolf It can be called the sub optimal solution of all possible solutions to the problem . If the optimal solution is not suitable for some solutions , Then the solution will be adopted .
Delta wolf It can be called the third best solution of all possible solutions to this problem . But for all possible solutions , The third best solution is to use the most suitable and most suitable solution to evaluate .
Omega wolf It can be called the optimal solution generated for all possible solutions , And only the third optimal solution is used to evaluate the optimal solution , And will not be compared with the best appropriate solution .
In the context of the optimal solution generated by gray wolf optimization technology , Let's try to understand how the solution generated by the algorithm is listed as the most suitable solution among all possible solutions .
First , Verify a random number of possible solutions to the problem . All possible solutions are usually expressed as “A” The standard vector proportion of . therefore , If A>1, Then the possible solution will deviate from the optimal solution of the problem , If A<1, Then all possible solutions will converge to the optimal solution , To find the most appropriate solution to the problem . Once the most suitable solution is determined , The algorithm will stop iterating , And appropriately rank the best possible solutions to the problem , And get the verified solution from the ranking . in the majority of cases , Use the most suitable solution , In rare cases , Choose the next best solution to some problems , Not the most suitable solution .
4、 Application example
Gray wolf optimization finds its main application in tasks that must repeat the solution to achieve the required tasks to produce the best solution . therefore , Gray wolf optimization technology has been applied in various problems , for example NP-hards problem 、 Traveling salesman problem and many others AI problem . Let's try to understand how grey wolf optimization technology can help solve the problem of travel agents .
Let's first try to understand the problem of travel agents . The goal of this problem is that the salesperson is only allowed to visit the city once , Find the shortest path between cities .
Explain the traveling salesman problem through gray wolf optimization , The whole gray wolf population can be called the different paths that salesmen must take to cover the city , Therefore, it becomes a candidate solution to this problem . The best solution can be taught as prey , The best solution here is the best starting city .
So for the starting city , The optimization algorithm will have to produce the nearest city ( Alpha wolf ), This can be called the best solution to the problem , Therefore, all cities that are the second closest to the starting city can be called the second best solution (beta wolf). Similarly , The city that is the third closest to the starting city can be called the third best solution (delta wolf), And all other cities closest to the smart city can be called the best solution among all candidate solutions (omega wolf ).
The most suitable solution is TSP The best solution for the solution , Known as the best fit solution , And the best fitting solution is verified in all the best solutions generated by gray wolf optimization .
So this is how the gray wolf optimization algorithm will find the best solution for salesmen by providing the shortest distance from the starting city to the next city and ensuring that salesmen only visit each city once .
5、 Advantages and disadvantages
Advantages of grey wolf optimization
Because gray wolf optimization technology attempts to replicate the hunting characteristics of gray wolves , The optimization algorithm decomposes the complex problem into different subsets , And try to produce the best possible optimal solution . Compared with other optimization algorithms , The iteration process of gray wolf optimization algorithm is faster , Because they compare different solutions for the best solution and sort them accordingly . This sort of grey wolf optimization technology makes the convergence speed of the model faster .
Disadvantages of gray wolf optimization
Gray wolf optimization only tries to find the best solution when the best possible solution falls within the scope of the best solution . This makes gray wolf optimization technology produce low accuracy , Sometimes it converges to a bad solution . In some cases , The best possible solution may not be considered by the candidate solution group . Besides , Gray wolf optimization technology belongs to heuristic optimization technology , The resulting optimal solution is only close to the original optimal solution , It is not the best solution of the problem .
边栏推荐
- [detailed explanation of Huawei machine test] happy weekend
- CPU设计实战-第四章实践任务二用阻塞技术解决相关引发的冲突
- 想进阿里必须啃透的12道MySQL面试题
- be careful! Software supply chain security challenges continue to escalate
- 【C 题集】of Ⅷ
- 直播预告|如何借助自动化工具落地DevOps(文末福利)
- [12 classic written questions of array and advanced pointer] these questions meet all your illusions about array and pointer, come on!
- TS所有dom元素的类型声明
- 注意!软件供应链安全挑战持续升级
- 手写promise与async await
猜你喜欢
[summary of leetcode weekly competition] the 81st fortnight competition of leetcode (6.25)
安装配置Jenkins
基于TI DRV10970驱动直流无刷电机
Interview shock 62: what are the precautions for group by?
【NVMe2.0b 14-9】NVMe SR-IOV
ASP. Net large takeout ordering system source code (PC version + mobile version + merchant version)
Photoshop plug-in action related concepts actionlist actiondescriptor actionlist action execution load call delete PS plug-in development
Chow Tai Fook fulfills the "centenary commitment" and sincerely serves to promote green environmental protection
选择排序和冒泡排序
freesurfer运行完recon-all怎么快速查看有没有报错?——核心命令tail重定向
随机推荐
maxcompute有没有能查询 表当前存储容量的大小(kb) 的sql?
基于TI DRV10970驱动直流无刷电机
PHP - fatal error: allowed memory size of 314572800 bytes exhausted
Type declaration of all DOM elements in TS
周大福践行「百周年承诺」,真诚服务推动绿色环保
LeetCode_ 2 (add two numbers)
STM32+BH1750光敏传感器获取光照强度
FR练习题目---综合题
想进阿里必须啃透的12道MySQL面试题
PyTorch二分类时BCELoss,CrossEntropyLoss,Sigmoid等的选择和使用
Using tensorboard to visualize the training process in pytoch
How to make a second clip of our media video without infringement
我想咨询一下,mysql一个事务对于多张表的更新,怎么保证数据一致性的?
如何将电脑复制的内容粘贴进MobaXterm?如何复制粘贴
freesurfer运行完recon-all怎么快速查看有没有报错?——核心命令tail重定向
Detailed explanation of usememo, memo, useref and other relevant hooks
How to protect user privacy without password authentication?
CODING DevSecOps 助力金融企业跑出数字加速度
浅谈Dataset和Dataloader在加载数据时如何调用到__getitem__()函数
There is a powerful and good-looking language bird editor, which is better than typora and developed by Alibaba