![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
智能优化算法
dunwuh
这个作者很懒,什么都没留下…
展开
-
python启发式算法在benchmark中的运行,遗传算法...
首先贴上遗传算法代码,如下:import numpyimport randomimport timeimport sysfrom solution import solutiondef crossoverPopulaton(population, scores, popSize, crossoverProbability, keep): """ The crossover of all individuals Parameters ----------原创 2021-03-18 17:06:53 · 901 阅读 · 4 评论 -
用python对文本文件内容加密
import base64import pickledef _save_(file_path, obj): output = open(file_path, 'wb') a = base64.b64encode(pickle.dumps(str(obj))).decode() pickle.dump(a, output) print("data saving as % s successfully" % file_path)def _read_(file_pa.原创 2020-07-20 17:06:55 · 2284 阅读 · 0 评论 -
国内github项目加速下载
https://all.mk-proxy.tk/-----该地址是国内的镜像,大家下载只需在github项目首页复制该git的地址栏的地址即可加速下载。地址访问方式为:https://all.mk-proxy.tk/-----https://github.com/xxx/xxx原创 2020-07-15 16:46:46 · 417 阅读 · 0 评论 -
用于全局优化的分数阶Lèvy飞行蝙蝠算法源码复现
function [bestX,fMin] = FLFBA()%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 设置默认参数M = 1000;pop = 10;dim = 2;gama = 0.9; %0.9alpha = 0.99; %0.99r0Max = 1; %1r0Min = 0; %0AMax = 2; %2AMin = 0; %0.5freqMax = 2; %2f原创 2020-06-22 10:31:20 · 571 阅读 · 2 评论 -
二进制蝙蝠算法Matlab源码实现
function [best,fmin,cg_curve]=BBA(n, A, r, d, Max_iter, CostFunction)%n is the population size, typically 10 to 25%A is the loudness (constant or decreasing)%r is the pulse rate (constant or decreasing)%d is the dimension of the search variables%Max.原创 2020-05-15 15:04:12 · 1465 阅读 · 12 评论 -
matlab智能优化算法CEC2013性能测试函数运行教程(安装+运行)
1. 首先你得拥有一个matlab环境,建议安装matlab2016a。2. 安装完matlab你要运行CEC2013里面的cpp文件吧,那运行cpp文件是需要编译器的啊,cec2013里面必须要mex编译,所以要安装编译器,建议版本为TDM-GCC 5.1.0。注意其要跟安装matlab版本(2016a)对应,不对应会报错。再废话一句,安装好后,matlab要重启一下切记!切记!切记!3...原创 2020-04-27 11:37:03 · 4771 阅读 · 28 评论