Hi @grantm009
I checked the service time of all the shipments. The pickup service time is 10units (1unit = 1min) and delivery service time is 60mins for each shipment.
Below are the pickup and delivery time windows for the jobs (10AM to 4PM):
Pickup:
[start=600.0][end=960.0]
[start=2040.0][end=2400.0]
[start=3480.0][end=3840.0]
[start=4920.0][end=5280.0]
[start=6360.0][end=6720.0]
[start=7800.0][end=8160.0]
[start=9240.0][end=9600.0]
[start=10680.0][end=11040.0]
[start=12120.0][end=12480.0]
[start=13560.0][end=13920.0]
Delivery:
[start=600.0][end=900.0]
[start=2040.0][end=2340.0]
[start=3480.0][end=3780.0]
[start=4920.0][end=5220.0]
[start=6360.0][end=6660.0]
[start=7800.0][end=8100.0]
[start=9240.0][end=9540.0]
[start=10680.0][end=10980.0]
[start=12120.0][end=12420.0]
[start=13560.0][end=13860.0]
Vehicle EarliestStart time is 600 (10AM).
VehicleType vehicleType = VehicleTypeImpl.Builder.newInstance(vehicleCount + "_type")
.addCapacityDimension(DimensionIndex.VOLUME_METRIC_INDEX.getIndex(),volumeMtWt)
.setCostPerWaitingTime(2.5)
.setCostPerTransportTime( 5)
.setCostPerDistance(5)
.setFixedCost(3).build();
The optimized route considering all service time and time windows should be as mentioned below, where vehicle arrives at depot 24/11/2021 10:00:00 AM:
Facility Name | Arrival Time | Departure Time | Distance |
---|---|---|---|
WIC ,SACS_Karnataka | 24/11/2021 10:00:00 AM | 24/11/2021 10:10:00 AM | 0 |
ICTC - Vydehi Medical College & Hospital, Vija Nag | 24/11/2021 10:55:00 AM | 24/11/2021 11:55:00 AM | 23 |
ICTC - Srirampura Referal Hospital, Goripalya, BU | 24/11/2021 12:31 PM | 24/11/2021 1:31:00 PM | 23 |
ICTC - Unani Medical College(SJIIM), K. R. Market | 24/11/2021 1:38 PM | 24/11/2021 2:38:00 PM | 3 |
ICTC - K.C. General Hospital, Shivajinagar, BU | 24/11/2021 2:54 PM | 24/11/2021 3:54:00 PM | 5 |
ICTC - Bowring & Lady Curzon Hospital, City Market | 24/11/2021 4:03 PM | 25/11/2021 11:00:00 AM | 5 |
ICTC - ESI Hospital, Indiranagar, Okalipuram, BU | 25/11/2021 11:10 AM | 25/11/2021 12:10:00 PM | 3 |
ICTC - Hosahalli Referal Hospital, Chamaraj Road | 25/11/2021 12:15 PM | 25/11/2021 1:15:00 PM | 3 |
ICTC - General Hospital, K.R. Puram, BU | 25/11/2021 1:56 PM | 25/11/2021 2:56:00 PM | 19 |
WIC ,SACS_Karnataka | 25/11/2021 3:32 PM | - | 20 |
But the route jsprit provides after implementing the suggestions is as mentioned below (takes more time around 2 days):
Facility Name | Arrival Time | Departure Time | Distance |
---|---|---|---|
WIC ,SACS_Karnataka | 24/11/2021 10:00:00 | 24/11/2021 10:10:00 | 0 |
ICTC - Vydehi Medical College & Hospital, Vija Nag | 24/11/2021 10:55:00 | 24/11/2021 11:55:00 | 23 |
WIC ,SACS_Karnataka | 24/11/2021 12:40:00 | 24/11/2021 13:50:00 | 23 |
ICTC - Srirampura Referal Hospital, Goripalya, BU | 24/11/2021 13:54:00 | 24/11/2021 14:54:00 | 2 |
ICTC - Unani Medical College(SJIIM), K. R. Market | 24/11/2021 15:01:00 | 25/11/2021 11:00:00 | 3 |
ICTC - K.C. General Hospital, Shivajinagar, BU | 25/11/2021 11:08:00 | 25/11/2021 12:08:00 | 4 |
ICTC - Bowring & Lady Curzon Hospital, City Market | 25/11/2021 12:17:00 | 25/11/2021 13:17:00 | 5 |
ICTC - ESI Hospital, Indiranagar, Okalipuram, BU | 25/11/2021 13:27:00 | 25/11/2021 14:27:00 | 3 |
ICTC - Hosahalli Referal Hospital, Chamaraj Road | 25/11/2021 14:32:00 | 25/11/2021 15:32:00 | 3 |
ICTC - General Hospital, K.R. Puram, BU | 25/11/2021 16:12:00 | 27/11/2021 11:00:00 | 20 |
WIC ,SACS_Karnataka | 27/11/2021 11:36:00 | - | 19 |
Also, I observed the last deliverShipment (ICTC - General Hospital, K.R. Puram, BU) arrives at 25/11/2021 16:12:00 (2412unit ) but departs at 27/11/2021 11:00:00 (4980 unit) staying there a whole day, even when there is a Time window ([start=3480.0][end=3780.0]) available to service the job. Please let me know if you notice anything that might result in such scenarios.
regards,
Sarita