|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfr.inria.optimization.cmaes.CMAOptions
public class CMAOptions
Simple container of (mostly generic) options for the
optimization, like the maximum number of objective
function evaluations, see class fields. No explicit setting of
options is needed to
initialize the CMA-ES (CMAEvolutionStrategy.init()
)
and options of the CMA-ES can be set
and changed any time, either via a property file and the method
CMAEvolutionStrategy.readProperties()
, or new values can simply be
assigned to the fields of the public opts
field of
the class CMAEvolutionStrategy
(yeah, I know, not exactly Java style).
Field Summary | |
---|---|
int |
checkEigenSystem
checks eigendecomposition mainly for debugging purpose, default is 0==no-check; the function checkEigenSystem requires O(N^3) operations. |
long |
diagonalCovarianceMatrix
number of initial iterations with diagonal covariance matrix, where 1 means always. |
double[] |
lowerStandardDeviations
lower bound for standard deviations (step sizes). |
double |
maxTimeFractionForEigendecomposition
only for >= 1 results are always exactly reproducible, as otherwise the update of the eigensystem is conducted depending on time measurements, defaut is 0.2 |
double |
maxTimeFractionForWriteToDefaultFiles
default is 0.1 |
java.lang.String |
outputFileNamesPrefix
Output files written will have the names outputFileNamesPrefix*.dat |
double |
stopFitness
stop if function value drops below the target function value stopFitness. |
long |
stopMaxFunEvals
stop if the number of objective function evaluations exceed stopMaxFunEvals |
long |
stopMaxIter
stop if the number of iterations (generations) exceed stopMaxIter |
boolean |
stopnow
if true stopping message "Manual:..." is generated |
double |
stopTolFun
stop if the maximum function value difference of all iteration-best solutions of the last 10 + 30*N/lambda iterations and all solutions of the recent iteration become <= stopTolFun. |
double |
stopTolFunHist
stop if the maximum function value difference of all iteration-best solutions of the last 10 + 30*N/lambda iterations become smaller than stopTolFunHist. |
double |
stopTolUpXFactor
stop if search steps become larger than stopTolUpXFactor * initial step size. |
double |
stopTolX
stop if search steps become smaller than stopTolX. |
double |
stopTolXFactor
stop if search steps become smaller than stopTolXFactor * initial step size. |
double[] |
upperStandardDeviations
upper bound for standard deviations (step lengths). |
int |
verbosity
determines whether CMA says hello after initialization. |
int |
writeDisplayToFile
if chosen > 0 the console output from functions print... is saved
additionally into a file, by default outcmaesdisp.dat |
Constructor Summary | |
---|---|
CMAOptions()
|
Method Summary | |
---|---|
java.lang.String |
getFirstToken(java.lang.String s)
should become generic with type argument? |
java.lang.Double |
getFirstToken(java.lang.String s,
java.lang.Double def)
Returns the double value of the first token of a string s or the default, if the string is null or empty. |
java.lang.Integer |
getFirstToken(java.lang.String s,
java.lang.Integer def)
Returns the Integer value of the first token of a string s or the default, if the string is null or empty. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public long diagonalCovarianceMatrix
public double[] lowerStandardDeviations
CAVE: there is an interference with stopTolX (and stopTolXFactor): if lowerStdDev is larger than stopTolX, the termination criterion can never be satisfied.
Example:
CMAEvolutionStrategy es = new CMAEvolutionStrategy(); es.options.lowerStandardDeviations = new double[]{1e-4,1e-8}; // 1e-8 for all but first variable
stopTolX
,
stopTolXFactor
public double[] upperStandardDeviations
lowerStandardDeviations
,
stopTolUpXFactor
public double stopFitness
Double.MIN_VALUE
public double stopTolFun
public double stopTolFunHist
public double stopTolX
public double stopTolXFactor
public double stopTolUpXFactor
public long stopMaxFunEvals
public long stopMaxIter
public boolean stopnow
public int verbosity
CMAEvolutionStrategy.helloWorld()
public java.lang.String outputFileNamesPrefix
public int writeDisplayToFile
print...
is saved
additionally into a file, by default outcmaesdisp.dat
public double maxTimeFractionForEigendecomposition
public double maxTimeFractionForWriteToDefaultFiles
public int checkEigenSystem
Constructor Detail |
---|
public CMAOptions()
Method Detail |
---|
public java.lang.Double getFirstToken(java.lang.String s, java.lang.Double def)
s
- string where the first token is read fromdef
- double default value, in case the string is emptypublic java.lang.String getFirstToken(java.lang.String s)
public java.lang.Integer getFirstToken(java.lang.String s, java.lang.Integer def)
s
- string where the first token is read fromdef
- Integer default value, in case the string is empty
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |