@Override
public double getDistance(String fromLocationId, String toLocationId) {
return vrp.getTransportCosts().getTransportCost(fromLocationId,toLocationId,0.,null,null);
}
});
VehicleRoute route = solution.getRoutes().iterator().next();
Capacity atBeginning = analyser.getCapacityViolationAtBeginning(route);
for(int i=0;i<atBeginning.getNuOfDimensions();i++){
assertTrue(atBeginning.get(i) == 0);
}
}