Class Normalizer

    • Constructor Detail

      • Normalizer

        public Normalizer()
    • Method Detail

      • normalize

        public Objectives normalize​(Objectives objectives)
        Returns normalized objectives. Each objective is in the range between 0 and 1 and has to be minimized. Here, 0 is the smallest value seen so far for this objective for all evaluated Individuals and 1 the biggest value, respectively. If an objective is infeasible, it is set to 1.
        Parameters:
        objectives - the objectives to normalize
        Returns:
        the normalized objectives
      • toMinProblem

        public static final double toMinProblem​(Objective objective,
                                                Value<?> value)
        Transforms the the Objective to a minimization objective, i.e. if the given objective is to be maximized, the negation of the given value is returned.
        Parameters:
        objective - the respective objective
        value - the value to transform
        Returns:
        the corresponding double value