📄 plower.asv
字号:
options = gaoptimset('Generations',100);
rand('state', 71); % These two commands are only included to
randn('state', 59); % make the results reproducible.
record=[];
for n=0:.05:1
options = gaoptimset(options,'CrossoverFraction', n);
[x fval]=ga(@GA_f23, 2, options);
record = [record; fval];
end
plot(0:.05:1, record);
xlabel('Crossover Rate');
ylabel('fval')
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -