Package evo.search
Enum Evolution.Fitness
- java.lang.Object
-
- java.lang.Enum<Evolution.Fitness>
-
- evo.search.Evolution.Fitness
-
- All Implemented Interfaces:
Serializable
,Comparable<Evolution.Fitness>
- Enclosing class:
- Evolution
public static enum Evolution.Fitness extends Enum<Evolution.Fitness>
Fitness method enum.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description COVERED_AREA
This fitness method computes the quotient between the trace length and the sum of explored areas.MAX_AREA
The max area method computes the fitness based on the competitive ratio of explored space divided by the path's length.MULTI
The multi method computes the fitness based on the competitive ratio of finding a set of distinct treasure points.SINGULAR
The singular method computes the fitness based on the competitive ratio of finding one distinct treasure point.SPIRAL
The spiral likeness fitness uses the rotation independent spiral likeness mesaure.WORST_CASE
The worst case method computes the fitness based on the maximum length over all points to find their worst-case treasure (when the treasure is just an epsilon further away from the origin than the point).WORST_MEAN
This fitness method calculates the mean of the worst cases for each point of the strategy.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description BiFunction<Evolution,List<DiscreteGene>,Double>
getMethod()
static Evolution.Fitness
valueOf(String name)
Returns the enum constant of this type with the specified name.static Evolution.Fitness[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SINGULAR
public static final Evolution.Fitness SINGULAR
The singular method computes the fitness based on the competitive ratio of finding one distinct treasure point.- See Also:
Evolution.fitnessSingular(List)
-
MULTI
public static final Evolution.Fitness MULTI
The multi method computes the fitness based on the competitive ratio of finding a set of distinct treasure points.- See Also:
Evolution.fitnessMulti(List)
-
WORST_CASE
public static final Evolution.Fitness WORST_CASE
The worst case method computes the fitness based on the maximum length over all points to find their worst-case treasure (when the treasure is just an epsilon further away from the origin than the point).
-
WORST_MEAN
public static final Evolution.Fitness WORST_MEAN
This fitness method calculates the mean of the worst cases for each point of the strategy.
-
MAX_AREA
public static final Evolution.Fitness MAX_AREA
The max area method computes the fitness based on the competitive ratio of explored space divided by the path's length.
-
COVERED_AREA
public static final Evolution.Fitness COVERED_AREA
This fitness method computes the quotient between the trace length and the sum of explored areas.
-
SPIRAL
public static final Evolution.Fitness SPIRAL
The spiral likeness fitness uses the rotation independent spiral likeness mesaure.
-
-
Method Detail
-
values
public static Evolution.Fitness[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Evolution.Fitness c : Evolution.Fitness.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Evolution.Fitness valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
getMethod
public BiFunction<Evolution,List<DiscreteGene>,Double> getMethod()
-
-