Class ValidationUtil

java.lang.Object
es.urjc.etsii.grafo.util.ValidationUtil

public class ValidationUtil extends Object
Validation Util methods. Implement different assertions to check solution validity
  • Constructor Details

    • ValidationUtil

      public ValidationUtil()
  • Method Details

    • assertFastAccess

      public static boolean assertFastAccess(List<?> list)
      Check that the given list implements the RandomAccess interface
      Parameters:
      list - to check
    • positiveTTB

      public static <S extends Solution<S, I>, I extends Instance> void positiveTTB(S solution)
      Check that the Time To Best is positive (so it has been updated by the user at least once)
      Type Parameters:
      S - Solution class
      I - Instance class
      Parameters:
      solution - Solution to check
    • scoreUpdate

      public static <M extends Move<S, I>, S extends Solution<S, I>, I extends Instance> boolean scoreUpdate(S solution, Map<String,Double> oldValues, M move)
    • validateWithRefValues

      public static <S extends Solution<S, I>, I extends Instance> void validateWithRefValues(S solution, Map<String,Objective<?,S,I>> objectives, ReferenceResultManager referenceResultManager)