资源简介
MATLAB 优化问题 26个测试函数,直接使用即可,唉,前段时间费了好久时间写的,后来发现在网上有库,囧,给大家分享下。。。。
代码片段和文件信息
function f=benchmark_func(xfunc_num)
global initial_flag
persistent fhd f_bias
% benchmark_func.m is the main function for 25 test functions all minimize
% problems
% e.g. f=benchmark_func(xfunc_num)
% x is the variable f is the function value
% func_num is the function num
% 25 TEST FUCNTIONS
% Unimodal Functions (5):
% 1. Shifted Sphere Function Bounds[-100100] f_bias=-450
% 2. Shifted Schwefel‘s Problem 1.2 Bounds[-100100] f_bias=-450
% 3. Shifted Rotated High Conditioned Elliptic Function Bounds[-100100] f_bias=-450
% 4. Shifted Schwefel‘s Problem 1.2 with Noise in Fitness Bounds[-100100] f_bias=-450
% 5. Schwefel‘s Problem 2.6 with Global Optimum on Bounds Bounds[-100100] f_bias=-310
%
% Multimodal Functions (20):
% Basic Functions (7):
% 6. Shifted Rosenbrock‘s Function Bounds[-100100] f_bias=390
% 7. Shifted Rotated Griewank‘s Function without Bounds Initilization Range [0 600] f_bias=-180
% 8. Shifted Rotated Ackley‘s Function with Global Optimum on Bounds Bounds[-3232] f_bias=-140
% 9. Shifted Rastrigin‘s Function Bounds[-55] f_bias=-330
% 10. Shifted Rotated Rastrigin‘s Function Bounds[-55] f_bias=-330
% 11. Shifted Rotated Weierstrass Function Bounds[-0.50.5] f_bias=90
% 12. Schwefel‘s Problem 2.13 Bounds[-100100] f_bias=-460
% Expanded Functions (2):
% 13. Expanded Extended Griewank‘s plus Rosenbrock‘s Function (F8F2) Bounds[-31] f_bias=-130
% 14. Expanded Rotated Extended Scaffe‘s F6 Bounds[-100100] f_bias=-300
% Hybrid Composition Functions (11):
% 15. Hybrid Composition Function 1 Bounds[-55] f_bias= 120
% 16. Rotated Hybrid Composition Function 1 Bounds[-55] f_bias= 120
% 17. Rotated Hybrid Composition Function 1 with Noise in Fitness Bounds[-55] f_bias= 120
% 18. Rotated Hybrid Composition Function 2 Bounds[-55] f_bias=10
% 19. Rotated Hybrid Composition Function 2 with a Narrow Basin for the Global Optimum Bounds[-55]] f_bias=10
% 20. Rotated Hybrid Composition Function 2 with the Global Optimum on the Bounds Bounds[-55] f_bias=10
% 21. Rotated Hybrid Composition Function 3 Bounds[-55] f_bias=360
% 22. Rotated Hybrid Composition Function 3 with High Condition Number Matrix Bounds[-55] f_bias=360
% 23. Non-Continuous Rotated Hybrid Composition Function 3 Bounds[-55] f_bias=360
% 24. Rotated Hybrid Composition Function 4 Bounds[-55] f_bias=260
% 25. Rotated Hybrid Composition Function 4 without Bounds Intilization Range[-25] f_bias=260
%
%J. J. Liang & P. N. Suganthan 2005.Feb 18
if initial_flag==0
if func_num==1 fhd=str2func(‘sphere_func‘); %[-100100]
elseif func_num==2 fhd=str2func(‘schwefel_102‘); %[-100100]
elseif func_num==3 fhd=str2func(‘high_c
相关资源
- matlab_OFDM调制解调(来自剑桥大学)
- Matlab路面裂缝识别69319
- 高灵敏度GPS接收机MATLAB仿真,附捕获
- 基于MATLAB的质点弹道计算与外弹道优
- 阵列天线的matlab仿真
- MATLAB 经典程序源代码大全
- MATLAB小波软阈值去噪代码33473
- 天线阵的波束形成在MATLAB仿真程序及
- 非线性SVM算法-matlab实现
- 《MATLAB 智能算法超级学习手册》-程序
- 组合导航matlab程序
- 读取txt文件内容matlab代码实现
- Matlab实现基于相关的模板匹配程序
- matlab优化工具箱讲解
- 基于MATLAB的快速傅里叶变换
- 光纤传输中的分布傅立叶算法matlab实
- 基于matlab的图像处理源程序
- matlab 椭圆拟合程序
- 算术编码解码matlab源代码
- optical_flow 光流法 matlab 实现程序
- 引导图像滤波器 Matlab实现
- 分形几何中一些经典图形的Matlab画法
- OFDM系统MATLAB仿真代码
- SVM工具箱(matlab中运行)
- 图像小波变换MatLab源代码
- LU分解的MATLAB实现
- 冈萨雷斯数字图像处理matlab版(第三
- 替代数据法的matlab程序
- 用matlab实现的多站定位系统性能仿真
- 通过不同方法进行粗糙集属性约简m
评论
共有 条评论