📄 eolesson4.html
字号:
<br><font color="#FF0000">Integer parameter:</font><font color="#000000">maximum number of generations.</font><font color="#FF0000">No defaultvalue.</font><p><b><tt><font color="#3333FF"><font size=+1># --targetFitness=0 # -T: Stop when fitness reaches</font></font></tt></b><br><font color="#FF0000">Real-valued parameter:</font><font color="#000000">the algorithm stops whenever the best fitness reaches that target. </font><font color="#FF0000">Nodefault value.</font><p><b><tt><font color="#3333FF"><font size=+1># --CtrlC=0 # -C : Terminatecurrent generation upon Ctrl C</font></font></tt></b><br><font color="#FF0000">Boolean parameter:</font><font color="#000000">if true, Ctrl C only stops after the current generation as completed (eventuallydumping population to a file if some saver is active). This very usefulfeature is only available in Unix at the moment. </font><font color="#FF0000">Defaultis false.</font><br><hr ALIGN=LEFT SIZE=5 WIDTH="100%"><p><a NAME="binary"></a><b><font size=+1><font color="#000099">User's guide:</font><font color="#FF0000">Bistringspecific parameters</font></font></b><br>The following describes the specific parameters that are availablein program BitEA to evolve genotypes that are <b><font color="#FF6600">bitstrings</font></b>.<br>The two representation-dependent sections are concerned repectivelywith genotype initilization and variation operators.<p><hr SIZE=5 WIDTH="30%"><p><b><font size=+1><font color="#FF0000">Section </font><tt><font color="#CC33CC">###### Genotype Initialization ######</font></tt></font></b><br><font color="#000000">This section should allow input if all necessaryparameters for genitype initialization</font><p><b><tt><font color="#CC33CC"><font size=+1># --ChromSize=10 # -n : Thelength of the bitstrings</font></font></tt></b><br><font color="#FF0000">Integer parameter:</font><font color="#000000">The bitstring initilization only requires the length of the chromosome.</font><p><hr SIZE=5 WIDTH="30%"><p><b><font size=+1><font color="#FF0000">Section </font><tt><font color="#CC33CC">###### Variation Operators ######</font></tt></font></b><br><font color="#000000">This section allows to tune the way the variationoperators will be applied to the individuals (in the strict limit of SGAmodel at the moment, see below).</font><p><b><tt><font color="#CC33CC"><font size=+1># --operator=SGA # -o : Descriptionof the operator (SGA only now)</font></font></tt></b><br><font color="#FF0000">String parameter:</font><font color="#000000">Describes the way the operators are applied. At the moment, </font><b><font color="#FF6600">onlySGA</font></b><font color="#000000"> is available. SGA </font><b><font color="#FF6600">sequentially</font></b><font color="#000000">applies a (quadratic) crossover operator with probability </font><b><tt><font color="#CC33CC"><font size=+1>pCross</font></font></tt></b><font color="#000000">and a mutation operator with probability </font><b><tt><font color="#CC33CC"><font size=+1>pMut</font></font></tt></b><font color="#000000">.Both these operators can in turn be </font><b><font color="#FF6600">proportionalcombinations</font></b><font color="#000000"> of simple operators of thesame arity.</font><p><b><tt><font color="#CC33CC"><font size=+1># --pCross=0.6 # -C : Probabilityof Crossover</font></font></tt></b><br><font color="#FF0000">Floating-point parameter:</font><font color="#000000">The probability that a given couple of selected genitors is applied thecrossover operator. In SGA operator model, each couple of selected genitorsis applied the crossover operator with that probability (and remains unchangedwith probability </font><b><tt><font color="#CC33CC"><font size=+1>1-pCross</font></font></tt></b><font color="#000000">.Whenever a couple undergoes crossover, a choice is made upon availablecrossover operators </font><b><font color="#FF6600">proportionaly to theirrelative rates</font></b><font color="#000000"> (see below). </font><font color="#FF0000">Defaultis 0.6</font><font color="#000000">.</font><p><b><tt><font color="#CC33CC"><font size=+1># --pMut=0.1 # -M : Probabilityof Mutation</font></font></tt></b><br><font color="#FF0000">Floating-point parameter:</font><font color="#000000">The probability that a given individual (resulting from a crossover ora non-crossover operation, see above) is applied the mutation operator.Whenever an individual undergoes mutation, a choice is made upon availablemutation operators </font><b><font color="#FF6600">proportionaly to theirrelative rates</font></b><font color="#000000"> (see below). </font><font color="#FF0000">Defaultis 0.1</font><font color="#000000">.</font><p><b><tt><font color="#CC33CC"><font size=+1># --onePointRate=1 # -1 :Relative rate for one point crossover</font></font></tt></b><br><font color="#FF0000">Floating-point parameter:</font><font color="#000000">Rate of aplication of the 1-point crossover </font><b><font color="#FF6600">relatively</font></b><font color="#000000">to 2-point and uniform below (see </font><b><tt><font color="#CC33CC"><font size=+1>pCross</font></font></tt></b><font color="#000000">parameter). </font><font color="#FF0000">Default is 1</font><font color="#000000">.</font><p><b><tt><font color="#CC33CC"><font size=+1># --twoPointRate=1 # -2 :Relative rate for two point crossover</font></font></tt></b><br><font color="#FF0000">Floating-point parameter:</font><font color="#000000">Rate of aplication of the 2-point crossover </font><b><font color="#FF6600">relatively</font></b><font color="#000000">to 1-point above and uniform below (see </font><b><tt><font color="#CC33CC"><font size=+1>pCross</font></font></tt></b><font color="#000000">parameter). </font><font color="#FF0000">Default is 1</font><font color="#000000">.</font><p><b><tt><font color="#CC33CC"><font size=+1># --uRate=2 # -U : Relativerate for uniform crossover</font></font></tt></b><br><font color="#FF0000">Floating-point parameter:</font><font color="#000000">Rate of aplication of the 1-point crossover </font><b><font color="#FF6600">relatively</font></b><font color="#000000">to 1- and 2-point above (see </font><b><tt><font color="#CC33CC"><font size=+1>pCross</font></font></tt></b><font color="#000000">parameter). </font><font color="#FF0000">Default is 2</font><font color="#000000">.</font><p><b><tt><font color="#CC33CC"><font size=+1># --pMutPerBit=0.01 # -b: Probability of flipping 1 bit in bit-flip mutation</font></font></tt></b><br><font color="#FF0000">Floating-point parameter:</font><font color="#000000">When </font><b><tt><font color="#CC33CC"><font size=+1>bit-flip mutation</font></font></tt></b><font color="#000000">is applied, each bit is flipped independently with probability </font><b><tt><font color="#CC33CC"><font size=+1>pMutPerBit</font></font></tt></b><font color="#000000">.</font><p><b><tt><font color="#CC33CC"><font size=+1># --bitFlipRate=0.01 # -s: Relative rate for bit-flip mutation</font></font></tt></b><br><font color="#FF0000">Floating-point parameter:</font><font color="#000000">Rate of aplication of the bit-flip mutation </font><b><font color="#FF6600">relatively</font></b><font color="#000000">to one-Bit mutation below (see </font><b><tt><font color="#CC33CC"><font size=+1>pMut</font></font></tt></b><font color="#000000">above). </font><font color="#FF0000">Default is 0.01</font><font color="#000000">(if all relative rates are equal, the choice is uniform among availableoperators).</font><p><b><tt><font color="#CC33CC"><font size=+1># --oneBitRate=0.01 # -d: Relative rate for deterministic bit-flip mutation</font></font></tt></b><br><font color="#FF0000">Floating-point parameter:</font><font color="#000000">Rate of aplication of the one-bit mutation </font><b><font color="#FF6600">relatively</font></b><font color="#000000">to bit-flip mutation below (see </font><b><tt><font color="#CC33CC"><font size=+1>pMut</font></font></tt></b><font color="#000000">above). One-bit mutation flips one and only one bit, uniformly chosen inthe individual. </font><font color="#FF0000">Default is 0.01</font><font color="#000000">(if all relative rates are equal, the choice is uniform among availableoperators).</font><br> <p><hr ALIGN=LEFT SIZE=5 WIDTH="100%"><p><a NAME="real"></a><b><font size=+1><font color="#000099">User's guide:</font><font color="#FF0000">Real-valuedspecific parameters</font></font></b><br>To run your own real-valued application, write your fitness function(see <b><tt><font color="#993300" size=+1>real_value.h</font></font></tt></b>), recompile, and run from the command line <br><center><b><tt><font color="#993300" size=+1>RealEA @RealEA.param</font></tt></b></center><br>in order to use sensible parameters! (see <a href="eoLesson3.html#paraminput">Lesson 3</a> for details on the parameter file). But remember that <a href="#ES">Self-adaptive ES</a> will work much better!<br><br>The following describes the specific parameters that are availablein programs <b><tt><font color="#993300"><font size=+1>RealEA</font></font></tt></b>and <b><tt><font color="#993300"><font size=+1>ESEA</font></font></tt></b>to evolve genotypes that are <b><font color="#FF6600">vector<double></font></b>.<br><b><tt><font color="#993300"><font size=+1>RealEA</font></font></tt></b>implements what can be called a "real-coded GA", where everything is identicalto the bitstring case above (except initialization and operators that arespecific to vector<double> of course) and <b><tt><font color="#993300"><font size=+1>ESEA</font></font></tt></b>implements the full Evolution-Strategy self-adaptive mutation mechanism- together with specific ES crossover operators. The initialization sectionfor both programs are identical, but the operator sections are totallydifferent. See <a href="#ES">next paragraph</a> for a description of ESspecific parameters.<p><hr SIZE=5 WIDTH="30%"><p><b><font size=+1><font color="#FF0000">Section </font><tt><font color="#CC33CC">###### Genotype Initialization ######</font></tt></font></b><br><font color="#000000">This section should allow input if all necessaryparameters for genitype initialization</font><p><b><tt><font color="#CC33CC"><font size=+1># --vecSize=10 # -n : Thenumber of variables</font></font></tt></b><br><font color="#FF0000">Integer parameter:</font><font color="#000000">The initilization requires the length of the vector<double>.</font><p><b><tt><font color="#CC33CC"><font size=+1># --initBounds=10[-1,1] #-B : Bounds for uniform initialization</font></font></tt></b><br><font color="#FF0000">Bounds parameter:</font><font color="#000000">Bounds for uniform initialization of the real variables. The syntax forthis parameter given in the </font><b><tt><font color="#CC33CC"><font size=+1>objectBounds</font></font></tt></b><font color="#000000">parameter description below. This argument is mandatory, furthermore thegiven bounds </font><b><font color="#FF6600">must be bounded</font></b><font color="#000000">.</font><font color="#FF0000">Thedefault is [-1,1]</font><font color="#000000"> for all variables.</font><br>Note that this parameter is independent of the <b><tt><font color="#CC33CC"><font size=+1>objectBounds</font></font></tt></b>parameter below.<p><b><tt><font color="#CC33CC"><font size=+1># --sigmaInit=0.3 # -s :Initial value for Sigma(s)</font></font></tt></b><br><font color="#FF0000">Floating-point parameter:</font><font color="#000000">The initial value for all standard-deviation mutation strategy parameters.Useless when no self-adaptive mutation mechanism is used.</font><p><hr SIZE=5 WIDTH="30%"><p><b><font size=+1><font color="#FF0000">Section </font><tt><font color="#CC33CC">###### Variation Operators ######</font></tt></font></b><br><font color="#000000">This section allows to tune the way the variationoperators will be applied to the individuals (in the strict limit of SGAmodel at the moment, see below).</font><p><b><tt><font color="#CC33CC"><font size=+1># --objectBounds=10[-inf,+inf]# -B : Bounds for variables</font></font></tt></b><br><font color="#FF0000">Bounds parameter:</font><font color="#000000">Bounds for object variables. The syntax for this parameter is a successionof (optionally semi-colon separated) items of the form </font><b><tt><font color="#993300"><font size=+1>N[min,Max]</font></font></tt></b><font color="#000000">wherethe optional integer </font><b><tt><font color="#993300"><font size=+1>N</font></font></tt></b><font color="#000000">indicates how many variables have the given bounds. </font><b><tt><font color="#993300"><font size=+1>min</font></font></tt></b><font color="#000000">and </font><b><tt><font color="#993300"><font size=+1>Max</font></font></tt></b><font color="#000000">are either floating point numbers, or </font><b><tt><font color="#993300"><font size=+1>-inf</font></font></tt></b><font color="#000000">(resp. </font><b><tt><font color="#993300"><font size=+1>+inf</font></font></tt></b><font color="#000000">)to indicate unbounded direction. If not enough bounds are provided, theremaining variables will have the same bounds as the last bounds given.</font>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -