資源簡介
initialize 總群 得分的 如果惹人二個熱天餓二人格人如果如果如果個人
代碼片段和文件信息
function?[pop]?=?initializega(num?bounds?evalFNevalOpsoptions)
%?function?[pop]=initializega(populationSize?variableBoundsevalFN
%???????????????????????????evalOpsoptions)
%????initializega?creates?a?matrix?of?random?numbers?with?
%????a?number?of?rows?equal?to?the?populationSize?and?a?number
%????columns?equal?to?the?number?of?rows?in?bounds?plus?1?for
%????the?f(x)?value?which?is?found?by?applying?the?evalFN.
%????This?is?used?by?the?ga?to?create?the?population?if?it
%????is?not?supplied.
%
%?pop????????????-?the?initial?evaluated?random?population?初始總群
%?populatoinSize?-?the?size?of?the?population?i.e.?the?number?to
%?create總群中的個體數目
%?variableBounds?-?a?matrix?which?contains?the?bounds?of?each?variable?i.e.
%??????????????????[var1_high?var1_low;?var2_high?var2_low;?....]代表變量的上下界
%?evalFN?????????-?the?evaluation?fn?usually?the?name?of?the?.m?file?for?
%??????????????????evaluation適應度函數
%?evalOps????????-?any?options?to?be?passed?to?the?eval?function?defaults
%?[]傳遞給適應度函數的參數
%?options????????-?options?to?the?initialize?function?ie.?
%選擇編碼形式
%??????????????????[type?prec]?where?eps?is?the?epsilon?value?
%??????????????????and?the?second?option?is?1?for?float?and?0?for?binary?
%??????????????????prec?is?the?precision?of?the?variables?defaults?[1e-6?1]
%?Binary?and?Real-Valued?Simulation?Evolution?for?Matlab?GAOT?V2?
%?Copyright?(C)?1998?C.R.?Houck?J.A.?Joines?M.G.?Kay?
%
%?C.R.?Houck?J.Joines?and?M.Kay.?A?genetic?algorithm?for?function
%?optimization:?A?Matlab?implementation.?ACM?Transactions?on?Mathmatical
%?Software?Submitted?1996.
%
%?This?program?is?free?software;?you?can?redistribute?it?and/or?modify
%?it?under?the?term
- 上一篇:dpso算法matlab實現
- 下一篇:灰度圖像彩色化 matlab
評論
共有 條評論