ga_gen_fp7.m
来自「其中提到遺傳學的程式碼與應用提供給次淚相向的研究者參考下載」· M 代码 · 共 13 行
M
13 行
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 + =
减小字号Ctrl + -
显示快捷键?