交差確率と突然変異確率を設定するGAOTツールボックス

推奨読書「を達成するために計算され、最適化Matlabの遺伝的アルゴリズムツールボックス- Chenqiuリアン」この論文

GAOTツールボックスの詳細については、Baiduにアクセスしてください。ここでは、主にGAOTツールボックスで交差確率と突然変異確率を設定する方法について説明します。

まず、GAOTツールボックスのga.mの説明を見てください。

ga run a genetic algorithm
  function [x,endPop,bPop,traceInfo]=ga(bounds,evalFN,evalOps,startPop,opts,
                                        termFN,termOps,selectFN,selectOps,
                                        xOverFNs,xOverOps,mutFNs,mutOps)
                                 
  Output Arguments:
    x            - the best solution found during the course of the run
    endPop       - the final population 
    bPop         - a trace of the best population
    traceInfo    - a matrix of best and means of the ga for each generation
 
  Input Arguments:
    bounds       - a matrix of upper and lower bounds on the variables
    evalFN       - the name of the evaluation .m function
    evalOps      - options to pass to the evaluation function ([NULL])
    startPop     - a matrix of solutions that can be initialized
                   from initialize.m
    opts         - [epsilon prob_ops display] change required to consider two 
                   solutions different, prob_ops 0 if you want to apply the
                   genetic operators probabilisticly to each solution, 1 if
                   you are supplying a deterministic number of operator
                   applications and display is 1 to output progress 0 for
                   quiet. ([1e-6 1 0])
    termFN       - name of the .m termination function (['maxGenTerm'])
    termOps      - options string to be passed to the termination function
                   ([100]).
    selectFN     - name of the .m selection function (['normGeomSelect'])
    selectOpts   - options string to be passed to select after
                   select(pop,#,opts) ([0.08])
    xOverFNS     - a string containing blank seperated names of Xover.m
                   files (['arithXover heuristicXover simpleXover']) 
    xOverOps     - A matrix of options to pass to Xover.m files with the
                   first column being the number of that xOver to perform
                   similiarly for mutation ([2 0;2 3;2 0])
    mutFNs       - a string containing blank seperated names of mutation.m 
                   files (['boundaryMutation multiNonUnifMutation ...
                            nonUnifMutation unifMutation'])
    mutOps       - A matrix of options to pass to Xover.m files with the
                   first column being the number of that xOver to perform
                   similiarly for mutation ([4 0 0;6 100 3;4 100 3;4 0 0])

次に、以下の説明を論文から直接抽出します。
ここに画像の説明を挿入

したがって、ここから、ほとんどの場合、GAアルゴリズムの選択方法はルーレット法であり、GAOTツールボックスでは他の選択方法を使用でき、選択確率を設定できます。クロスオーバー操作でGAOTのarithXoverメソッドを使用する場合、クロスオーバー確率はランダムです
ここに画像の説明を挿入
が、自分で設定できます。たとえば、上の図では、クロスオーバー確率を0.4に設定しています。

元の13件の記事を公開 いいね32 10,000+を訪問

おすすめ

転載: blog.csdn.net/weixin_43637490/article/details/104600678