Package evo.search

Enum Evolution.Fitness

    • Enum Constant Detail

      • 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 name
        NullPointerException - if the argument is null