Ejemplo n.º 1
0
 @Override
 public Result run(List<Point> pointList) {
   Result result = new Result();
   for (Point startPoint : pointList) {
     this.pointList = new ArrayList<>(pointList);
     RoundResult r = calculate(startPoint);
     result.addResult(r);
     System.out.println(r.print(false));
   }
   return result;
 }
Ejemplo n.º 2
0
 private static void printResult(List<Point> pointList, List<Algorithm> algorithms) {
   for (Algorithm algorithm : algorithms) {
     Result r = algorithm.run(pointList);
     r.stop();
     System.err.println(algorithm.toString());
     System.err.println("Time: " + r.getTime());
     System.err.println("Iterations: " + r.getIterationCount());
     for (RoundResult rr : r.getResultsToReport()) {
       System.err.println(rr.printResult());
     }
     //            System.out.println(r.getBestResult().print(true));
     System.err.println();
   }
 }