资源简介
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
相关资源
- 信号检测与估计-理论与应用 部分习题
- 用有限差分法求解矩形域上的Poisson方
- matlab源码的IMM交互多目标单目标跟踪
- 信号调制识别论文含matlab程序
- matlab 交通流中机动车辆的检测
- 基于SURF特征点的图像拼接算法
- MATLAB数字图像处理外文文献
- 基于MATLAB相机标定 有源程序,试验图
- matlab_PIV
- TLD跟踪算法源代码作者的MATLAB+C版本
- 格林函数的Matlab模拟完整源程序和论
- DSP实验:matlab实现电话拨号音的产生
- MATLAB 模糊逻辑工具箱Fuzzy Logic Toolbo
- Turbo码matlab
- Random Walk Model Matlab源代码
- 司守奎 数学建模算法与应用 配套源码
- RGB转换为IHS MATLAB
- Matlab智能算法30个案例分析.源代码
- 一种效果极好的交互式图像分割算法
- 虹膜识别+源代码+matlab+霍夫变换+hou
- matlab的画图工具包gramm
- 人脸检测matlab编写
- map match matlab
- GVFSnake(matlab)边缘检测和图像分割
- 波束形成Matlab程序218509
- 贝叶斯网络Matlab源代码
- ADAMS与MATLAB联合仿真模拟曲柄摇杆机构
- 基于信息熵的约简MATLAB代码
- 任玉杰《数值分析及其MATLAB实现》所
- 流形学习LLE源代码matlab编写
评论
共有 条评论