code: public static double distanceToSolutionListInSolutionSpace(DoubleSolution solution,
                                                               List<DoubleSolution> solutionList) {
      double distance = Double.MAX_VALUE;
  
      for (int i = 0; i < solutionList.size(); i++) {
        double aux = distanceBetweenSolutionsInObjectiveSpace(solution, solutionList.get(i));
        if (aux < distance)
          distance = aux;
      }
  
      return distance;
    }
docs: Returns the minimum distance from a <code>Solution</code> to a <code>SolutionSet according to
  the encodings.variable values</code>.
  
  @param solution     The <code>Solution</code>.
  @param solutionList The <code>List<Solution></></code>.
  @return The minimum distance between solution and the set.