|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.rapidminer.tools.math.optimization.ec.es.ESOptimization
public abstract class ESOptimization
Evolutionary Strategy approach for all real-valued optimization tasks.
| Field Summary | |
|---|---|
static int |
BOLTZMANN_SELECTION
Indicates a Boltzmann selection scheme. |
static int |
CUT_SELECTION
Indicates a cut selection scheme. |
static int |
GAUSSIAN_MUTATION
Indicates a gaussian mutation. |
static int |
INIT_TYPE_MAX
Indicates that the start population should be initialized with the maximum value. |
static int |
INIT_TYPE_MIN
Indicates that the start population should be initialized with the minimum value. |
static int |
INIT_TYPE_ONE
Indicates that the start population should be initialized with one. |
static int |
INIT_TYPE_RANDOM
Indicates that the start population should be randomly initialized. |
static int |
INIT_TYPE_ZERO
Indicates that the start population should be initialized with zero. |
static java.lang.String[] |
MUTATION_TYPES
The names of the mutation types. |
static int |
NO_MUTATION
Indicates no mutation. |
static int |
NON_DOMINATED_SORTING_SELECTION
Indicates a multi-objective selection scheme (NSGA II). |
static java.lang.String[] |
POPULATION_INIT_TYPES
The names of the initialization types. |
static int |
RANK_SELECTION
Indicates a rank based selection scheme. |
static int |
ROULETTE_WHEEL
Indicates a roulette wheel selection scheme. |
static java.lang.String[] |
SELECTION_TYPES
The names of all available selection schemes. |
static int |
SPARSITY_MUTATION
Indicates a hybrid between switching mutation and Gaussian mutation. |
static int |
STOCHASTIC_UNIVERSAL
Indicates a stochastic universal sampling selection scheme. |
static int |
SWITCHING_MUTATION
Indicates a switching mutation. |
static int |
TOURNAMENT_SELECTION
Indicates a tournament selection scheme. |
static int |
UNIFORM_SELECTION
Indicates a uniform sampling selection scheme. |
| Constructor Summary | |
|---|---|
ESOptimization(double[] minValues,
double[] maxValues,
int populationSize,
int individualSize,
int initType,
int maxGenerations,
int generationsWithoutImprovement,
int selectionType,
double tournamentFraction,
boolean keepBest,
int mutationType,
double defaultSigma,
double crossoverProb,
boolean showConvergencePlot,
boolean showPopulationPlot,
RandomGenerator random,
LoggingHandler logging)
Creates a new evolutionary SVM optimization. |
|
ESOptimization(double minValue,
double maxValue,
int populationSize,
int individualSize,
int initType,
int maxGenerations,
int generationsWithoutImprovement,
int selectionType,
double tournamentFraction,
boolean keepBest,
int mutationType,
double crossoverProb,
boolean showConvergencePlot,
boolean showPopulationPlot,
RandomGenerator random,
LoggingHandler logging)
Creates a new evolutionary SVM optimization. |
|
| Method Summary | |
|---|---|
protected void |
evaluate(Population population)
Evaluates the individuals of the given population. |
abstract PerformanceVector |
evaluateIndividual(Individual individual)
Subclasses must implement this method to calculate the fitness of the given individual. |
double |
getBestFitnessEver()
Returns the best fitness ever. |
double |
getBestFitnessInGeneration()
Returns the best fitness in the current generation. |
PerformanceVector |
getBestPerformanceEver()
Returns the best performance vector ever. |
double[] |
getBestValuesEver()
Returns the best values ever. |
int |
getGeneration()
Returns the current generation. |
double |
getMax(int index)
|
double |
getMin(int index)
|
Population |
getPopulation()
|
OptimizationValueType |
getValueType(int index)
|
void |
increaseCurrentEvaluationCounter()
Getter and setter for subclasses |
void |
increaseTotalEvaluationCounter()
|
void |
nextIteration()
This method is invoked after each evaluation. |
void |
optimize()
Starts the optimization. |
void |
setMax(int index,
double v)
|
void |
setMin(int index,
double v)
|
void |
setValueType(int index,
OptimizationValueType type)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String[] SELECTION_TYPES
public static final int UNIFORM_SELECTION
public static final int CUT_SELECTION
public static final int ROULETTE_WHEEL
public static final int STOCHASTIC_UNIVERSAL
public static final int BOLTZMANN_SELECTION
public static final int RANK_SELECTION
public static final int TOURNAMENT_SELECTION
public static final int NON_DOMINATED_SORTING_SELECTION
public static final java.lang.String[] MUTATION_TYPES
public static final int NO_MUTATION
public static final int GAUSSIAN_MUTATION
public static final int SWITCHING_MUTATION
public static final int SPARSITY_MUTATION
public static final java.lang.String[] POPULATION_INIT_TYPES
public static final int INIT_TYPE_RANDOM
public static final int INIT_TYPE_MIN
public static final int INIT_TYPE_MAX
public static final int INIT_TYPE_ONE
public static final int INIT_TYPE_ZERO
| Constructor Detail |
|---|
public ESOptimization(double minValue,
double maxValue,
int populationSize,
int individualSize,
int initType,
int maxGenerations,
int generationsWithoutImprovement,
int selectionType,
double tournamentFraction,
boolean keepBest,
int mutationType,
double crossoverProb,
boolean showConvergencePlot,
boolean showPopulationPlot,
RandomGenerator random,
LoggingHandler logging)
public ESOptimization(double[] minValues,
double[] maxValues,
int populationSize,
int individualSize,
int initType,
int maxGenerations,
int generationsWithoutImprovement,
int selectionType,
double tournamentFraction,
boolean keepBest,
int mutationType,
double defaultSigma,
double crossoverProb,
boolean showConvergencePlot,
boolean showPopulationPlot,
RandomGenerator random,
LoggingHandler logging)
| Method Detail |
|---|
public abstract PerformanceVector evaluateIndividual(Individual individual)
throws OperatorException
OperatorException
public void nextIteration()
throws OperatorException
OperatorExceptionpublic double getMin(int index)
public double getMax(int index)
public void setMin(int index,
double v)
public void setMax(int index,
double v)
public OptimizationValueType getValueType(int index)
public void setValueType(int index,
OptimizationValueType type)
public void optimize()
throws OperatorException
optimize in interface OptimizationOperatorException
protected void evaluate(Population population)
throws OperatorException
OperatorExceptionpublic int getGeneration()
getGeneration in interface Optimizationpublic double getBestFitnessInGeneration()
getBestFitnessInGeneration in interface Optimizationpublic double getBestFitnessEver()
getBestFitnessEver in interface Optimizationpublic PerformanceVector getBestPerformanceEver()
getBestPerformanceEver in interface Optimizationpublic Population getPopulation()
public double[] getBestValuesEver()
getBestValuesEver in interface Optimizationpublic void increaseCurrentEvaluationCounter()
public void increaseTotalEvaluationCounter()
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||