public class SolutionAnalyser extends Object
| Constructor and Description |
|---|
SolutionAnalyser(VehicleRoutingProblem vrp,
VehicleRoutingProblemSolution solution,
SolutionCostCalculator solutionCostCalculator,
TransportDistance distanceCalculator) |
SolutionAnalyser(VehicleRoutingProblem vrp,
VehicleRoutingProblemSolution solution,
TransportDistance distanceCalculator) |
public SolutionAnalyser(VehicleRoutingProblem vrp, VehicleRoutingProblemSolution solution, TransportDistance distanceCalculator)
vrp - solution - distanceCalculator - public SolutionAnalyser(VehicleRoutingProblem vrp, VehicleRoutingProblemSolution solution, SolutionCostCalculator solutionCostCalculator, TransportDistance distanceCalculator)
public void informSolutionChanged(VehicleRoutingProblemSolution newSolution)
newSolution - to be analysedpublic Capacity getLoadAtBeginning(VehicleRoute route)
route - to get the load at beginning frompublic Capacity getLoadAtEnd(VehicleRoute route)
route - to get the load at the end frompublic Capacity getMaxLoad(VehicleRoute route)
route - to get max load frompublic Capacity getLoadRightAfterActivity(TourActivity activity, VehicleRoute route)
activity - to get the load from (after activity)public Capacity getLoadJustBeforeActivity(TourActivity activity, VehicleRoute route)
activity - to get the load from (before activity)public Integer getNumberOfPickups(VehicleRoute route)
route - to get number of pickups frompublic Integer getNumberOfDeliveries(VehicleRoute route)
route - to get number of deliveries frompublic Capacity getLoadPickedUp(VehicleRoute route)
route - to get the picked load frompublic Capacity getLoadDelivered(VehicleRoute route)
route - to get delivered load frompublic Capacity getCapacityViolation(VehicleRoute route)
route - to get the capacity violation frompublic Capacity getCapacityViolationAtBeginning(VehicleRoute route)
route - to get the capacity violation from (at beginning of the route)public Capacity getCapacityViolationAtEnd(VehicleRoute route)
route - to get the capacity violation from (at end of the route)public Capacity getCapacityViolationAfterActivity(TourActivity activity, VehicleRoute route)
route - to get the capacity violation from (at activity of the route)public Double getTimeWindowViolation(VehicleRoute route)
route - to get the time window violation frompublic Double getTimeWindowViolationAtActivity(TourActivity activity, VehicleRoute route)
activity - to get the time window violation fromroute - where activity needs to be part ofpublic Boolean hasSkillConstraintViolation(VehicleRoute route)
route - to check skill constraintpublic Boolean hasSkillConstraintViolationAtActivity(TourActivity activity, VehicleRoute route)
activity - to check skill constraintroute - that must contain specified activitypublic Boolean hasBackhaulConstraintViolation(VehicleRoute route)
route - to check backhaul constraintpublic Boolean hasBackhaulConstraintViolationAtActivity(TourActivity activity, VehicleRoute route)
activity - to check backhaul violationroute - that must contain the specified activitypublic Boolean hasShipmentConstraintViolation(VehicleRoute route)
route - to check the shipment constraint.public Boolean hasShipmentConstraintViolationAtActivity(TourActivity activity, VehicleRoute route)
activity - to check the shipment constraintroute - that must contain specified activitypublic Double getOperationTime(VehicleRoute route)
route - to get the total operation time frompublic Double getWaitingTime(VehicleRoute route)
route - to get the total waiting time frompublic Double getTransportTime(VehicleRoute route)
route - to get the total transport time frompublic Double getServiceTime(VehicleRoute route)
route - to get the total service time frompublic Double getVariableTransportCosts(VehicleRoute route)
route - to get the transport costs frompublic Double getFixedCosts(VehicleRoute route)
route - to get the fixed costs frompublic Double getVariableTransportCostsAtActivity(TourActivity activity, VehicleRoute route)
activity - to get the variable transport costs fromroute - where the activity should be part ofpublic Double getTransportTimeAtActivity(TourActivity activity, VehicleRoute route)
activity - to get the transport time fromroute - where the activity should be part ofpublic Double getLastTransportTimeAtActivity(TourActivity activity, VehicleRoute route)
activity - to get the last transport time fromroute - where the activity should be part ofpublic Double getLastTransportDistanceAtActivity(TourActivity activity, VehicleRoute route)
activity - to get the last transport distance fromroute - where the activity should be part ofpublic Double getLastTransportCostAtActivity(TourActivity activity, VehicleRoute route)
activity - to get the last transport cost fromroute - where the activity should be part ofpublic Double getWaitingTimeAtActivity(TourActivity activity, VehicleRoute route)
activity - to get the waiting fromroute - where activity should be part ofpublic Double getDistance(VehicleRoute route)
route - to get the distance frompublic Double getDistanceAtActivity(TourActivity activity, VehicleRoute route)
activity - at which is distance of the current route is measuredpublic Integer getNumberOfPickups()
public Integer getNumberOfPickupsAtBeginning(VehicleRoute route)
route - to get the number of pickups at beginning frompublic Integer getNumberOfPickupsAtBeginning()
public Integer getNumberOfDeliveries()
public Integer getNumberOfDeliveriesAtEnd()
public Integer getNumberOfDeliveriesAtEnd(VehicleRoute route)
route - to get the number of deliveries at end frompublic Capacity getLoadPickedUp()
public Capacity getLoadAtBeginning()
public Capacity getLoadDelivered()
public Capacity getLoadAtEnd()
public Double getDistance()
public Double getOperationTime()
public Double getMaxOperationTime()
public Double getWaitingTime()
public Double getTransportTime()
public Double getTimeWindowViolation()
public Capacity getCapacityViolation()
public Double getServiceTime()
public Double getFixedCosts()
public Double getVariableTransportCosts()
public Double getTotalCosts()
public Boolean hasShipmentConstraintViolation()
public Boolean hasBackhaulConstraintViolation()
public Boolean hasSkillConstraintViolation()
Copyright © 2013–2016. All rights reserved.