📄 ga_gen_fp43.m
字号:
function PI=GA_gen_fp43(chro)
% (Minimize) Fitness function evaluation
% chro is the array transfered from GA for optimization.
% PenChen Chou, 2003-3-12
global MIN_offset MUL_factor c1 c2 c3 efactor
% Fitness function evaluation
x=chro(1); y=chro(2);
PI=-c1*exp(-c2*sqrt(0.5*(x^2+y^2)))-exp(0.5*(cos(c3*x)+cos(c3*y)))+c1+efactor;
% attached_part is used to transfer a minimization problem
% into a maximization problem. Input is PI, Output is PI.
attached_part;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -