📄 ga_gen_fp7.m
字号:
function PI=GA_gen_fp7(chromosome)
global MIN_offset MUL_factor
X=chromosome(1); Y=chromosome(2);
% The original PI (maximization) is defined as follows
% PI=21.5+X.*sin(4*pi*X)+1.1*Y.*sin(20*pi*Y);
% If we enhance the later part of the above assignment with a factor of
% multiplication of 200, the PI derived is more sensitive than the original
% one. Therefore, we can get the rapid convergence rate of GA to find the
% best solution. We modify the above assignment as follows:
PI=21.5+200*(X.*sin(4*pi*X)+Y.*sin(20*pi*Y));
attached_part;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -