choosestart.m

来自「粒子群算法」· M 代码 · 共 39 行

M
39
字号
function [ output_args ] = chooseStart( input_args )%UNTITLED1 Summary of this function goes here%  Detailed explanation goes here format longwarning off%  initPop=initialize(10,[0,0.0004;0.001,2;10,100;0.0001,2],'KPCASVM',[],[1e-6 1 1]);%生成初始种群,大小为10    initPop=[   0.00033524737802   0.38766888165402  54.68972047327926   1.45425372253766   0.19927855977302   0.05705298842786   0.05428234033159   0.00000785580555   1.36476422395918  90.97922576526490   0.61864939056594   0.46358490566044   0.09639982441537   0.10196236682155   0.00027251086451   0.60622603715244  83.94662446618085   1.67700824027167   0.36891338480829   0.07443664716814   0.07313996749282   0.00015179240721   1.08380603394228  68.04193457744600   1.13618811476945   0.46358490566038   0.09639982441686   0.10196236682242   0.00033271840704   0.30259507932338  83.61769067553206   0.74089007190857   0.25952191545601   0.06193786294076   0.06262128464663   0.00020112515360   1.39609906523787  69.42048007974421   1.40550955248943   0.46358490566038   0.09639982441686   0.10196236682242   0.00028378855708   0.75736762802483  40.77735564431941   1.09318764654303   0.53042869139692   0.09113770601588   0.10524770690261   0.00017155694614   1.72016319816875  36.07533062706143   0.88981592132536   0.18451314142549   0.04266387629118   0.03724417648123   0.00012184694675   1.70745660619487  40.70742124733951   1.38916502412705   0.19736792318719   0.04892760197786   0.03870737497535   0.00007586149902   1.18753226216682  58.06711158639404   1.24265813057775   0.46358490566038   0.09639982441686   0.10196236682242]                          [x endPop,bPop,trace]=ga([0,0.0004;0.001,2;10,100;0.0001,2],'KPCASVM',[],initPop,[],'maxGenTerm',30,'normGeomSelect',...  [0.08],['arithXover heuristicXover simpleXover'],[2,0;2,3;2,0],['boundaryMutation multiNonUnifMutation nonUnifMutation unifMutation'],[4 0 0;6 100 3;4 100 3;4 0 0])   %100次遗传迭代       

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?