ec.app.bbob
Class BBOBenchmarks
- java.lang.Object
-
- ec.Problem
-
- ec.app.bbob.BBOBenchmarks
-
- All Implemented Interfaces:
- Prototype, Setup, SimpleProblemForm, java.io.Serializable, java.lang.Cloneable
public class BBOBenchmarks extends Problem implements SimpleProblemForm
The Black Box Optimization workshop (BBOB) has an annual competition for doing real-valued parameter optimization. The examples shown here are more or less faithful reproductions of the BBOB 2010 C code, only using Mersenne Twister instead of BBOB's random number generator. Unfortunately, the original BBOB code has various magic numbers, unexplained variables, and unfortunate algorithmic decisions. We've reproduced them exactly rather than attempt to convert to a standard ECJ template, and simply apologize beforehand.Parameters
base.type
String = none (default) , sphere, ellipsoidal, rastrigin, buch-rastrigin, linear-slope, attractive-sector, step-elipsoidal, rosenbrock, rosenbrock-rotated, ellipsoidal-2, discus, bent-cigar, sharp-ridge, different-powers, rastrigin-2, weierstrass, schaffers-f7, schaffers-f7-2, griewak-rosenbrock, schwefel, gallagher-gaussian-101me, gallagher-gaussian-21hi, katsuura, lunacek(The particular function) base.noise
String = none (default) , gauss, uniform, cauchy, gauss-moderate, uniform-moderate, cauchy-moderate(what type of noise (if any) to add to the function value) base.reevaluate-noisy-problems
boolean = true(default)(whether to reevaluate noisy problems) - See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field and Description static intATTRACTIVE_SECTORstatic intBENT_CIGARstatic intBUCHE_RASTRIGINstatic intCAUCHYstatic intCAUCHY_MODERATEstatic intDIFFERENT_POWERSstatic intDISCUSstatic intELLIPSOIDALstatic intELLIPSOIDAL_2static intGALLAGHER_GAUSSIAN_101MEstatic intGALLAGHER_GAUSSIAN_21HIstatic intGAUSSIANstatic intGAUSSIAN_MODERATEstatic intGRIEWANK_ROSENBROCKstatic intKATSUURAstatic intLINEAR_SLOPEstatic intLUNACEKstatic intNHIGHPEAKS21static intNHIGHPEAKS22intnoisejava.lang.String[]noiseTypesstatic intNONEstatic java.lang.StringP_GENOME_SIZEstatic java.lang.StringP_NOISEstatic java.lang.StringP_REEVALUATE_NOISY_PROBLEMSstatic java.lang.StringP_WHICH_PROBLEMintproblemTypejava.lang.String[]problemTypesstatic intRASTRIGINstatic intRASTRIGIN_2booleanreevaluateNoisyProblemsstatic intROSENBROCKstatic intROSENBROCK_ROTATEDstatic intSCHAFFERS_F7static intSCHAFFERS_F7_2static intSCHWEFELstatic intSHARP_RIDGEstatic intSPHEREstatic intSTEP_ELLIPSOIDALstatic doubleTOLstatic intUNIFORMstatic intUNIFORM_MODERATEstatic intWEIERSTRASS
-
Constructor Summary
Constructors Constructor and Description BBOBenchmarks()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidevaluate(EvolutionState state, Individual ind, int subpopulation, int threadnum)Evaluates the individual in ind, if necessary (perhaps not evaluating them if their evaluated flags are true), and sets their fitness appropriately.voidsetup(EvolutionState state, Parameter base)Sets up the object by reading it from the parameters stored in state, built off of the parameter base base.-
Methods inherited from class ec.Problem
canEvaluate, clone, closeContacts, defaultBase, describe, describe, finishEvaluating, initializeContacts, prepareToEvaluate, reinitializeContacts
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface ec.simple.SimpleProblemForm
describe
-
-
-
-
Field Detail
-
P_GENOME_SIZE
public static final java.lang.String P_GENOME_SIZE
- See Also:
- Constant Field Values
-
P_WHICH_PROBLEM
public static final java.lang.String P_WHICH_PROBLEM
- See Also:
- Constant Field Values
-
P_NOISE
public static final java.lang.String P_NOISE
- See Also:
- Constant Field Values
-
P_REEVALUATE_NOISY_PROBLEMS
public static final java.lang.String P_REEVALUATE_NOISY_PROBLEMS
- See Also:
- Constant Field Values
-
problemTypes
public final java.lang.String[] problemTypes
-
SPHERE
public static final int SPHERE
- See Also:
- Constant Field Values
-
ELLIPSOIDAL
public static final int ELLIPSOIDAL
- See Also:
- Constant Field Values
-
RASTRIGIN
public static final int RASTRIGIN
- See Also:
- Constant Field Values
-
BUCHE_RASTRIGIN
public static final int BUCHE_RASTRIGIN
- See Also:
- Constant Field Values
-
LINEAR_SLOPE
public static final int LINEAR_SLOPE
- See Also:
- Constant Field Values
-
ATTRACTIVE_SECTOR
public static final int ATTRACTIVE_SECTOR
- See Also:
- Constant Field Values
-
STEP_ELLIPSOIDAL
public static final int STEP_ELLIPSOIDAL
- See Also:
- Constant Field Values
-
ROSENBROCK
public static final int ROSENBROCK
- See Also:
- Constant Field Values
-
ROSENBROCK_ROTATED
public static final int ROSENBROCK_ROTATED
- See Also:
- Constant Field Values
-
ELLIPSOIDAL_2
public static final int ELLIPSOIDAL_2
- See Also:
- Constant Field Values
-
DISCUS
public static final int DISCUS
- See Also:
- Constant Field Values
-
BENT_CIGAR
public static final int BENT_CIGAR
- See Also:
- Constant Field Values
-
SHARP_RIDGE
public static final int SHARP_RIDGE
- See Also:
- Constant Field Values
-
DIFFERENT_POWERS
public static final int DIFFERENT_POWERS
- See Also:
- Constant Field Values
-
RASTRIGIN_2
public static final int RASTRIGIN_2
- See Also:
- Constant Field Values
-
WEIERSTRASS
public static final int WEIERSTRASS
- See Also:
- Constant Field Values
-
SCHAFFERS_F7
public static final int SCHAFFERS_F7
- See Also:
- Constant Field Values
-
SCHAFFERS_F7_2
public static final int SCHAFFERS_F7_2
- See Also:
- Constant Field Values
-
GRIEWANK_ROSENBROCK
public static final int GRIEWANK_ROSENBROCK
- See Also:
- Constant Field Values
-
SCHWEFEL
public static final int SCHWEFEL
- See Also:
- Constant Field Values
-
GALLAGHER_GAUSSIAN_101ME
public static final int GALLAGHER_GAUSSIAN_101ME
- See Also:
- Constant Field Values
-
GALLAGHER_GAUSSIAN_21HI
public static final int GALLAGHER_GAUSSIAN_21HI
- See Also:
- Constant Field Values
-
KATSUURA
public static final int KATSUURA
- See Also:
- Constant Field Values
-
LUNACEK
public static final int LUNACEK
- See Also:
- Constant Field Values
-
noiseTypes
public final java.lang.String[] noiseTypes
-
NONE
public static final int NONE
- See Also:
- Constant Field Values
-
GAUSSIAN
public static final int GAUSSIAN
- See Also:
- Constant Field Values
-
UNIFORM
public static final int UNIFORM
- See Also:
- Constant Field Values
-
CAUCHY
public static final int CAUCHY
- See Also:
- Constant Field Values
-
GAUSSIAN_MODERATE
public static final int GAUSSIAN_MODERATE
- See Also:
- Constant Field Values
-
UNIFORM_MODERATE
public static final int UNIFORM_MODERATE
- See Also:
- Constant Field Values
-
CAUCHY_MODERATE
public static final int CAUCHY_MODERATE
- See Also:
- Constant Field Values
-
problemType
public int problemType
-
noise
public int noise
-
reevaluateNoisyProblems
public boolean reevaluateNoisyProblems
-
NHIGHPEAKS21
public static final int NHIGHPEAKS21
- See Also:
- Constant Field Values
-
NHIGHPEAKS22
public static final int NHIGHPEAKS22
- See Also:
- Constant Field Values
-
TOL
public static final double TOL
- See Also:
- Constant Field Values
-
-
Method Detail
-
setup
public void setup(EvolutionState state, Parameter base)
Description copied from interface:PrototypeSets up the object by reading it from the parameters stored in state, built off of the parameter base base. If an ancestor implements this method, be sure to call super.setup(state,base); before you do anything else.For prototypes, setup(...) is typically called once for the prototype instance; cloned instances do not receive the setup(...) call. setup(...) may be called more than once; the only guarantee is that it will get called at least once on an instance or some "parent" object from which it was ultimately cloned.
-
evaluate
public void evaluate(EvolutionState state, Individual ind, int subpopulation, int threadnum)
Description copied from interface:SimpleProblemFormEvaluates the individual in ind, if necessary (perhaps not evaluating them if their evaluated flags are true), and sets their fitness appropriately.- Specified by:
evaluatein interfaceSimpleProblemForm
-
-
DMelt 3.0 © DataMelt by jWork.ORG