-
大小: 2KB文件類型: .zip金幣: 2下載: 2 次發布日期: 2021-02-02
- 語言: Matlab
- 標簽: straightrqq??initializega??matlab??initializega??
資源簡介
遺傳算法函數initializega,2010a以后需要手動載入。
代碼片段和文件信息
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_lo
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件????????3391??2015-03-01?23:46??initializega.m
評論
共有 條評論