?? asga.asv
字號:
%自適應變步長定向變異遺傳算法 軟件工程國家重點實驗室 林志毅 2006.10.18
%The main program for adaptive step-changing directional mutation genetic
%algorithm
clf;
figure(gcf);
echo on
clc
initPop=initializega(30,[-3.0 12.1;4.1 5.8],'function1');
[x endPop bpop trace]=ga([-3.0 12.1;4.1 5.8],'function1',[],initPop,[1e-6 1 1],'maxGenTerm',300,'roulette',[0.08],'arithXover',[0.8 0],'GradMutation1',[0.7 100 2]);
x%the best found
%Let's take a look at the performance of the ga during the run
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -