Class LogicEntityRouteComparators

java.lang.Object
com.dna.jopt.member.bucket.route.LogicEntityRouteComparators

public class LogicEntityRouteComparators extends Object
The Class LogicEntityRouteComparators is a collection of different comparators for routes.
Since:
Sep 27, 2019
Version:
Sep 27, 2019
Author:
Jens Richter
  • Field Details

    • CONSTRAINT_ID

      public static final Comparator<ILogicEntityRoute> CONSTRAINT_ID
    • DUTYHOURSSTART

      public static final Comparator<ILogicEntityRoute> DUTYHOURSSTART
      The Constant DUTYHOURSSTART. Can be used to sort routes by their IWorkingHours start.
    • AVERAGECOSTANDUTILIZATION

      public static final Comparator<ILogicEntityRoute> AVERAGECOSTANDUTILIZATION
      The Constant AVERAGECOSTANDUTILIZATION. Can be used to sort routes by their average cost utilization start. We calculate the average cost per node divided by the utilization. If utilization is zero the solution is regarded as worse than a solution that is carrying nodes.

      Attention: This is not necessarily true, as also empty routes make sense if the number of resources is much higher than needed for the whole job.