Package rinde.sim.pdptw.central.arrays

Examples of rinde.sim.pdptw.central.arrays.SolutionObject


      final ExtendedStats stats = (ExtendedStats) Solvers.computeStats(
          solverInput, solverOutput);

      // check arrival times
      for (int j = 0; j < sols.length; j++) {
        final SolutionObject sol = sols[j];
        final long[] arraysArrivalTimes = incrArr(sol.arrivalTimes,
            solverInput.time);
        final long[] arrivalTimes = Longs.toArray(stats.arrivalTimes.get(j));
        assertArrayEquals(arraysArrivalTimes, arrivalTimes);
      }
View Full Code Here


  }

  static int computeTardiness(SolutionObject[] sols, MVArraysObject arr) {
    int total = 0;
    for (int i = 0; i < sols.length; i++) {
      final SolutionObject sol = sols[i];
      total += ArraysSolvers.computeRouteTardiness(sol.route, sol.arrivalTimes,
          arr.serviceTimes, arr.dueDates, arr.remainingServiceTimes[i]);
    }
    return total;
  }
View Full Code Here

  }

  static int computeTravelTime(SolutionObject[] sols, MVArraysObject arr) {
    int total = 0;
    for (int i = 0; i < sols.length; i++) {
      final SolutionObject sol = sols[i];
      total += ArraysSolvers.computeTotalTravelTime(sol.route, arr.travelTime,
          arr.vehicleTravelTimes[i]);
    }
    return total;
  }
View Full Code Here

  }

  static int overTime(SolutionObject[] sols, MVArraysObject arr) {
    int overTime = 0;
    for (int i = 0; i < sols.length; i++) {
      final SolutionObject sol = sols[i];
      final int index = sol.route.length - 1;
      assertEquals(0, arr.serviceTimes[sol.route[index]]);
      final int lateness = (sol.arrivalTimes[index] + arr.serviceTimes[sol.route[index]])
          - arr.dueDates[sol.route[index]];
      if (lateness > 0) {
View Full Code Here

TOP

Related Classes of rinde.sim.pdptw.central.arrays.SolutionObject

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.